[
https://issues.apache.org/jira/browse/PDFBOX-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13970038#comment-13970038
]
Teja commented on PDFBOX-2029:
------------------------------
Passed a word document.
The input to the docRepo.get() method is wither a word document
(.doc/.jpg/.jpeg)
Please find the code below:
byte[] attachToReportFile =
docRepo.get(fileMetaData.getRelativePath());
pdfAdditionalReport = PDDocument.load(new
ByteArrayInputStream(attachToReportFile));
PDFMergerUtility ut = new PDFMergerUtility();
ut.appendDocument(pdfDoc, pdfAdditionalReport);
Note: .pdf works fine. I want to know if the other formats are supported.
> PDDocument.load(Inputstream) throws IOException, when the inputstream is from
> a word document
> ---------------------------------------------------------------------------------------------
>
> Key: PDFBOX-2029
> URL: https://issues.apache.org/jira/browse/PDFBOX-2029
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Reporter: Teja
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)