Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: PDF::API2 fails combining pdf 1.3 and 1.4

by Anonymous Monk
on Feb 28, 2013 at 07:49 UTC ( #1021010=note: print w/replies, xml ) Need Help??

in reply to Re^2: PDF::API2 fails combining pdf 1.3 and 1.4
in thread PDF::API2 fails combining pdf 1.3 and 1.4

I learned that you should not combine pdf files with different pdf versions. They can be converted by reinterpreting them in ghostscript, as below.

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=clean.pdf original.pdf # In windows, replace 'gs' with 'gswin32c.exe'

that made the trick for me. It's trivial to call ghostscrip with 'exec' or 'system' from perl.

It wasn't a perl problem and I should not have posted it in perlmonks, probably, but I wanted to share the solution anyway.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021010]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-10-25 01:08 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (313 votes). Check out past polls.