texlive-2009-luatexdir-libpoppler-0.12.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. This patch is based on texlive-2009-pdftexdir-libpoppler-0.12.patch.
  2. Fix FTBFS with poppler again, they will never be able to keep APIs
  3. Thanks to Ubuntu people for that patch
  4. ===================================================================
  5. diff -up texlive-20091107-source/texk/web2c/luatexdir/image/pdftoepdf.cc.xpdf texlive-20091107-source/texk/web2c/luatexdir/image/pdftoepdf.cc
  6. --- texlive-20091107-source/texk/web2c/luatexdir/image/pdftoepdf.cc.xpdf 2009-06-25 22:05:10.000000000 +0900
  7. +++ texlive-20091107-source/texk/web2c/luatexdir/image/pdftoepdf.cc 2010-10-01 00:34:22.405000028 +0900
  8. @@ -666,7 +666,7 @@ static void writeEncodings()
  9. }
  10. for (r = encodingList; r != NULL; r = n) {
  11. n = r->next;
  12. - delete r->font;
  13. +// delete r->font;
  14. delete r;
  15. }
  16. }
  17. @@ -705,6 +705,7 @@ read_pdf_info(image_dict * idict, intege
  18. Page *page;
  19. int rotate;
  20. PDFRectangle *pagebox;
  21. + int minor_pdf_version_found, major_pdf_version_found;
  22. float pdf_version_found, pdf_version_wanted, xsize, ysize, xorig, yorig;
  23. assert(idict != NULL);
  24. assert(img_type(idict) == IMG_TYPE_PDF);
  25. @@ -720,8 +721,11 @@ read_pdf_info(image_dict * idict, intege
  26. // this works only for PDF 1.x -- but since any versions of PDF newer
  27. // than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will
  28. // then have to changed drastically anyway.
  29. - pdf_version_found = pdf_doc->doc->getPDFVersion();
  30. + minor_pdf_version_found = pdf_doc->doc->getPDFMinorVersion();
  31. + major_pdf_version_found = pdf_doc->doc->getPDFMajorVersion();
  32. + pdf_version_found = major_pdf_version_found + (minor_pdf_version_found * 0.1);
  33. pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1);
  34. +
  35. if (pdf_version_found > pdf_version_wanted + 0.01) {
  36. char msg[] =
  37. "PDF inclusion: found PDF version <%.1f>, but at most version <%.1f> allowed";
  38. Diff finished. Fri Oct 1 00:35:08 2010