1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-07 18:30:34 +00:00

process_outline 0 was trying to write manifest which did not exists.

This commit is contained in:
Deepak Thukral 2013-02-22 10:06:13 +01:00
parent bc078cef78
commit 88d5a5b0ca

View File

@ -348,8 +348,12 @@ void HTMLRenderer::pre_process(PDFDoc * doc)
void HTMLRenderer::post_process(void)
{
dump_css();
// close files
// close files if they opened
// it's better to brace single liner LLVM complains
if (param->process_outline)
{
f_outline.fs.close();
}
f_pages.fs.close();
f_css.fs.close();
@ -406,6 +410,8 @@ void HTMLRenderer::post_process(void)
embed_file(output, f_css.path, ".css", false);
}
else if (line == "$outline")
{
if (param->process_outline)
{
ifstream fin(f_outline.path, ifstream::binary);
if(!fin)
@ -413,6 +419,7 @@ void HTMLRenderer::post_process(void)
output << fin.rdbuf();
output.clear(); // output will set fail big if fin is empty
}
}
else if (line == "$pages")
{
ifstream fin(f_pages.path, ifstream::binary);