innoveit / play2-pdf

A PDF module for Play Framework 2
MIT License
77 stars 22 forks source link

UTF-8 #4

Closed martinscmb closed 9 years ago

martinscmb commented 9 years ago

Hi, thanks for your commits in this project.

Do you have problems with encoding? Can you help me to solve it? Look at my example in this image: capturar

The example is not working in caracteres like "ç", "ã","õ"....

Best regards, Carlos

marcosinigaglia commented 9 years ago

Hi Carlos, can you send me you html source?

martinscmb commented 9 years ago

Thanks for the quick answer.

Here it is a sample with that problem: https://github.com/martinscmb/PDFExample

Html view source: https://github.com/martinscmb/PDFExample/blob/master/app/views/document.scala.html

marcosinigaglia commented 9 years ago

Hi Carlos, add the meta charset in the page. <meta charset="UTF-8">

martinscmb commented 9 years ago

It works!

Thank you so much.

martinscmb commented 9 years ago

hi again,

One more question: can you tell me if exists some pdf play 2.x module with FOOTER, HEADER options?

marcosinigaglia commented 9 years ago

Hi, this module use Flying Saucer that support header and footer http://flyingsaucerproject.github.io/flyingsaucer/r8/guide/users-guide-R8.html#xil_40

martinscmb commented 9 years ago

Ty

bhaumikkothari commented 9 years ago

hi, thanks for your commits in this project. i want to generate pdf in landscape orientation. How can i do? Please reply soon

martinscmb commented 9 years ago

Check this page: http://flyingsaucerproject.github.io/flyingsaucer/r8/guide/users-guide-R8.html

And use the @page size in your css