[ https://issues.apache.org/jira/browse/PDFBOX-4475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated PDFBOX-4475: ------------------------------------ Affects Version/s: 2.0.14 2.0.13 > PDFMergerUtility is very slow, almost in dead loop > -------------------------------------------------- > > Key: PDFBOX-4475 > URL: https://issues.apache.org/jira/browse/PDFBOX-4475 > Project: PDFBox > Issue Type: Bug > Affects Versions: 2.0.13, 2.0.14 > Reporter: Derek Liu > Priority: Major > Attachments: TourInventory_TourInventory_report.pdf, > image-2019-02-27-15-43-42-304.png, screenshot-1.png > > > When use PDFMergerUtility to merge PDF file, it is very slow to merge the > struct tree. It seems that it in a dead loop. > !image-2019-02-27-15-43-42-304.png! > Test code: > {code} > package com.test; > import java.io.IOException; > import org.apache.pdfbox.multipdf.PDFMergerUtility; > public class TestMergeUtil { > public static void main( String[] args ) throws IOException { > PDFMergerUtility merger = new PDFMergerUtility(); > merger.addSource( "D:\\probe\\TourInventory_TourInventory_report.PDF" ); > merger.addSource( "D:\\probe\\TourInventory_TourInventory_report.PDF" ); > merger.setDestinationFileName( > "D:\\probe\\TourInventory_TourInventory_report_merged.pdf" ); > merger.mergeDocuments(); > } > } > {code} > But after I comment bellow code, it can merge fast, but the merged PDF file > size is very large. > !screenshot-1.png! -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org