cancel
Showing results for 
Search instead for 
Did you mean: 

Generate PDF from the node

dreambitc
Champ in-the-making
Champ in-the-making
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!
1 REPLY 1

krutik_jayswal
Elite Collaborator
Elite Collaborator

You can use any java based library and create a webscript/action-executor which will generate pdf based on the metadata of document or the workflow details.

 

Below is one of those library.

 

.NET (C#, VB.NET), COM & Java PDF Libraries, Components & APIs