mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix build with git version of poppler
This commit is contained in:
parent
639c7e1495
commit
4d94c1d072
@ -21,9 +21,13 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="generator" content="pdf2htmlEX"/>
|
||||
"""
|
||||
|
||||
# base CSS styles
|
||||
@base.css
|
||||
|
||||
# PDF specific CSS styles
|
||||
$css
|
||||
|
||||
# necessary Javascript codes
|
||||
@jquery.js
|
||||
@pdf2htmlEX.js
|
||||
|
||||
@ -38,6 +42,7 @@ new pdf2htmlEX.Viewer('pdf-main');
|
||||
<div id="pdf-main">
|
||||
"""
|
||||
|
||||
# PDF pages
|
||||
$pages
|
||||
|
||||
"""
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
#include <GlobalParams.h>
|
||||
|
||||
#include "HTMLRenderer.h"
|
||||
#include "TextLineBuffer.h"
|
||||
#include "pdf2htmlEX-config.h"
|
||||
@ -35,10 +37,6 @@ using std::abs;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
static void dummy(void *, enum ErrorCategory, int pos, char *)
|
||||
{
|
||||
}
|
||||
|
||||
HTMLRenderer::HTMLRenderer(const Param * param)
|
||||
:OutputDev()
|
||||
,line_opened(false)
|
||||
@ -49,8 +47,8 @@ HTMLRenderer::HTMLRenderer(const Param * param)
|
||||
{
|
||||
if(!(param->debug))
|
||||
{
|
||||
//disable error function of poppler
|
||||
setErrorCallback(&dummy, nullptr);
|
||||
//disable error messages of poppler
|
||||
globalParams->setErrQuiet(gTrue);
|
||||
}
|
||||
|
||||
ffw_init(param->debug);
|
||||
|
Loading…
Reference in New Issue
Block a user