Files
macports-ports/textproc/pdf2htmlex/files/patch-poppler-0.31.diff

32 lines
1.3 KiB
Diff

--- src/BackgroundRenderer/SplashBackgroundRenderer.h.orig 2015-02-07 14:21:17.000000000 -0800
+++ src/BackgroundRenderer/SplashBackgroundRenderer.h 2015-02-07 14:27:35.000000000 -0800
@@ -28,7 +28,7 @@
static const SplashColor white;
SplashBackgroundRenderer(HTMLRenderer * html_renderer, const Param & param)
- : SplashOutputDev(splashModeRGB8, 4, gFalse, (SplashColorPtr)(&white), gTrue, gTrue)
+ : SplashOutputDev(splashModeRGB8, 4, gFalse, (SplashColorPtr)(&white), gTrue)
, html_renderer(html_renderer)
, param(param)
{ }
--- src/HTMLRenderer/font.cc.orig 2015-02-07 13:58:56.000000000 -0800
+++ src/HTMLRenderer/font.cc 2015-02-07 14:00:27.000000000 -0800
@@ -887,7 +887,7 @@
* which does not make much sense in our case
* If we specify gFalse here, font_loc->locaType cannot be gfxFontLocResident
*/
- if(auto * font_loc = font->locateFont(xref, gFalse))
+ if(auto * font_loc = font->locateFont(xref, NULL))
{
switch(font_loc -> locType)
{
@@ -942,7 +942,7 @@
cerr << "Warning: workaround for font names in bad encodings." << endl;
}
- GfxFontLoc * localfontloc = font->locateFont(xref, gFalse);
+ GfxFontLoc * localfontloc = font->locateFont(xref, NULL);
if(param.embed_external_font)
{