[tex-live] xetex: broken pdf inclusion
Martin Schröder
martin at oneiros.de
Thu Jul 17 00:46:03 CEST 2008
2008/7/17 Taco Hoekwater <taco at elvenkind.com>:
> Taco Hoekwater wrote:
> To be honest, I did not really try this out, it is too late for that
> now, I have to get to bed. But I do not see what else it could be.
>
>> Martin, this is the -DDISABLE_OUTLINE again, but now in reverse.
>>
>> Do we really need that in pdftex?
>
> Is it even safe to do this with e.g. a dynamic poppler link, btw?
> Or is it because of that?
No. Never though of that. And yes, it will show the same problems.
The only real problem is the (missing) private member outline in
PDFDoc.h, as it changes the size of a PDFDoc object.
This should fix it (and it also moves the member to the end of the
class to make error catching easier):
------------------------------
Index: PDFDoc.h
===================================================================
--- PDFDoc.h (Revision 489)
+++ PDFDoc.h (Arbeitskopie)
@@ -212,13 +212,13 @@
double pdfVersion;
XRef *xref;
Catalog *catalog;
+ GBool ok;
+ int errCode;
#ifndef DISABLE_OUTLINE
Outline *outline;
+#else
+ void *dummy;
#endif
-
-
- GBool ok;
- int errCode;
};
#endif
------------------------------
>> If not, the fix is simple: just
>> revert your change to the xpdf Makefile.in's and drop the -D from
>> ALL_CXXFLAGS also.
>
> Or the other way around: luatex and xetex need a -DDISABLE_OUTLINE
> then while compiling their glue to the xpdf library.
Yes. But let's at least keep -DPDF_PARSER_ONLY, please.
Best
Martin
More information about the tex-live
mailing list