-
-
Notifications
You must be signed in to change notification settings - Fork 579
Closed
Labels
Description
[x] Your issue is based on the latest commit
[x] State your OS and OS version: MacOS 13.2.1
similar problem to #256. Found this when working on #784
Here's the file: center.pdf. It's a fairly simple file, but is used heavily as a watermark in my application.
Thanks for taking a look!
This problem was introduced somewhere between aa87096 and b89d7b1.
$ pdfcpu version
pdfcpu: v0.3.13 dev
$ pdfcpu validate center.pdf
validating(mode=relaxed) center.pdf ...
validation ok
$ pdfcpu version
pdfcpu: v0.6.0 dev
commit: b89d7b1a (2024-01-13T23:18:11Z)
base : go1.21.4
$pdfcpu validate -vv center.pdf
validating(mode=relaxed) center.pdf ...
READ: 2024/01/23 11:53:45 Read: begin
INFO: 2024/01/23 11:53:45 PDF Version 1.5 conforming reader
READ: 2024/01/23 11:53:45 readXRefTable: begin
READ: 2024/01/23 11:53:45 scanning for offsetLastXRefSection starting at 567
READ: 2024/01/23 11:53:45 Offset last xrefsection: 849
READ: 2024/01/23 11:53:45 buildXRefTableStartingAt: begin
READ: 2024/01/23 11:53:45 headerVersion begin
READ: 2024/01/23 11:53:45 headerVersion: end, found header version: 1.4
READ: 2024/01/23 11:53:45 newPositionedReader: positioned to offset: 849
READ: 2024/01/23 11:53:45 xref line 1: <0 8>
READ: 2024/01/23 11:53:45 xref line 2: <0000000000 65535 f >
READ: 2024/01/23 11:53:45 buildXRefTableStartingAt: found xref stream
READ: 2024/01/23 11:53:45 newPositionedReader: positioned to offset: 849
READ: 2024/01/23 11:53:45 parseXRefStream: begin at offset 849
READ: 2024/01/23 11:53:45 buffer: endInd=-1 streamInd=-1
READ: 2024/01/23 11:53:45 bypassXRefSection after EOF
READ: 2024/01/23 11:53:45 newPositionedReader: positioned to offset: 0
READ: 2024/01/23 11:53:45 ParseObject: begin, obj#3, offset:9
READ: 2024/01/23 11:53:45 newPositionedReader: positioned to offset: 9
READ: 2024/01/23 11:53:45 object: small obj w/o stream, parse until endobj
READ: 2024/01/23 11:53:45 dict: end, #3
READ: 2024/01/23 11:53:45 newPositionedReader: positioned to offset: 17
READ: 2024/01/23 11:53:45 ParseObject: begin, obj#4, offset:143
READ: 2024/01/23 11:53:45 newPositionedReader: positioned to offset: 143
READ: 2024/01/23 11:53:45 buffer: endInd=199 streamInd=45
READ: 2024/01/23 11:53:45 object: small stream within buffer, parse until stream
READ: 2024/01/23 11:53:45 pdfFilterPipeline: begin
READ: 2024/01/23 11:53:45 singleFilter: end w/o decode parms
READ: 2024/01/23 11:53:45 streamDictForObject: end, Streamobject #4
READ: 2024/01/23 11:53:45 loadEncodedStreamContent: begin
<<
<Filter, FlateDecode>
<Length, 136>
>>
READ: 2024/01/23 11:53:45 newPositionedReader: positioned to offset: 195
READ: 2024/01/23 11:53:45 readStreamContent: begin streamLength:0
Fatal: EOF
dereferenceObject: problem dereferencing stream 4
...
Read: xRefTable failed