Foren

pdf export in liferay

Mahaboob Basha, geändert vor 8 Jahren.

pdf export in liferay

New Member Beiträge: 6 Beitrittsdatum: 23.04.15 Neueste Beiträge
hello guys,

i am fresher...in liferay...... i want to export jsp page into pdf which includes images , text, table . so is there any code or converter apis or any thx.......................please need help
greatly appreciated thanks in advance
thumbnail
Denis Signoretto, geändert vor 8 Jahren.

RE: pdf export in liferay

Expert Beiträge: 375 Beitrittsdatum: 21.04.09 Neueste Beiträge
Hi Mahaboob,

with Liferay whole pages (or jsp) cannot be exported to pdf but you can enable the pdf convertion for web contents and documents with open office.

This link should help you to activate openoffice conversion.
http://www.liferay.com/community/wiki/-/wiki/Main/Document+Conversion+with+OpenOffice

HTH,
Denis.
thumbnail
Andew Jardine, geändert vor 8 Jahren.

RE: pdf export in liferay

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
You want to provide this a a page feature for anyone that is using the site? or you just need to do it for yourself? If it is just for yourself you can probably get a browser plugin for it -- for example: https://chrome.google.com/webstore/detail/save-as-pdf/kpdjmbiefanbdgnkcikhllpmjnnllbbc?hl=en

If it's something for the masses that you defnitely have a bit of coding to do. Nothing like that exists out of the box, but I am sure you could create a Struts (portal level) action that could retrieve the http content for the page you want to print and then run it through a third party tool like iText to produce a PDF.