English 中文(简体)
图质量
原标题:Image Quality using Itext

有可能利用《条约汇编》产生一份PDF文件,其中载有150份复印件的成像。

(图象是,它正在将图像质量降低到72pi。)

增 编

最佳回答

thread 。 http://itext-general.2136553.n4.nabble.com/Image-units-of-measurement-td2140117.html。 阅读得很好。

Essentially (and this isn t technically accurate but close enough) by default, when you place an image using iText assume for every 72 pixels that 1 inch of printed space will be used. If you want to change this rule then you need to change the image s matrix. You can either do this directly (which is hard) or use the scaling methods (much easier) such as scaleAbsolute(), scaleAbsoluteWidth(), scaleAbsoluteHeight(), scalePercentage() and scaleToFit().

改变“<><>>oes not<>>>>>>的图像,仅(基本上)将“pixels to cram”的界定改为“inch”,在印刷时,你将打电话给新闻部。 (你实际上改变了图像表与文件用户单位之间的关系,但你并不真正需要知道)。 因此,如果出现违约情况,由iText放置的200x200个六氯图象应在大约2 3/4时打印。 如果你打电话<条码>,<100 100> > ,它将把200个餐厅捆绑到100个“用户单位”,使你拥有144个有效的新闻部,印有大约3/8个。

所有这些都可能给你的头部造成伤害,特别是如果你重新利用Adobe照片店等节目,允许你为某些图像类型制定“解决方案”。 不幸的是,这更多是“印有线”的,实际上并没有改变如此之多的档案。 72DPI的100x100帕克斯图像与300DPI的100x100 pixel完全相同,但印刷除外。 i Text完全忽视了这一印刷线,要么是因为所有印刷形式都支持它。 (没有直接关联,但一个共同的神话是,“网络之声”在现实中将第72DPI号决议的信息完全从档案中删除时,就使图像变得如此。)

忽视实际发生的情况,使图像成为你认为的150个新闻部的形象,将来源图像的阴 w和高高压带和多面带带在<00.48(72除以150外)上,并将这些新数字传送到plAbsolute()。

在<代码>Image类别中有一种称为setDPI的方法,但只要我能告诉它,实际上不会对图像的放置有任何影响,而且更是信息。

问题回答

如果国防军的形象质量很差。 您可以:

  1. Create larger size image with high resolution.
  2. Scale down the image while exporting in PDF file.

这解决了我的问题。





相关问题
How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Extract everything from PDF [closed]

Looking for solution to extract content from a PDF file (using console tool or a library). It will be used on server to produce on-line e-books from uploaded PDF files. Need to extract following ...

PDF compression How does Adobe do it?

This is a bit more of a fun question than a serious one, but how does the Adobe PDF format make documents so... portable? I just created a small Word document, 235kb in size, containing multiple ...

Exporting HTML Tables

How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery))

Using Java PDFBox library to write Russian PDF

I am using a Java library called PDFBox trying to write text to a PDF. It works perfect for English text, but when i tried to write Russian text inside the PDF the letters appeared so strange. It ...

HTML --> PDF with PHP [duplicate]

Possible Duplicate: Convert HTML + CSS to PDF with PHP? How can I convert an HTML page (via $cURL or something) to a PDF file?

Free way to convert PDF to XPS with C#

Are there any free tools that I can use to convert a PDF document into an XPS document? Although a nice programmatic API would be nice, I m not opposed to shelling out to a command line tool to do ...

PDF conversion service

I need to develop a service able to convert MS Office and Open Office documents to PDF. And the PDF`s also need to be commentable when opened in ADOBE Reader. I have used a piece of software from www....

热门标签