Hi All,
can anyone please tell me how to convert document file into PDF using libreoffice in C#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Marvin ReidPosted Mar 1, 2022, 10:12 PM
Ajay BachalePosted Jul 16, 2020, 4:39 AM
Leon DPosted Jul 9, 2020, 7:58 PM
Jenith ThakkarPosted Jul 9, 2020, 6:42 AM
siva nathanPosted Jul 9, 2020, 6:37 AM
Jenith ThakkarPosted Jul 9, 2020, 6:28 AM
There's one console application
you can check the code for your reference
In that Console inside program.cs there's method
In this method you need set soffice.exe path of your machine like
(The soffice.exe file is located in a subfolder of "C:\Program Files (x86)" (typically C:\Program Files (x86)\OpenOffice.org 3\program\ or C:\Program Files (x86)\OpenOffice 4\program\))
siva nathanPosted Jul 9, 2020, 5:32 AM
Jenith ThakkarPosted Jul 9, 2020, 5:31 AM
Thank you
siva nathanPosted Jul 9, 2020, 5:16 AM
Jenith ThakkarPosted Jul 9, 2020, 5:09 AM
Check this Api code
https://github.com/papabytes/libreoffice-conversion-api
Might be it's same as your requirement
siva nathanPosted Jul 9, 2020, 5:05 AM
Jenith ThakkarPosted Jul 9, 2020, 4:59 AM
I already did it using libreoffice
You just need Dowloads dll to run soffice command
Using this commands you can do pdf conversion