Adding .html file to folio producer

Avatar

Avatar

prelude07

Avatar

prelude07

prelude07

15-10-2015

How can I add a .html file as an item under a folio? The bigger picture here being that I want to inject a pdf resource in a .html file to be

pushed to DPS to create the magazine. Do I need to bundle the pdf into a "HTMLResources.zip" file?

View Entire Topic

Avatar

Avatar

JohnFait

Avatar

JohnFait

JohnFait

15-10-2015

AEM renders pages into HTML. You can auto generate a cq:Page (based on a template) with the appropriate content in it to result in the rendered HTML you're seeking. Take a look at the PageManager API for use in your workflow.

Assuming the PDFs being used are in DAM you could consider the PDF case much like the image component case where the asset resides in DAM but your component, included on the page, references it.

During export you could add a custom ContentSync handler to pull the PDF out of DAM and store with with your article (dps-folio export config). If the PDFs can be shared across articles or there's a finite set of them you may prefer to include them in the HTMLResources using existing handlers such as 'assets'.  Depending the approach the PDF's location will change and the component use of that asset on disk will need to adjust to avoid bad paths. 

 

http://docs.adobe.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/PageManager.html

'assets' from https://docs.adobe.com/docs/en/cq/current/developing/mobile/contentsync.html