How to convert pdf to pdf/a using LibreOffice through .net code

asked 2019-06-22 16:34:17 +0100

raju123 gravatar image

updated 2019-06-22 16:44:25 +0100

I tried to convert pdf to pdf/a using below command but it is not working, could you please help me to converting pdf to pdf/a using libreoffice through .net code?

"-norestore -nofirststartwizard -headless -convert-to pdf \""+sFilePath+ "\"";

edit retag flag offensive close merge delete


Hmm - isn't LibreOffice using double hyphens (--) for command arguments on .net code? I'd expect "--norestore --nofirststartwizard --headless --convert-to pdf ....

Opaque gravatar imageOpaque ( 2019-06-24 12:55:04 +0100 )edit

It still accepts single hyphens, emitting warnings that this syntax is deprecated.

But OP didn't provide details about the problem. No error message. No full command line. No OS and LO versions. No even information if the conversion tried to work interactively.

Mike Kaganski gravatar imageMike Kaganski ( 2019-06-24 17:27:58 +0100 )edit