PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 8:52 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
PostPosted: Thu Aug 17, 2023 10:00 am 
Offline

Joined: Thu Aug 17, 2023 9:47 am
Posts: 1
Created pdf using print to pdf. This pdf is not able to open by pdfsharp library. is there any limitations for pdfsharp to open pdf which is not created via adobacrobat reader ?

PdfDocument document = PdfReader.Open(inputPath);
var page = document.Pages[0];
pdfText = ExtractTextFromContent(ContentReader.ReadContent(page)).ToList();

Here pdfText count is 0.

please help...


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 17, 2023 5:31 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 916
Location: CCAA
christeena wrote:
This pdf is not able to open by pdfsharp library. is there any limitations for pdfsharp to open pdf which is not created via adobacrobat reader?
Some scanners produce corrupt PDF files. Adobe Reader can ignore the errors while opening with PDFsharp may fail.

Are you on PDFsharp 6.0.0?

_________________
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 383 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