23
9
I want to convert a PDF from version 1.5 to 1.4 using a command line utility.
Is there anything available?
23
9
I want to convert a PDF from version 1.5 to 1.4 using a command line utility.
Is there anything available?
29
Found this in the ubuntu forums :
# gs -sDEVICE=pdfwrite -dCompatibilityLevel=<VERSION> -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Just tested this and it works fine, I'll post some output now.
[14:08:41]lee@barlow:~/superuser # pdfinfo org_1-4.pdf
Title: CV 2009
Producer: Prince 7.0 alpha 16 (www.princexml.com)
Tagged: no
Pages: 3
Encrypted: no
Page size: 595 x 842 pts (A4)
File size: 51793 bytes
Optimized: no
PDF version: 1.4
[14:08:59]lee@barlow:~/superuser # gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out_1.5.pdf org_1-4.pdf
[14:09:35]lee@barlow:~/superuser # pdfinfo out_1.5.pdf
Producer: GPL Ghostscript 8.64
CreationDate: Wed Aug 19 14:09:34 2009
ModDate: Wed Aug 19 14:09:34 2009
Tagged: no
Pages: 3
Encrypted: no
Page size: 595 x 842 pts (A4)
File size: 60658 bytes
Optimized: no
PDF version: 1.5
1Just noticed that the example is backwards.. 1.4 -> 1.5 instead of 1.5 -> 1.4 . ah well, thanks for the up votes :) – lyarwood – 2009-08-19T15:03:01.463
Not a problem. I worked that out :P – Tom – 2009-08-19T15:18:49.390