Open ilovezfs opened 7 years ago
Managed to build it with poppler-0.59.0.
The poppler API regarding the class "Object" has changed. The code in font.cc
and CairoBackgroundRenderer.cc
uses the older API.
I had to remove all calls to free()
and change for example following calls:
old font.cc line 81
:
if(dict->lookup("DescendantFonts", &font_obj2)->isArray())
new font.cc 81
:
font_obj2 = dict->lookup("DescendantFonts");
if(font_obj2.isArray())
and so on.
I encountered another problem described in 722 and unfortunately cannot test if the code changes above also ensure correct behavior.
@billeranton maybe open a PR so that the ball moves forward on getting this resolved?
Added PR #738.
Tested with pdf2htmlEX 0.14.6 and HEAD @ f12fc155158fd3b217da748f7ed7595fa6f6935c.
Here is the complete log: https://gist.github.com/ilovezfs/28671e8e5b7fae892061585b4d3ee236