PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Dec 13, 2024 9:57 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Stream cannot be read
PostPosted: Fri Nov 08, 2024 2:14 pm 
Offline

Joined: Thu Oct 03, 2024 1:22 pm
Posts: 3
Hi,

I am getting following error message when I tried to open the PDF document
System.InvalidOperationException: 'Stream cannot be read. Please send us the PDF file so that we can fix this (issues (at) pdfsharp.net).'

I am sharing the code I am using for this

PdfDocument document = PdfReader.Open(inputStream, PdfDocumentOpenMode.Modify)

I tried to attach PDF but it seems that we can only attach image files.


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 08, 2024 4:30 pm 
Offline
PDFsharp Guru
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 1021
Location: CCAA
Priya.patil wrote:
I am getting following error message when I tried to open the PDF document
System.InvalidOperationException: 'Stream cannot be read. Please send us the PDF file so that we can fix this (issues (at) pdfsharp.net).'
Most likely a corrupt PDF file.
File from an HP scanner?

If not, see here:
https://docs.pdfsharp.net/General/Issue-Reporting.html

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group