You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "prabaharan periasamy (JIRA)" <ji...@apache.org> on 2017/10/12 07:46:00 UTC
[jira] [Created] (PDFBOX-3961) PDFmergeutility link annotations are
not working after merging large two pdfs
prabaharan periasamy created PDFBOX-3961:
--------------------------------------------
Summary: 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.7, 2.0.6
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
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);
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