Generate PDF from the node

You are here

1 post / 0 new
Generate PDF from the node

Hey everyone!

I have the node with some metadata and i wonna add action 'Download as PDF' to the Document Actions menu, which will generate and return PDF file containing properties from the node.

I have no experience in this area and i need your advice.

I see the following solution:

1) Add action item 'Download as PDF' to the Document Actions menu (it's not a problem)
2) Add Web Script witch will accept a noderef and generate (using libraries which come with alfresco, like pdfbox and so on) and return PDF file (if it's possible to return file from a web script)

And how about Metadata Extractor, is it possible to solve this task using it, maybe there are some ways to generate user readable PDF not manually.

Repeating the above, i need the ability to download PDF file(containing metadata(not all) of a node) from the document details page. Generated PDF file should not be stored in the repository.

Thank you all for your help!