📝

PDF to Word

Convert PDF to editable Word document (DOCX). Free, no upload, all in your browser.

📄

Drop your file here

or click to browse

FAQ

Related Tools

']; for(let i=1;i<=pdf.numPages;i++){ const page=await pdf.getPage(i); const content=await page.getTextContent(); let lastY=null; let paraText=[]; for(const item of content.items){ const y=item.transform[5]; if(lastY!==null&&Math.abs(y-lastY)>5){ if(paraText.length){htmlParts.push('

'+paraText.join(' ').replace(//g,'>')+'

');paraText=[];} } paraText.push(item.str); lastY=y; } if(paraText.length) htmlParts.push('

'+paraText.join(' ').replace(//g,'>')+'

'); if(i'); PDFTools.showProgress(document.getElementById('progress-area'),10+Math.round((i/pdf.numPages)*80)); } htmlParts.push(' '); const docHtml=htmlParts.join('\n'); resultBlob=new Blob(['\ufeff'+docHtml],{type:'application/msword'}); PDFTools.showProgress(document.getElementById('progress-area'),100); document.getElementById('result').classList.remove('hidden'); PDFTools.toast(PDFTools.t('common.done')); } catch(err){console.error(err);PDFTools.toast(PDFTools.t('common.error')+': '+err.message);} finally{btn.disabled=false;} }); document.getElementById('download-btn').addEventListener('click',()=>{if(resultBlob)PDFTools.downloadBlob(resultBlob,pdfFile.name.replace(/\.pdf$/i,'')+'.doc');}); });
Go paperless! Try the Petty Cash System to manage expenses and receipts.