Hi there:
Hi Shelley,
Aspose.Pdf.Generator.Pdf
pdf1 = new Aspose.Pdf.Generator.Pdf();<o:p></o:p>
//Create a section in the Pdf object
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
//Create an image object in the section
Aspose.Pdf.Generator.Image image1 = new Aspose.Pdf.Generator.Image(sec1);
//Add image object into the Paragraphs collection of the section
sec1.Paragraphs.Add(image1);
//Set the path of image file
image1.ImageInfo.File = "C:/pdftest/abcd.png";
// load the image to BMP object
Bitmap bmp = new Bitmap("C:/pdftest/abcd.png");
// set the image width information
image1.ImageInfo.FixWidth = bmp.Width;
// set the image Height information
image1.ImageInfo.FixHeight = bmp.Height;
//Set the type of image using ImageFileType enumeration
image1.ImageInfo.ImageFileType = Aspose.Pdf.Generator.ImageFileType.Png;
//Save the Pdf
pdf1.Save(“c:\pdftest\Image_Dimentions_test.pdf”);
Hi there:
Hi Shelley,
<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-35619. We
will investigate this issue in details and will keep you updated on the status
of a correction. <o:p></o:p>
We apologize for your inconvenience.
Hi Nayyer,
sorry for popping up this old thread, but we’re getting the same problem, so - in order to complete our work - we need to know whether this issue has been solved in some recent version of Aspose Pdf.
Could you please give it a check?
Thanks in advance.
Nayyer, please ignore my previous message.
We have proceeded with another test, and now it seems to work.
Thanks for your patience.
Hi Elett,elettronica1:Nayyer, please ignore my previous message.
We have proceeded with another test, and now it seems to work.
Thanks for your patience.
We are glad to hear that your problem is resolved. Please continue using our API's and in the event of any further query, please feel free to contact.