OK, I think I see your problem.
You pasted the raw HTML templates.
You need to generate the PDF from the rendered page.
Use ComponentRenderer.renderPage(yourPageInstance) and convert the result
to PDF.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Mar 1, 2016 at 1:16 PM, Ilia <[email protected]> wrote:

> Ok, the example of a simple html page works good and created *.pdf file
> open
> no problems.
> When I make an example html page wicket I get error: file is corrupt or in
> an unsupported format.
>
> Example code html page NamePage.html:
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml";
> xmlns:wicket="http://wicket.apache.org";>
> <wicket:extend>
>     span wicket:id="NamePanel"/>
> </wicket:extend>
> </html>
>
> Ecample code html page NamePanel.html
> <html xmlns:wicket="http://wicket.apache.org/";
> xmlns="http://www.w3.org/1999/html";>
> <head>
>     <script type="text/javascript"
> src='/templates/registratorTemplate/js/jquery.min.js'/>
> </head>
> <body>
> <wicket:panel>
>     <article class="module width_full">
>         <header>
>
>
>                 <wicket:message key="statistics.client.service"/>
>                 span wicket:id="date">
>
>
>         </header>
>
>
>
>
>
>
>                     <wicket:message key="service"/>
>
>
>                     <wicket:message key="statistics.client.service.date"/>
>
>
>                     <wicket:message
> key="statistics.client.service.result.all"/>
>
>
>
>
>
>                 span wicket:id="dateReport">
>
>
>
>
>
>
>
>
>                     span class="table" wicket:id="serviceName">
>
>
>
>                     span wicket:id="countClientPlaces">
>
>
>
>                     span class="table" wicket:id="sumAllResult">
>
>
>
>
>
>
>                     <wicket:message
> key="statistics.client.service.result"/>
>
>
>                     span class="table" wicket:id="sumResult">
>
>
>
>                     span class="table" wicket:id="sum">
>
>
>
>
>
>
>         <footer>
>             <div class="submit_link">
>                 <input wicket:message="value:button.submit"
> wicket:id="saveReport" type="submit" value="Submit"/>
>             </div>
>         </footer>
>     </article>
> </wicket:panel>
> </body>
> </html>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-get-path-html-page-tp4673768p4673774.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]
>
>

Reply via email to