Hi,

On Thu, Mar 3, 2016 at 9:30 AM, Ilia <iliadavidovic...@gmail.com> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to