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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

resolution of pdf

Thread ID:





45296 Jun 16,2006 06:46 AM UTC Jun 20,2006 11:21 AM UTC WinForms 1
Tags: PDF
Mark Hargreaves
Asked On June 16, 2006 06:46 AM UTC

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

Ajish [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon