We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

resolution of pdf

When a PDF is Rendered what resolution are any jpgs placed within and is there any control over the resolution of the pdf?

1 Reply

AJ Ajish Syncfusion Team June 20, 2006 11:21 AM UTC

Hi Mark, Sorry for the delay in getting back to you. currently it is not possible to adjust the resolution of the image directly. However when we print image to the PDF we just can control its size on the page. Control over the resolution can only be done by creating another bitmap with another resolution, drawing image to this bitmap and then rendering this bitmap to the PDF. Use the following code to adjust the resolution of the image. // Create a bitmap from the image. Bitmap image=new Bitmap(Image.FromFile(path+@"bussiness.jpg" )); // Set resolution of the image. image.SetResolution(300,300); // Draw image into PDF document. pdfDoc.LastPage.Graphics.DrawImage(new PointF(0,0 ),image); and here is a sample for your reference: Working with Images.zip Please take a look and let me know if you have any questions. Thanks, Ajish.

Loader.
Live Chat Icon For mobile
Up arrow icon