C
C#13mo ago
Djostit

❔ Convert .docx to .pdf without restrictions

I need to make a .pdf from a .docx, but there is a problem I have been looking at libraries and they have limitations. I need to convert a document with up to 50 pages. Are there any libraries that do not have limitations or how to divide the .docx document itself. I have spent many hours but have not found any libraries or a way.
8 Replies
JakenVeina
JakenVeina13mo ago
what do you define as a "limitation"?
RedBear
RedBear13mo ago
LibreOffice/OpenOffice with CLI: LibreOffice and OpenOffice have command-line interfaces that can convert .docx to .pdf without limitations on the number of pages. You can automate the conversion process by using the soffice command. Apache PDFBox: This is a Java library that can be used to create and manipulate PDF documents. You can use it in combination with Apache POI (which handles .docx files) to convert documents to PDF. Alternatively, you can use the python-docx library to automate the splitting of the document, if you are at all familiar with that language.
Chiyoko_S
Chiyoko_S13mo ago
Most of those libraries usually require licenses if you want to perform more than a certain limit, e.g., over X pages
Chiyoko_S
Chiyoko_S13mo ago
Stack Overflow
Convert Word doc and docx format to PDF in .NET Core without Micros...
I need to display Word .doc and .docx files in a browser. There's no real client-side way to do this and these documents can't be shared with Google docs or Microsoft Office 365 for legal reasons.
Chiyoko_S
Chiyoko_S13mo ago
I see some compelling solutions
Chiyoko_S
Chiyoko_S13mo ago
Docker container for converting docx to omegalul very cool
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server