2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-02-12 00:28:31 +00:00

Merge pull request #1307 from m-holger/pages

Fix QPDF::getAllPagesInternal warning
This commit is contained in:
m-holger 2025-01-28 15:59:52 +00:00 committed by GitHub
commit bde5a446ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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