Hi Team,
I have installed Alfresco Content Services Enterprise Edition 6.2.0 distribution.
I have a requirement to create a pdf with content from a template like html, css or predefined pdf form or by creating custom template from Alfresco.
Can we do it i.e. create a non editable PDF from any template with help of any Alfresco Content Services Rest API as I am using a Middleware technology like TIBCO BusinessWorks which supports REST calls, Java method execution?
For eg: An organisation has template(in css, html) which will have-
a) Some images like logo, organisation name, address to be printed on the document
b) Plain fields like customer id, customer name, customer address
c) Place holders for Signatures (PAdES standard) to be done by the organisation's different authorities/employees
And then, we may take this template as input, parse it and map the values to create a final document for the customer having these fields and its values. The final document will be in pdf and non editable.
Please let me know the approach.
Thank you,
Anand Srivastava
Dear Alfresco members,
I found some more points about creating a Template in HTML in Alfresco from FreeMarker API reference. The website link is https://blog.arvixe.com/freemarker-in-alfresco/
Please let me know, if someone finds more examples or discussion forum threads for steps as mentioned in my previous post:
1. Creation of template (may be with help of Template engine in Alfresco Content Services Rest API) in an HTML with place holders for images/logos, static content, variables for replacing with actual values, place holder for signatures
2. Parsing the HTML template to find the variables and process it to replace with actual values in Alfresco Content Services Rest API
3. Place the actual values, constant logos/images in the template and create a non editable PDF as output
4. Sign the PDF document with PAdES standard
Thank you,
Anand Srivastava
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.