Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pftlatex/pdftk version mismatch
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 57

PostPosted: Fri Apr 12, 2013 10:19 am    Post subject: Pftlatex/pdftk version mismatch Reply with quote

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
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Sun Apr 21, 2013 1:59 am    Post subject: Reply with quote

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.
Code:
\pdfminorversion=4
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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