Fórum

pdf export in liferay

Mahaboob Basha, modificado 8 Anos atrás.

pdf export in liferay

New Member Postagens: 6 Data de Entrada: 23/04/15 Postagens Recentes
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, modificado 8 Anos atrás.

RE: pdf export in liferay

Expert Postagens: 375 Data de Entrada: 21/04/09 Postagens Recentes
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, modificado 8 Anos atrás.

RE: pdf export in liferay

Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
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.