2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-01 01:40:51 +00:00

Remove offset from missing /Root error

The last offset is irrelevant to not being able to find /Root.
This commit is contained in:
Jay Berkenbilt 2022-05-16 13:37:22 -04:00
parent 051ae7c282
commit 9a0e9a1a9e
7 changed files with 7 additions and 7 deletions

View File

@ -2592,7 +2592,7 @@ QPDF::getRoot()
qpdf_e_damaged_pdf,
this->m->file->getName(),
"",
this->m->file->getLastOffset(),
0,
"unable to find /Root dictionary");
}
return root;

View File

@ -14,4 +14,4 @@ WARNING: issue-100.pdf (object 5 0, offset 489): attempting to recover stream le
WARNING: issue-100.pdf (object 5 0, offset 489): recovered stream length: 12
WARNING: issue-100.pdf (trailer, offset 953): expected dictionary key but found non-name object; inserting key /QPDFFake1
WARNING: issue-100.pdf (trailer, offset 953): dictionary ended prematurely; using null as value for last key
qpdf: issue-100.pdf (offset 1144): unable to find /Root dictionary
qpdf: issue-100.pdf: unable to find /Root dictionary

View File

@ -40,4 +40,4 @@ WARNING: issue-101.pdf (object 11 0, offset 639): unknown token while reading ob
WARNING: issue-101.pdf (object 11 0, offset 644): unknown token while reading object; treating as string
WARNING: issue-101.pdf (object 11 0, offset 644): too many errors; giving up on reading object
WARNING: issue-101.pdf (object 11 0, offset 647): expected endobj
qpdf: issue-101.pdf (offset 687): unable to find /Root dictionary
qpdf: issue-101.pdf: unable to find /Root dictionary

View File

@ -1,4 +1,4 @@
WARNING: issue-118.pdf: can't find PDF header
WARNING: issue-118.pdf (offset 732): loop detected resolving object 2 0
WARNING: issue-118.pdf (xref stream: object 8 0, offset 732): supposed object stream 2 is not a stream
issue-118.pdf (offset 732): unable to find /Root dictionary
issue-118.pdf: unable to find /Root dictionary

View File

@ -1313,4 +1313,4 @@ WARNING: issue-335a.pdf (object 5 0, offset 23485): attempting to recover stream
WARNING: issue-335a.pdf (object 5 0, offset 23485): unable to recover stream data; treating stream as empty
WARNING: issue-335a.pdf (object 5 0, offset 24974): expected endobj
WARNING: issue-335a.pdf (object 5 0, offset 24974): EOF after endobj
qpdf: issue-335a.pdf (offset 24974): unable to find /Root dictionary
qpdf: issue-335a.pdf: unable to find /Root dictionary

View File

@ -1,4 +1,4 @@
WARNING: issue-99.pdf: file is damaged
WARNING: issue-99.pdf (offset 3526): xref not found
WARNING: issue-99.pdf: Attempting to reconstruct cross-reference table
qpdf: issue-99.pdf (offset 4798): unable to find /Root dictionary
qpdf: issue-99.pdf: unable to find /Root dictionary

View File

@ -2,4 +2,4 @@ WARNING: issue-99b.pdf: file is damaged
WARNING: issue-99b.pdf (object 1 0, offset 9): object with ID 0
WARNING: issue-99b.pdf: Attempting to reconstruct cross-reference table
WARNING: issue-99b.pdf: object 1 0 not found in file after regenerating cross reference table
qpdf: issue-99b.pdf (offset 763): unable to find /Root dictionary
qpdf: issue-99b.pdf: unable to find /Root dictionary