I’ve been struggling with my prototype for PDF creation.
Hi Mac,
I’m attaching the image now. I had to zip it since I got a message saying it was not a valid attachment type.
Hi Mac,
Thanks for providing additional information. I’ve managed to reproduce the issue at my end with provided BMP image and logged it as PDFNEWNET-34891 in our bug tracking system for further investigation and resolution. You will be notified via this thread as soon as it is resolved.
Sorry for the inconvenience faced.
Best Regards,
Thanks.
Hi Mac,
Hi,
Thanks for your patience.
We have further investigated the problem reported earlier and in order to resolve the problem, please try using the new DOM (Document Object Model) approach of the Aspose.Pdf namespace. Please try using the following code snippet to add the image to the PDF file.
[C#]
Aspose.Pdf.Document doc = new Aspose.Pdf.Document();
Aspose.Pdf.Page page = doc.Pages.Add();
Aspose.Pdf.Image image1 = new Aspose.Pdf.Image();
// Set the path of image file
image1.File = @"c:/pdftest/testlogo.bmp";
page.Paragraphs.Add(image1);
doc.Save(@"c:/pdftest/testlogo_testbmp.pdf");
The issues you have reported earlier (filed as PDFNEWNET-34891) have been fixed in Aspose.Pdf for .NET 8.4.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.