Fix PDF offset with acrobat-compatibility option.

This commit is contained in:
ben
2018-09-29 22:04:05 +02:00
parent fc7e44a646
commit 200508be7f
2 changed files with 3 additions and 1 deletions

View File

@@ -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:]