You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/10/12 16:17:00 UTC

[jira] [Commented] (PDFBOX-3961) PDFmergeutility link annotations are not working after merging large two pdfs

    [ https://issues.apache.org/jira/browse/PDFBOX-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16202198#comment-16202198 ] 

Tilman Hausherr commented on PDFBOX-3961:
-----------------------------------------

I doubt it is related to size. If these are internal links, then it may be related to having name destinations that exist in both files. There's an unsolved issue about that one.

> PDFmergeutility link annotations are not working after merging large two pdfs 
> ------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3961
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3961
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 2.0.6, 2.0.7
>            Reporter: prabaharan periasamy
>
> we are trying to merge two pdfs, using pdfMerger.class. everything works fine when we merge pdfs which are of less size < 500kbs.
> while merging bigger size pdfs, >1000kbs , pdfs are getting merged, but link annotations are not copied, and both pdfs link references stopped working after merging those large pdfs.
> merge code
> {code}
> 			PDFMergerUtility pdfMerger = new PDFMergerUtility();
> 			pageUnitStream = new FileInputStream(new File(
> 					"D:/Boieng-Docs/ImageComparison/HYPERLINK_DATA/HYPERLINK_DATA/D631A001.881_FrontMatter.pdf"));
> 			pdfMerger.addSource(pageUnitStream);
> 			InputStream mainContent = new FileInputStream(new File(
> 					"D:/Boieng-Docs/ImageComparison/HYPERLINK_DATA/HYPERLINK_DATA/D631A001.881_Content_not_working.pdf"));
> 			pdfMerger.addSource(mainContent);
> 			// Setting the destination file
> 			pdfMerger.setDestinationFileName(
> 					"D:/Boieng-Docs/ImageComparison/HYPERLINK_DATA/HYPERLINK_DATA/mergedfile-notworking.pdf");
> 			// Merging the two documents
> 			pdfMerger.mergeDocuments(null);
> {code}
> customer data cant be shared, will upload dummy pdfs, with the required data



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org