How to set DPI (dots per inch) in PDFsharp

会有一股神秘感。 提交于 2019-12-05 06:01:01

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!