2

PDFBox 是否支持某种缩放功能?我目前正在将页面输出到图像,但这很慢,尤其是在必须调整文档大小时。

4

1 回答 1

1
PDPageXYZDestination dest = new PDPageXYZDestination();    
dest.setPageNumber(0);    
dest.setZoom(1);    
dest.setTop(new Float(PDPage.PAGE_SIZE_A4.getHeight()).intValue());    
PDActionGoTo action = new PDActionGoTo();    
action.setDestination(dest);    
doc.getDocumentCatalog().setOpenAction(action);    
于 2012-12-31T09:44:28.783 回答