Ask Your Question
1

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

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

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
0

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

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
0

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

cheche gravatar image

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

Sorry my question looks duplicate http://ask.libreoffice.org/en/question/2590/convert-files-to-pdfa-on-command-line-headless/ http://en.libreofficeforum.org/node/3096 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

Comments

@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 +0200 )edit

Question Tools

1 follower

Stats

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

Seen: 4,758 times

Last updated: Mar 09 '13