aboutsummaryrefslogtreecommitdiffstats
path: root/PolyglotFile/polyglotszippdf.py
diff options
context:
space:
mode:
authorben2018-09-29 22:04:05 +0200
committerben2018-09-29 22:04:05 +0200
commit200508be7ffc34a3e7ce383f6f32ad357cb8a9cd (patch)
tree93580b79a25248c5b868759761fdd1b33b0182fa /PolyglotFile/polyglotszippdf.py
parentfc7e44a646462315effed63ad28f6ce0f3241ec9 (diff)
downloadtruepolyglot-200508be7ffc34a3e7ce383f6f32ad357cb8a9cd.tar.gz
truepolyglot-200508be7ffc34a3e7ce383f6f32ad357cb8a9cd.tar.bz2
truepolyglot-200508be7ffc34a3e7ce383f6f32ad357cb8a9cd.tar.xz
Fix PDF offset with acrobat-compatibility option.1.5.3
Diffstat (limited to 'PolyglotFile/polyglotszippdf.py')
-rw-r--r--PolyglotFile/polyglotszippdf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/PolyglotFile/polyglotszippdf.py b/PolyglotFile/polyglotszippdf.py
index eadf5d0..4725a74 100644
--- a/PolyglotFile/polyglotszippdf.py
+++ b/PolyglotFile/polyglotszippdf.py
@@ -81,6 +81,8 @@ class PolyglotSZipPdf(PolyglotPdfZip):
k2_stream_offset = new_pdf.get_first_stream_offset()
new_pdf.file_offset = offset
+ if self.acrobat_compatibility:
+ new_pdf.file_offset = new_pdf.file_offset + 1
pdf_buffer = new_pdf.get_build_buffer()
j2 = pdf_buffer[k2_stream_offset + size_k2_stream:]