Hi,

I've spotted that PoDoFo is unable to parse file if line breaks for a dict
entry are slightly modified. See attached files. Podofo can parse `minimal`
but not `minimal_two`. The difference between those two files is how the
first object is formatted.

This one works fine:
```
1 0 obj
  << /Type /Catalog
     /Pages 2 0 R
  >>
endobj
```

This one doesn't work:
```
1 0 obj
<<
  /Type /Catalog
  /Pages 2 0 R
>>
endobj
```

In the PDF standard #7.3.7 I can see the structure similar to the first one
(which does work), but I don't see any restrictions saying that the line
break is prohibited.
Other libraries/apps seem to be able to read both files.

Is it a bug or just a strict conformity requirement?

Best regards,
Petr

Attachment: minimal.pdf
Description: Adobe PDF document

Attachment: minimal_two.pdf
Description: Adobe PDF document

_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to