PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
InvalidOperationException 'Byte[]' must not be null here. https://forum.pdfsharp.net/viewtopic.php?f=2&t=4642 |
Page 1 of 1 |
Author: | dehaggard [ Mon Aug 12, 2024 5:22 pm ] |
Post subject: | InvalidOperationException 'Byte[]' must not be null here. |
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 |
Author: | TH-Soft [ Mon Aug 12, 2024 5:30 pm ] |
Post subject: | Re: InvalidOperationException 'Byte[]' must not be null her |
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 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |