and make sure you are generating proper XHTML.

On Thu, Mar 3, 2016 at 10:01 AM, Martin Grigorov <[email protected]>
wrote:

> Hi,
>
> On Thu, Mar 3, 2016 at 9:30 AM, Ilia <[email protected]> wrote:
>
> > Hi,
> > Implements this code, I get following logic
> >
> > Class componentClass = page.getPage().getClass();
> > PageProvider pageProvider = new PageProvider(componentClass,
> > page.getPageParameters());
> > StringBuilder finalPageHtml = (StringBuilder)
> > ComponentRenderer.renderPage(pageProvider);
> > InputStream arrayInputStream = new
> > ByteArrayInputStream(finalPageHtml.toString().getBytes());
> > XMLWorkerHelper.getInstance().parseXHtml(pdfWriter, document,
> > arrayInputStream);
> >
> > !!!Attention!!!
> > When you execute the code -
> > XMLWorkerHelper.getInstance().parseXHtml(pdfWriter, document,
> > arrayInputStream);
> > I get exception: java.lang.ClassCastException: Insertion of illegal
> > Element:
> > 15
> >
>
> As I said earlier: This is not Wicket related question! Please consult with
> the documentation of your PDF creation library and/or contact their forums.
>
>
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/How-get-path-html-page-tp4673768p4673810.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]
> >
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro

Reply via email to