texlive-2009-pdftexdir-libpoppler-0.12.patch 1.6 KB

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