Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
200508be7f |
@@ -81,6 +81,8 @@ class PolyglotSZipPdf(PolyglotPdfZip):
|
|||||||
k2_stream_offset = new_pdf.get_first_stream_offset()
|
k2_stream_offset = new_pdf.get_first_stream_offset()
|
||||||
|
|
||||||
new_pdf.file_offset = 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()
|
pdf_buffer = new_pdf.get_build_buffer()
|
||||||
j2 = pdf_buffer[k2_stream_offset + size_k2_stream:]
|
j2 = pdf_buffer[k2_stream_offset + size_k2_stream:]
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ def main():
|
|||||||
' file content as first object or/and payload2 file' +
|
' file content as first object or/and payload2 file' +
|
||||||
' content as last oject.\n')
|
' content as last oject.\n')
|
||||||
usage_str = '%(prog)s format [options] output-file'
|
usage_str = '%(prog)s format [options] output-file'
|
||||||
epilog_str = 'TruePolyglot v1.5.2'
|
epilog_str = 'TruePolyglot v1.5.3'
|
||||||
frm = argparse.RawTextHelpFormatter
|
frm = argparse.RawTextHelpFormatter
|
||||||
parser = argparse.ArgumentParser(description=description_str,
|
parser = argparse.ArgumentParser(description=description_str,
|
||||||
epilog=epilog_str,
|
epilog=epilog_str,
|
||||||
|
|||||||
Reference in New Issue
Block a user