From 276ea933cdfd7770fa4734d9248f0f6d07ed3853 Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Wed, 1 Jan 2025 15:21:26 +0100 Subject: [PATCH] fix page number --- pdf2htmlEX/src/HTMLRenderer/general.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf2htmlEX/src/HTMLRenderer/general.cc b/pdf2htmlEX/src/HTMLRenderer/general.cc index bdebc0aa..07c22fd0 100644 --- a/pdf2htmlEX/src/HTMLRenderer/general.cc +++ b/pdf2htmlEX/src/HTMLRenderer/general.cc @@ -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; }