Ask Your Question

filter options for -convert-to using command line [closed]

asked 2013-02-26 14:07:06 +0100

cheche gravatar image

I have a script to convert all documents to pdf that runs every night. But I want it to be PDF/A-1a version for future preservation.

find $ACTAS_HOME -name "*.doc" -ctime -1 -execdir /usr/bin/libreoffice --headless --convert-to pdf:writer_pdf_Export {} \;

I need to add SelectPdfVersion=1 to the filter options.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by qubit
close date 2013-02-26 21:21:22.833277

2 Answers

Sort by » oldest newest most voted

answered 2013-02-26 16:05:33 +0100

qubit gravatar image

Hi @cheche,

You might be able to open your file using a macro and modify it before export:

Actually, with the LO 4.0 build I have installed on my Ubuntu 12.04.2 machine, PDF/A-1a appears to be set as the default if I go to File -> Export as PDF -> General. If PDF/A-1a isn't already set in LO for you, try setting it and see if the command-line conversion respects that flag.

edit flag offensive delete link more

answered 2013-02-26 20:45:57 +0100

cheche gravatar image

updated 2013-03-09 09:26:46 +0100

Sorry my question looks duplicate I will research the use of unoconv.

Just for the recort if someone is searching the same issue:

find /home/samba/actasyresoluciones/ -name "*.doc" -ctime -15 -execdir /root/unoconv -f pdf -eSelectPdfVersion=1 {} \;

works for me

edit flag offensive delete link more


@cheche -- thanks for the note, I'll mark this as a dupe.

Good luck with unoconv!

qubit gravatar imagequbit ( 2013-02-26 21:21:06 +0100 )edit

Question Tools

1 follower


Asked: 2013-02-26 14:07:06 +0100

Seen: 5,555 times

Last updated: Mar 09 '13