Closed DarkOoze closed 1 year ago
I have a similar issue. Using MigraDoc
, I create a table which contains an image in one of the cells. When exported to RTF, the image visible. When exported to PDF (through PDFsharp
), it is not visible although its size is being accounted for in the layout.
I have a similar issue. Using
MigraDoc
, I create a table which contains an image in one of the cells. When exported to RTF, the image visible. When exported to PDF (throughPDFsharp
), it is not visible although its size is being accounted for in the layout.
Rather sounds like an unrelated issue.
Create a Gdi Image from a file using
Image.FromFile(string fileName)
Add image to pdf usingXImage.FromGdiPlusImage
The .FromGdiPlusImage
has its limitations and should not be used when you have a filename that allows you to call XImage.FromFile
directly.
Expected Behavior
Image added to page or an exception if it is not possible.
Actual Behavior
Image is added to the pdf but the stream length is 0.
Steps to Reproduce the Behavior
Create a Gdi Image from a file using
Image.FromFile(string fileName)
Add image to pdf usingXImage.FromGdiPlusImage
Test project: pdfsharp-image-issue.zip