[1973] | 1 | Fix FTBFS with poppler again, they will never be able to keep APIs |
---|
| 2 | |
---|
| 3 | Thanks to Ubuntu people for that patch |
---|
| 4 | --- |
---|
| 5 | texk/web2c/pdftexdir/pdftoepdf.cc | 8 ++++++-- |
---|
| 6 | 1 file changed, 6 insertions(+), 2 deletions(-) |
---|
| 7 | |
---|
| 8 | Index: texlive-bin-2009~svn15596/texk/web2c/pdftexdir/pdftoepdf.cc |
---|
| 9 | =================================================================== |
---|
| 10 | --- texlive-bin-2009~svn15596.orig/texk/web2c/pdftexdir/pdftoepdf.cc 2009-10-18 10:21:47.000000000 +0900 |
---|
| 11 | +++ texlive-bin-2009~svn15596/texk/web2c/pdftexdir/pdftoepdf.cc 2009-10-18 10:22:28.000000000 +0900 |
---|
| 12 | @@ -650,7 +650,7 @@ |
---|
| 13 | } |
---|
| 14 | for (r = encodingList; r != 0; r = n) { |
---|
| 15 | n = r->next; |
---|
| 16 | - delete r->font; |
---|
| 17 | +// delete r->font; |
---|
| 18 | delete r; |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | @@ -690,6 +690,7 @@ |
---|
| 22 | Page *page; |
---|
| 23 | int rotate; |
---|
| 24 | PDFRectangle *pagebox; |
---|
| 25 | + int minor_pdf_version_found, major_pdf_version_found; |
---|
| 26 | float pdf_version_found, pdf_version_wanted; |
---|
| 27 | // initialize |
---|
| 28 | if (!isInit) { |
---|
| 29 | @@ -705,8 +706,11 @@ |
---|
| 30 | // this works only for PDF 1.x -- but since any versions of PDF newer |
---|
| 31 | // than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will |
---|
| 32 | // then have to changed drastically anyway. |
---|
| 33 | - pdf_version_found = pdf_doc->doc->getPDFVersion(); |
---|
| 34 | + minor_pdf_version_found = pdf_doc->doc->getPDFMinorVersion(); |
---|
| 35 | + major_pdf_version_found = pdf_doc->doc->getPDFMajorVersion(); |
---|
| 36 | + pdf_version_found = major_pdf_version_found + (minor_pdf_version_found * 0.1); |
---|
| 37 | pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1); |
---|
| 38 | + |
---|
| 39 | if (pdf_version_found > pdf_version_wanted) { |
---|
| 40 | char msg[] = |
---|
| 41 | "PDF inclusion: found PDF version <%.1f>, but at most version <%.1f> allowed"; |
---|