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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 9, 2020, 2:42 AM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 9, 2020, 12:59 AM EDT
I already did it using libreoffice
You just need Dowloads dll to run soffice command
Using this commands you can do pdf conversion
siva nathanRank #1,695 · 899 reputationPosted Jul 9, 2020, 1:05 AM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 9, 2020, 1:09 AM EDT
Check this Api code
https://github.com/papabytes/libreoffice-conversion-api
Might be it's same as your requirement
siva nathanRank #1,695 · 899 reputationPosted Jul 9, 2020, 1:16 AM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 9, 2020, 1:31 AM EDT
Thank you
siva nathanRank #1,695 · 899 reputationPosted Jul 9, 2020, 1:32 AM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 9, 2020, 2:28 AM EDT
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 nathanRank #1,695 · 899 reputationPosted Jul 9, 2020, 2:37 AM EDT
Leon DRank #851 · 2.6K reputationPosted Jul 9, 2020, 3:58 PM EDT
Ajay Bachale69 reputationPosted Jul 16, 2020, 12:39 AM EDT
Marvin ReidRank #1,963 · 746 reputationPosted Mar 1, 2022, 5:12 PM EST