Hi Taco, hi all,
I was just playing around to get 0.51.0 compiled with libpopper, without
success unfortunately.
I have already one patch in my patch queue to help (for the pdf version,
see attached patch), but there is a new problem which I tried to find
a way around without success. Maybe someone here has an idea:
../../../source/texk/web2c/luatexdir/image/pdftoepdf.cc: In function ‘void
write_epdf1(pdf_output_file*, image_dict*)’:
../../../source/texk/web2c/luatexdir/image/pdftoepdf.cc:663: error: ‘class
Page’ has no member named ‘getResourcesNF’
../../../source/texk/web2c/luatexdir/image/pdftoepdf.cc:669: error: ‘class
Page’ has no member named ‘getMetadataNF’
I checked the header files from poppler and there is nothing like *NF :-(
Thanks for any suggestions, and all the best
Norbert
------------------------------------------------------------------------
Norbert Preining prein...@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TU Wien, Austria Debian TeX Task Force
DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
He expanded his chest to make it totally clear that here
was the sort of man you only dared to cross if you had a
team of Sherpas with you.
--- Douglas Adams, The Hitchhikers Guide to the Galaxy
fix luatex for libpoppler 0.12
patch by Ilya Barygin
licensed under GPLv2, see <20091022102009.208b5...@corner> on
debian-tex-maint Debian mailing list
---
source/texk/web2c/luatexdir/image/pdftoepdf.cc | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
Index: luatex-0.47.0/source/texk/web2c/luatexdir/image/pdftoepdf.cc
===================================================================
--- luatex-0.47.0.orig/source/texk/web2c/luatexdir/image/pdftoepdf.cc
2009-12-19 18:26:42.000000000 +0900
+++ luatex-0.47.0/source/texk/web2c/luatexdir/image/pdftoepdf.cc
2009-12-19 18:26:49.000000000 +0900
@@ -771,7 +771,8 @@
int rotate;
char *checksum;
PDFRectangle *pagebox;
- float pdf_version_found, pdf_version_wanted, xsize, ysize, xorig, yorig;
+ unsigned major_pdf_version_found, minor_pdf_version_found;
+ float xsize, ysize, xorig, yorig;
assert(idict != NULL);
assert(img_type(idict) == IMG_TYPE_PDF);
assert(readtype == IMG_CLOSEINBETWEEN); // only this is implemented
@@ -794,15 +795,18 @@
// this works only for PDF 1.x -- but since any versions of PDF newer
// than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will
// then have to changed drastically anyway.
- pdf_version_found = pdf_doc->doc->getPDFVersion();
- pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1);
- if (pdf_version_found > pdf_version_wanted + 0.01) {
+ major_pdf_version_found = pdf_doc->doc->getPDFMajorVersion();
+ minor_pdf_version_found = pdf_doc->doc->getPDFMinorVersion();
+ if (major_pdf_version_found > 1 ||
+ (major_pdf_version_found == 1 &&
+ minor_pdf_version_found > minor_pdf_version_wanted)
+ ) {
char msg[] =
- "PDF inclusion: found PDF version <%.1f>, but at most version
<%.1f> allowed";
+ "PDF inclusion: found PDF version <%u.%u>, but at most version
<1.%i> allowed";
if (pdf_inclusion_errorlevel > 0) {
- pdftex_fail(msg, pdf_version_found, pdf_version_wanted);
+ pdftex_fail(msg, major_pdf_version_found, minor_pdf_version_found,
minor_pdf_version_wanted);
} else {
- pdftex_warn(msg, pdf_version_found, pdf_version_wanted);
+ pdftex_warn(msg, major_pdf_version_found, minor_pdf_version_found,
minor_pdf_version_wanted);
}
}
img_totalpages(idict) = pdf_doc->doc->getCatalog()->getNumPages();
_______________________________________________
dev-luatex mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-luatex