View previous topic :: View next topic |
Author |
Message |
Sargastic n00b
Joined: 28 Aug 2011 Posts: 57
|
Posted: Fri Apr 12, 2013 10:19 am Post subject: Pftlatex/pdftk version mismatch |
|
|
Hello,
Not sure this forum is the proper one, but the others seem even less fit :oops:
There has been some emerging lately on my Gentoo box, and I ran into heavy troubles with pdftk since.
Pdflatex generates version 1.5 pdf files, and pdftk does not seem to recognize them (at least those I did produce) :
Code: |
$ file 01-document.pdf
01-document.pdf: PDF document, version 1.5
$ pdftk 01-document.pdf cat 1 output /tmp/01.pdf
Error: Failed to open PDF file:
01-document.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.
$ file 02-document.pdf
02-document.pdf: PDF document, version 1.4
$ pdftk 02-document.pdf cat 1 output /tmp/02.pdf
$
|
We would like either
- get pdflatex back to generating version 1.4 PDF files, or
- get pdftk to process version 1.5 PDF files properly
Currently, the 1.5 PDF file is processed by displaying with Okular, printing it to PDF (which produces a version 1.4 pdf file) and then using pdftk on this "printed" file. It works but that's an ugly way of doing things.
Any idea "what" does produce the PDF code (for pdflatex) ? We already downgraded poppler, without success.
Tia,
-- Sarg |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Sun Apr 21, 2013 1:59 am Post subject: |
|
|
The problem is that pdftk uses an internal itext library which is quite outdated. So the solution would be to make it use external dev-java/itext, or a workaround to specify the PDF version in your LaTeX files.
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|