gs: work arround broken xref table pdfs

rebuilding the xref table does not work for pdfs with
compressed object streams. as a work arround, we skip
xref table verification and ignore wrong xref gen #
for gen 0 objects.
This commit is contained in:
cinap_lenrek 2015-02-19 11:44:16 +01:00
parent 581f3852fe
commit 13508a99a8
2 changed files with 5 additions and 4 deletions

View file

@ -25,6 +25,8 @@ pdfdict begin
% Patch in an obsolete variable used by some third-party software.
/#? false def
/NoVerifyXref true def
% Test whether the current output device handles pdfmark.
/.writepdfmarkdict 1 dict dup /pdfmark null put readonly def
/.writepdfmarks { % - .writepdfmarks <bool>