PDF Generation
Hi,
I want to create PDF of an page.My requirement is there will be a component as "Download as PDF" when i click on that component the current page will download as pdf.
I gone through about Apache FOP and i created a sling servlet when i clicking on the above mentioned component made a ajax call to servlet and in my method am using Apache fop. Now i want to download the page as pdf.What should i do next?. Am unable to read page2fo.xsl file under /libs/wcm/core/content/pdf/page2fo.xsl
i will define my design of pdf in page2fo.xsl file. Now i want to access my page content to populate on pdf and convert the xsl to xslfo format then only i can convert it into pdf. Is am in right path?.
Design is common for pdf.
And i don't want to use any third party bundle like itext, PDFbox
Any code snippet will heelpful.
Thanks,
Mohamedh Nishadh