Ok, my old code. This code working for SIMPLE html page but not work for
wicket html page :
Document document = new Document();
PdfWriter pdfWriter = PdfWriter.getInstance(document,
new FileOutputStream(fc.getSelectedFile() + ".pdf"));
document.open();
Class componentClass = page.getPage().getClass();
InputStream htmlStream =
componentClass.getResourceAsStream(componentClass .getSimpleName() +
".html");
XMLWorkerHelper.getInstance().parseXHtml(pdfWriter,
document, htmlStream);
How RIGHT apply ComponentRenderer. render Page(yourPageInstance) and convert
the result
to PDF ???
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-get-path-html-page-tp4673768p4673788.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]