PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to set DPI dot per inch
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2052
Page 1 of 1

Author:  shahdat85ict [ Thu Jun 14, 2012 6:27 am ]
Post subject:  How to set DPI dot per inch

Hi

Is there any way to set dpi in pdfSharp?

Thanks
Shahdat

Author:  Thomas Hoevel [ Thu Jun 14, 2012 8:18 am ]
Post subject:  Re: How to set DPI dot per inch

Hi!

No, PDF files are vector files that have no DPI.

If your question is about images stored in the PDFfile:

PDFsharp stores images as they come. PDFsharp does not (yet) resize images to lower DPI to reduce the file size. Your application knows which image will be used where and at which size, so you should reduce the raster images to the DPI (*) you need before using them with PDFsharp.

Please note that images will be included in the PDF only once, even if they are drawn several times - and they can be drawn at different size (e.g. large company logo on first page, smaller on subsequent pages).

I hope I answered the question. If not, please explain what you are asking for.

(*) calculate pixel width and height of images based on the size they will have on the PDF page and the DPI you want; some raster images have a DPI setting, but this does not affect image file size.

http://stackoverflow.com/a/11029147/162529

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/