❔ Docx to pdf converter
Hello i need to convert docx to PDF using .net6.0 or higher. I cannot use Interop since the server is on azure. Any idea? It must be a free comercial license
7 Replies
there's plenty of open-source OpenXML libraries
there's not really any open-source PDF libraries, that I know of
and the truth is that they're entirely incompatible formats
there is no converting between the two, not really
not in any, like "correct" or "here's how it should be done" way
case in point: the most-highly-recommended way to get this done in .NET is to actually convert your DOCX to HTML, and then convert THAT to PDF
but that second step is not actually a .NET library, it's achieved with an entirely separate toolkit, that runs as its own process
here's the thread, if you wanna look into it
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.
suffice it to say, the fact that you can't find any ready-made way to do this is an indicator of how much of a pain in the ass this problem is
despite how simple it seems when you can just "Print to PDF" in most applications
there's a loooooooooooooooooooot of engineering that's gone into those features
https://gotenberg.dev/ sounded fun
It's a docker container that provides you with a REST API for turning office files into pdf and stuffs
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.There are plenty of rasterizers which can print to PDF from DOCX. They're just mostly commercial, or Java.