on ‎2018 Jul 21 1:06 PM
Hi I have 2 document models, which contain a catalog unaware media model attached to it, (one for each model). catalog unaware media contains a pdf file. I need to read the contents of the pdfs from the 2 models and combine it into one and create a new catalog unaware media model to store the newly created pdf.
InputStream in = mediaService.getStreamFromMedia(doc1.getMedia()) ----- is throwing null pointer exception
doc1.getMedia() -> returns CatalogUnawareMediaModel
Request clarification before answering.
HI Ananya
PDFBox is an excellent API to read, write and merge PDF files. Below is a link to official documentation https://pdfbox.apache.org/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.