如何设置的DPI在PDFsharp(每英寸点数) [英] How to set DPI (dots per inch) in PDFsharp

查看:484
本文介绍了如何设置的DPI在PDFsharp(每英寸点数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在PDFsharp的情况下,设置DPI(每英寸点数)?

Is there any way to set DPI (dots per inch) in case of PDFsharp?

感谢

推荐答案

没有,PDF文件是没有DPI矢量文件

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

如果你的问题是关于存储在PDFfile图片:

If your question is about images stored in the PDFfile:

PDFsharp门店形象,因为他们来。 PDFsharp没有(还)将图像尺寸调整到较低的DPI,以减少文件大小。你的应用程序知道哪个图像将被用于何处,并在其中的大小,所以你应该光栅图像降低到DPI(*)您使用它们PDFsharp之前所需要的。

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.

请注意,图像将被包含在PDF只有一次,即使被拉伸数次 - ,它们可以在不同的尺寸绘制(第一页例如大公司的标志,在随后的页面小)

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.

(*)计算像素宽度,并根据尺寸图像的高度,他们将有PDF页面和DPI上你要;一些光栅图像具有DPI设置,但是这并不影响图像的文件大小。

(*) 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.

这篇关于如何设置的DPI在PDFsharp(每英寸点数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆