mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
fixes #335
This commit is contained in:
parent
8b7318fc62
commit
c48f9afb6d
@ -127,6 +127,9 @@ bool CairoBackgroundRenderer::render_page(PDFDoc * doc, int pageno)
|
||||
page_height = doc->getPageMediaHeight(pageno);
|
||||
}
|
||||
|
||||
if (doc->getPageRotate(pageno) == 90 || doc->getPageRotate(pageno) == 270)
|
||||
std::swap(page_height, page_width);
|
||||
|
||||
string fn = (char*)html_renderer->str_fmt("%s/bg%x.svg", (param.embed_image ? param.tmp_dir : param.dest_dir).c_str(), pageno);
|
||||
if(param.embed_image)
|
||||
html_renderer->tmp_files.add(fn);
|
||||
|
Loading…
Reference in New Issue
Block a user