100页后打破PDF文档 [英] Break the PDF document after 100 pages
本文介绍了100页后打破PDF文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用JasperReports和iReport工具。客户想要的要求之一是PDF文件将仅生成100页文档。
I am working with JasperReports and iReport tool. One of the requirements the client wants is that the PDF file will be generated to a 100 page document only.
你能帮帮我吗?如何生成100页PDF文档?
Could you please help me? How can I generated the 100 page PDF document?
推荐答案
正如@WEG在答案中提到的JasperReport大小限制问题可以通过以下参数完成:
As @WEG mentioned in the answer for JasperReport size limit question it can be done with help of this parameters:
-
net.sf.jasperreports.governor.max.pages.enabled
- 表明州长是否有标志检查报告是否超过指定的页面限制。启用此属性后,如果页面数大于自定义给定值,JR引擎将停止执行报告; -
net.sf.jasperreports.governor.max.pages
- 如果检查报告是否超过指定的页面限制的调控器已打开,则此属性将指示允许的最大页数运行,以防止内存溢出错误。如果报告中的页数大于此值,则报告将停止执行; -
REPORT_MAX_COUNT
- 允许限制数据源大小的整数。
net.sf.jasperreports.governor.max.pages.enabled
- a flag indicating whether the governor that checks if a report exceeds a specified limit of pages is turned on. With this property enabled, the JR engine will stop the report execution if the number of pages becomes greater than a custom given value;net.sf.jasperreports.governor.max.pages
- if the governor that checks if a report exceeds a specified limit of pages is turned on, this property will indicate the maximum number of pages allowed to be ran, in order to prevent a memory overflow error. If the number of pages in the report becomes greater than this value, the report execution will be stopped;REPORT_MAX_COUNT
- an integer allowing limit the datasource size.
这篇关于100页后打破PDF文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文