2
PDFBox是否支持某種縮放功能?目前我正在將頁面輸出到圖像,但這非常緩慢,特別是在文檔需要調整大小時。縮放PDFBox
PDFBox是否支持某種縮放功能?目前我正在將頁面輸出到圖像,但這非常緩慢,特別是在文檔需要調整大小時。縮放PDFBox
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);
不要只發布代碼。解釋你寫了什麼...... – Renjith 2012-12-31 10:02:14