2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Fix QPDF::getAllPagesInternal warning

Provide correct obj_gen.
This commit is contained in:
m-holger 2024-11-07 16:40:43 +00:00
parent 54cf0e519c
commit 1d2c0c2f99
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ QPDF::getAllPagesInternal(
throw QPDFExc(
qpdf_e_pages,
m->file->getName(),
m->last_object_description,
"object " + cur_node.getObjGen().unparse(' '),
0,
"Loop detected in /Pages structure (getAllPages)");
}

View File

@ -2,5 +2,5 @@ checking pages-loop.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
ERROR: pages-loop.pdf (object 3 0): Loop detected in /Pages structure (getAllPages)
ERROR: pages-loop.pdf (object 2 0): Loop detected in /Pages structure (getAllPages)
qpdf: errors detected