Re: pdftex core dump when including certain pdf files

"KAKUTO, Akira" <kakuto-/k5Uodmu4m/[email protected]>
Newsgroups gmane.comp.tex.pdftex
Message-ID <CAAaQaP7fc--xJQVn+Xp4rgveM1056UqKuFEWPxHV2f4bbitvVw@mail.gmail.com>
Hi Norbert,

> But this may not be a desirable fix.

If we use getNum() instead of getInt() in pdftoepdf.cc,
tryplot.pdf is created successfully even if we use poppler.
But I don't know the change is harmless or not.
See an attached pdftoepdf.cc.diff.

Best,
Akira
pdftoepdf.cc.diff (text/plain, 590 B)
--- pdftoepdf.cc.orig	Fri Feb 19 11:45:31 2016
+++ pdftoepdf.cc	Fri Jul 15 14:38:51 2016
@@ -427,7 +427,7 @@
         && (fontmap = lookup_fontmap(basefont->getName())) != NULL) {
         // copy the value of /StemV
         fontdesc->dictLookup("StemV", &stemV);
-        fd = epdf_create_fontdescriptor(fontmap, stemV->getInt());
+        fd = epdf_create_fontdescriptor(fontmap, stemV->getNum());
         if (fontdesc->dictLookup("CharSet", &charset) &&
             charset->isString() && is_subsetable(fontmap))
             epdf_mark_glyphs(fd, charset->getString()->getCString());
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.