Skip to content

Cannot open PDF: Unexpected character '0x0052' in PDF stream. #357

@MichalSznajder

Description

@MichalSznajder

Reporting an Issue Here

Expected Behavior

PDF file can be opened on 7.0.0 Preview 1.

Actual Behavior

PDF cannot be opened with exception thrown PdfSharp.Pdf.IO.PdfReaderException when using 7.0.0 Preview 1.

Steps to Reproduce the Behavior

When I try to open PDF I get following error:

PdfSharp.Pdf.IO.PdfReaderException: Unexpected character '0x0052' in PDF stream. The file may be corrupted. If you think this is a bug in PDFsharp, please visit https://docs.pdfsharp.net/link/cannot-open-pdf-6.2.html for further information.
P·20·0·R·/Pg·910491793·0·‼R·/Lang·(de-DE)〈LF〉/K·[·21·0
Position marked with ‼ is 490668

PDF file can be opened in Preview.app on Mac OS Sequoia (15.7.3) and in PdfSharpCore 1.2.10 library.

File on FTP named as michalsznajder-issue-357.pdf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions