Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I've never had to do this but I'd start with a byte stream.
...and then probably jump off a bridge a week later. -
Damn, if working with excel (official libs) is a pain in the butt i cant imagine word and ever worse pdf generation
-
620hun81887yIsn't there a library for that? I don't know C#, but that seems to be something that many people need.
-
@620hun yeah most of the libraries for handling pdfs are paid, like iText in java, apache pdfbox is a good alternative tho
-
@jpichardo to what end? To stop the multi millionaires from hoarding the world's wealth. No one man needs to be titled "Worlds richest man" how about worlds most generous man :p
-
@ScribeOfGoD sorry, why did u commented that here? No looking for trouble juat want to know if there is any relation to the rant
-
spacem18367yI had to do this once. We generated documents in word but some users were not allowed to edit them. Apparently some people think you cannot edit a PDF..
Anyway it was a thick client so what we did is download a word doc then used msword on the client to convert it. -
What if you decompiled Ms Word and then used its convert function in a separate script?
/*That's a joke @no-one is that crazy*/ -
MS Word has a "save as pdf" option, maybe there is a way to call that? Otherwise, have you looked at Pandoc?
-
LMagnus20577y@bighead interop works fine, (deadlock risks and Microsoft advice aside) but is dependent on office being installed on the server which I'd like to avoid.
-
LMagnus20577y@ErwinJanssen your first suggestion is dependent on interop and office so would like to avoid that. I'm not familiar with Pandoc but I'll look into it, thanks.
-
620hun81887yYou could look for solutions in other languages. Less than ideal, but a possibility. E.g. https://npmjs.com/package/docx-pdf/
Related Rants
Converting a .docx to .pdf in c# is a pain in the tits.
(Without paying or using office obvs)
undefined
pdf conversion
c#