Skip to content

Unable to find 'endstream' marker after stream at byte 0x1047a. #301

@vincent-prz

Description

@vincent-prz

Hello,

When executing this piece of code:

merger = PdfFileMerger(strict=False)
merger.append(some_file)

with BytesIO() as output_io:
    merger.write(output_io)

I get the following error: Unable to find 'endstream' marker after stream at byte 0x1047a.

I saw the issue #167 which seemed similar, but the cause is not the same, since the file I am trying to merge has a size of only 70kB. Any help regarding this issue?

PS: I am using version 1.25.1. I tried to upgrade to 1.26.0, I experienced the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PdfMergerThe PdfMerger component is affectedPdfWriterThe PdfWriter component is affectedis-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFis-robustness-issueFrom a users perspective, this is about robustness

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions