1
Fix a FTBFS with libpoppler 0.12: use getPDFMinorVersion instead of getPDFVersion
2
Index: texlive-bin-2007.dfsg.2/build/source/texk/web2c/pdftexdir/pdftoepdf.cc
3
===================================================================
4
--- texlive-bin-2007.dfsg.2.orig/build/source/texk/web2c/pdftexdir/pdftoepdf.cc 2009-09-28 10:25:18.000000000 +0000
5
+++ texlive-bin-2007.dfsg.2/build/source/texk/web2c/pdftexdir/pdftoepdf.cc 2009-09-28 10:59:33.000000000 +0000
10
+ int minor_pdf_version_found, major_pdf_version_found;
11
float pdf_version_found, pdf_version_wanted;
15
// this works only for PDF 1.x -- but since any versions of PDF newer
16
// than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will
17
// then have to changed drastically anyway.
18
- pdf_version_found = pdf_doc->doc->getPDFVersion();
19
+ minor_pdf_version_found = pdf_doc->doc->getPDFMinorVersion();
20
+ major_pdf_version_found = pdf_doc->doc->getPDFMajorVersion();
21
+ pdf_version_found = major_pdf_version_found + (minor_pdf_version_found * 0.1);
22
pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1);
24
if (pdf_version_found > pdf_version_wanted) {
26
"PDF inclusion: found PDF version <%.1f>, but at most version <%.1f> allowed";