PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Sep 01, 2024 4:15 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: Mon Aug 12, 2024 5:22 pm 
Offline

Joined: Mon Aug 12, 2024 4:32 pm
Posts: 1
I am getting an InvalidOperationException on some PDF's but not most when tring to get the graphics of a page using the line below.

PdfSharp.Drawing.XGraphics gfx = XGraphics.FromPdfPage(page);


I have tried to attached a example of the offending pdf file but it says that is an invaild image. The pdf opens fine with acrobat.

thanks
Danny Haggard


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 12, 2024 5:30 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 971
Location: CCAA
Hi!
dehaggard wrote:
I have tried to attached a example of the offending pdf file but it says that is an invaild image.
Please attach a ZIP containing the PDF.
See also here:
http://forum.pdfsharp.net/viewtopic.php?f=2&t=832

Better still: Use the IssueSubmissionTemplate:
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 81 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group