如何制作pdf打印输出占据整个A4页面 [英] How to make a pdf printout occupy the entire A4 page
本文介绍了如何制作pdf打印输出占据整个A4页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用jboss seam iText模块生成一个示例pdf文件,默认情况下呈现的页面放大率为143%。当我打印出来时,输出不会占据整个页面。我应该修改哪些设置才能使打印输出使用整张纸。
I use jboss seam iText module to generate a sample pdf file, which by default renders with a page magnification of 143%. When I take a print out, the output doesn't occupy the entire page though. What settings should I modify to make the print out use the entire sheet.
推荐答案
如果你正在使用seam-pdf,文档大小的设置位于< document>
标记中:
If seam-pdf is what your are using, settings for document size are in the <document>
tag:
<p:document type="pdf"
pageSize="A4"
orientation="portrait"
margings="2cm, 2cm, 2cm, 2cm"
disposition="attachment"
title="Document title"
subject="Document subject (appears in the doc properties from pdf viewer)"
author="Document Author"
creator="Document Creator">
<!-- define the page here -->
</p:document>
这篇关于如何制作pdf打印输出占据整个A4页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文