pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PDFBOX-4475) PDFMergerUtility is very slow, almost in dead loop
Date Wed, 27 Feb 2019 16:41:00 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-4475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tilman Hausherr updated PDFBOX-4475:
------------------------------------
    Component/s: Utilities

> 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
>          Components: Utilities
>    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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message