1
0
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:
Lu Wang 2013-01-28 18:16:01 +08:00
parent 639c7e1495
commit 4d94c1d072
2 changed files with 10 additions and 7 deletions

View File

@ -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
"""

View File

@ -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);