Skip to content

Commit

Permalink
fix page number
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Jan 1, 2025
1 parent 2297a93 commit 276ea93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdf2htmlEX/src/HTMLRenderer/general.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@ void HTMLRenderer::process(PDFDoc *doc)

bool HTMLRenderer::renderPage(PDFDoc *doc, int pageno)
{
if (bg_renderer->render_page(cur_doc, pageNum))
if (bg_renderer->render_page(cur_doc, pageno))
{
return true;
}
else if (fallback_bg_renderer)
{
if (fallback_bg_renderer->render_page(cur_doc, pageNum))
if (fallback_bg_renderer->render_page(cur_doc, pageno))
return true;
}

Expand Down

0 comments on commit 276ea93

Please sign in to comment.