Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Adobe CQ Appends Backcover to Pages with .pdf Extension | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

Adobe CQ Appends Backcover to Pages with .pdf Extension by aem4beginner Blog

Abstract

Adobe CQ Appends Backcover to Pages with .pdf Extension
In this post, I'll show how to render a PDF document with an additional PDF page appended as a back-cover. This PDF back cover can not be done by PDF Rewriter, as an Adobe staff confirmed PDF Rewriter (used Apache FOP 0.95) has yet to support merging PDF files.

**UPDATE: External links to pdf-files on http-servers and https-servers supported since Apache FOP 1.1.

For merging PDF files, I'll be using a Java PDF library - pdfbox. For this, we need pdfbox app OSGi bundle/jar (1.8.2 as of this writing or the latest version) deployed in the Felix OSGi container so we can develop a .jsp to call into the API for merging PDFs. So get the library ready in your CQ environment with these steps:

download pdfbox app jar from pdf.apache.org

deploy/install and activate pdfbox-app-1.8.2.jar via CQ5 Web concole for bundles (e.g. http://localhost:4502/system/console/bundles)

Note: If you ever need to develop using CRXDE Lite to call into pdfbox library, you want to put the same OSGi bundle/jar to CRXDE's classpath in case you'd use CRXDE Lite as you development environment in the future. You can achieve this by putting a copy of downloaded pdfbox-app-1.8.2.jar to under /etc/crxde/profiles/default/libs/ in CRX via WebDav access (e.g., WebDav URL http://localhost:4502/crx/repository/crx.defult)

Read Full Blog

Adobe CQ Appends Backcover to Pages with .pdf Extension

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies