Jump to content
We've recently updated our Privacy Statement, available here ×

vanger

Members
  • Posts

    1
  • Joined

  • Last visited

vanger's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I'm trying to make a test report wich can print styled text with html markup in PDF. I'm downloaded iReport 3.5.2 for Win, sample report from here and Adobe Reader 9.1 from there. Opened sample report in iReport, set PDF viewer to AcrobatReader, RTF viewer is MSWord, XLS's is MSExcel, then ran "preview". The textField with "Here is the list with the supported HTML tags :" works good in all viewers except PDF. Also, the markup of this text field is "styled", not "html". When i changed it to "html" and add "<html>" and "<body>" tags report become invalid cause of "&" ">" and similar constructions. Then i made my own report with single text field with markup setted to html and PDF font setted to Times-Roman. The only text field contains: <html><body>No style<br/> <b>Bold only</b><br/> <i>Italic</i><br/> <u>underline</u><br/> <b><i>bold italic</b></i><br/> <i><b>Italic bold</i></b><br/> </body></html> And this report also works good in every viewer except PDF Reader. In PDF viewer only <u> tag works when running from iReport! But when i call report from my application (under jasperreport-3.5.2) using JRPdfExporter and JRExporterParameter.FONT_MAP contains all font family of "Times". And here tags <b> and <u> works in PDF reader, but report looks weird: No style > Bold only > Italic > underline > bold italic > Italic bold > Also jasperreport cannot normally parse html markup if some text appears before <html> tag, but there's no big deal with it. I don't know how to summorize all of this and what's really doesn't work. And i wounder: does the nested tags (for example <b><i>) works in PDF? Help please! Post Edited by vanger at 07/03/2009 09:06
×
×
  • Create New...