Hello,
I'm using the GDI+ version of MigraDoc.
After I show the pdf in the DocumentPreview Elemnt, I need to save that document. The Document includes a image (*.bmp) which is shown very well.
But the saved pdf File says "Image could not be read".
For that I use the code from the sample.
Code:
PdfDocumentRenderer pdfRender = new PdfDocumentRenderer();
pdfRender.DocumentRenderer = Preview_DP.Renderer;
pdfRender.Document = Preview_DP.Document;
pdfRender.RenderDocument();
Preview_DP.Document.BindToRenderer(null);
if (!Directory.Exists(Path.GetDirectoryName(Folder_TXT.Text)))
Directory.CreateDirectory(Path.GetDirectoryName(Folder_TXT.Text));
pdfRender.Save(Folder_TXT.Text);
What can I do to read that picture?
Thank you
olum