mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 17:48:38 +00:00
disable poppler log function
This commit is contained in:
parent
069a072642
commit
ba305ae9fd
|
@ -20,6 +20,10 @@ using std::flush;
|
||||||
using boost::filesystem::remove;
|
using boost::filesystem::remove;
|
||||||
using boost::filesystem::filesystem_error;
|
using boost::filesystem::filesystem_error;
|
||||||
|
|
||||||
|
static void dummy(void *, ErrorCategory, int pos, char *)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
HTMLRenderer::HTMLRenderer(const Param * param)
|
HTMLRenderer::HTMLRenderer(const Param * param)
|
||||||
:line_status(LineStatus::NONE)
|
:line_status(LineStatus::NONE)
|
||||||
,image_count(0)
|
,image_count(0)
|
||||||
|
@ -27,6 +31,9 @@ HTMLRenderer::HTMLRenderer(const Param * param)
|
||||||
,dest_dir(param->dest_dir)
|
,dest_dir(param->dest_dir)
|
||||||
,tmp_dir(param->tmp_dir)
|
,tmp_dir(param->tmp_dir)
|
||||||
{
|
{
|
||||||
|
//disable error function of poppler
|
||||||
|
setErrorCallback(&dummy, nullptr);
|
||||||
|
|
||||||
ff_init();
|
ff_init();
|
||||||
cur_mapping = new int32_t [0x10000];
|
cur_mapping = new int32_t [0x10000];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user