Ask Your Question
0

(Solved) Convert to pdf with specific settings (from command)

asked 2019-03-12 19:56:15 +0200

Lodahl gravatar image

updated 2019-03-14 20:56:00 +0200

Is it possible to convert to PDF with specific PDF-options from the command line?

My specific problem is that I would like to force PDF/A 1a. I have found that the property is this:

<item oor:path="/org.openoffice.Office.Common/Filter/PDF/Export"><prop oor:name="SelectPdfVersion" oor:op="fuse"><value>1</value></prop></item>

LibreOffice stores this and other settings in the user profile file. But is it somehow possible to parse specific options from command line.

I'm looking for something like -outfilter similar to -infilter.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2019-03-13 05:18:17 +0200

There is no "outfilter" command line parameter - because it's not needed: export filter parameters are optionally passed to --export-to after a comma after output extension - see documentation.

Still - there is no such PDF export filter parameter, and thus you only can use a dedicated pre-configured user profile (create one and copy to some directory), using -env:UserInstallation=file:///path/to/profile/with/pdf/a/config.

edit flag offensive delete link more

Comments

Hi friend,

I'm trying to define the margins before converting the PDF, without embago I could not.

You can help me?

Thank you

Rubén Sánchez gravatar imageRubén Sánchez ( 2019-12-09 17:15:11 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-03-12 19:56:15 +0200

Seen: 2,047 times

Last updated: Mar 14 '19