1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-03 00:35:40 +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 charset="utf-8">
<meta name="generator" content="pdf2htmlEX"/> <meta name="generator" content="pdf2htmlEX"/>
""" """
# base CSS styles
@base.css @base.css
# PDF specific CSS styles
$css $css
# necessary Javascript codes
@jquery.js @jquery.js
@pdf2htmlEX.js @pdf2htmlEX.js
@ -38,6 +42,7 @@ new pdf2htmlEX.Viewer('pdf-main');
<div id="pdf-main"> <div id="pdf-main">
""" """
# PDF pages
$pages $pages
""" """

View File

@ -13,6 +13,8 @@
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>
#include <GlobalParams.h>
#include "HTMLRenderer.h" #include "HTMLRenderer.h"
#include "TextLineBuffer.h" #include "TextLineBuffer.h"
#include "pdf2htmlEX-config.h" #include "pdf2htmlEX-config.h"
@ -35,10 +37,6 @@ using std::abs;
using std::cerr; using std::cerr;
using std::endl; using std::endl;
static void dummy(void *, enum ErrorCategory, int pos, char *)
{
}
HTMLRenderer::HTMLRenderer(const Param * param) HTMLRenderer::HTMLRenderer(const Param * param)
:OutputDev() :OutputDev()
,line_opened(false) ,line_opened(false)
@ -49,8 +47,8 @@ HTMLRenderer::HTMLRenderer(const Param * param)
{ {
if(!(param->debug)) if(!(param->debug))
{ {
//disable error function of poppler //disable error messages of poppler
setErrorCallback(&dummy, nullptr); globalParams->setErrQuiet(gTrue);
} }
ffw_init(param->debug); ffw_init(param->debug);