[XeTeX] embedding PDF, 1.4 vs. 1.5

Heiko Oberdiek heiko.oberdiek at googlemail.com
Tue Jun 17 17:53:02 CEST 2014


On 17.06.2014 17:38, maxwell wrote:
> On 2014-06-17 11:31, maxwell wrote:
>> Late last year, I ran into a problem in which I could embed a PDF
>> v1.4, but not v1.5 (I have not tried this with newer versions of PDFs,
>> which are now up to 1.7).  The problem and its work-around are
>> described here:
>>    http://tug.org/mailman/htdig/xetex/2012-October/023677.html
>> also
>>    http://tug.org/pipermail/xetex/2012-December/023869.html
> 
> The above work around involved a double conversion using pdf2ps, from
> PDF to PS and back again to PDF.

There are other less invasive options:

  pdftk old.pdf cat output new.pdf

Or use another PDF library for reading/writing. When the file
is written, PDF object compression of PDF-1.5 must be disabled.

Yours sincerely
  Heiko Oberdiek




More information about the XeTeX mailing list