mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
fix for poppler 0.31.0
This commit is contained in:
parent
fcbba4b205
commit
d4fc82b901
@ -29,7 +29,7 @@ using std::unique_ptr;
|
|||||||
const SplashColor SplashBackgroundRenderer::white = {255,255,255};
|
const SplashColor SplashBackgroundRenderer::white = {255,255,255};
|
||||||
|
|
||||||
SplashBackgroundRenderer::SplashBackgroundRenderer(const string & imgFormat, HTMLRenderer * html_renderer, const Param & param)
|
SplashBackgroundRenderer::SplashBackgroundRenderer(const string & imgFormat, 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)
|
, html_renderer(html_renderer)
|
||||||
, param(param)
|
, param(param)
|
||||||
, format(imgFormat)
|
, format(imgFormat)
|
||||||
|
@ -882,7 +882,7 @@ const FontInfo * HTMLRenderer::install_font(GfxFont * font)
|
|||||||
* which does not make much sense in our case
|
* which does not make much sense in our case
|
||||||
* If we specify gFalse here, font_loc->locaType cannot be gfxFontLocResident
|
* 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, nullptr))
|
||||||
{
|
{
|
||||||
switch(font_loc -> locType)
|
switch(font_loc -> locType)
|
||||||
{
|
{
|
||||||
@ -937,7 +937,7 @@ void HTMLRenderer::install_external_font(GfxFont * font, FontInfo & info)
|
|||||||
cerr << "Warning: workaround for font names in bad encodings." << endl;
|
cerr << "Warning: workaround for font names in bad encodings." << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
GfxFontLoc * localfontloc = font->locateFont(xref, gFalse);
|
GfxFontLoc * localfontloc = font->locateFont(xref, nullptr);
|
||||||
|
|
||||||
if(param.embed_external_font)
|
if(param.embed_external_font)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user