2016-12-05 62 views

回答

6

您可以設置一個PdfWritertrueSmartMode屬性:

/** 
* Sets the smart mode. 
* <p/> 
* In smart mode when resources (such as fonts, images,...) are 
* encountered, a reference to these resources is saved 
* in a cache, so that they can be reused. 
* This requires more memory, but reduces the file size 
* of the resulting PDF document. 
*/ 
public PdfWriter setSmartMode(boolean smartMode) 

使用這種PdfWriter複製的頁面是使用PdfSmartCopy的等價物。

相關問題