# Has anyone converted docx to pdf using javascript?

**URL:** <https://standardspdf.com/forum/t/has-anyone-converted-docx-to-pdf-using-javascript/125>\
**Category:** Conversion Workflows\
**Tags:** conversion\
**Created:** [November 7, 2026, 4:48am UTC](https://standardspdf.com/forum/t/has-anyone-converted-docx-to-pdf-using-javascript/125 "2026-11-07T04:48:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmyLong](https://standardspdf.com/forum/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@AmyLong](https://standardspdf.com/forum/u/AmyLong)\
**Post date:** [November 7, 2026, 4:48am UTC](https://standardspdf.com/forum/t/has-anyone-converted-docx-to-pdf-using-javascript/125/1 "2026-11-07T04:48:38Z")

</div>

I’m trying to convert DOCX files to PDF using JavaScript for a small upload form, but the tables keep shifting. Has anyone managed this while keeping the original layout intact?

---

<div class="post-metadata">

**Author:** ![podcast\_dude](https://standardspdf.com/forum/user_avatar/standardspdf.com/podcast_dude/32/25_2.png) [@podcast\_dude](https://standardspdf.com/forum/u/podcast_dude)\
**Post date:** [November 7, 2026, 4:48am UTC](https://standardspdf.com/forum/t/has-anyone-converted-docx-to-pdf-using-javascript/125/2 "2026-11-07T04:48:42Z")

</div>

JavaScript in the browser usually won’t preserve DOCX layout exactly, especially tables. I’d upload the file to the server and have Word or LibreOffice export it to PDF, with the same fonts installed and page size set correctly. I learned the hard way that missing fonts alone can shift every table.

---

<div class="post-metadata">

**Author:** ![SilentHunter](https://standardspdf.com/forum/user_avatar/standardspdf.com/silenthunter/32/39_2.png) [@SilentHunter](https://standardspdf.com/forum/u/SilentHunter)\
**Post date:** [November 8, 2026, 12:16pm UTC](https://standardspdf.com/forum/t/has-anyone-converted-docx-to-pdf-using-javascript/125/3 "2026-11-08T12:16:53Z")

</div>

Tables shifting is the classic docx-to-pdf pain, browsers are terrible at this. I’d skip doing it in JS entirely and run LibreOffice headless on the server instead, it handles tables way better than anything in the browser. Worth a try before you lose a weekend to it. Is this running on a server or purely client side?
