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

Problem with save PDF (or other type)


yael

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You can start by taking a look at the "unicode" sample shipped with the JasperReport project.

 

You would need to:

  • use the JRExporterParameter.CHARACTER_ENCODING when exporting to CSV to specify a Unicode encoding. Then you need to make sure that the application you use to open the CSV supports that encoding

specify proper pdfEncoding and pdfEncoding attributes so that a font that has Hebrew glyphs is used when exporting to PDF.[/ul]

 

HTH,

Lucian

Link to comment
Share on other sites

Thanks,

Why I have to download Ant to running the example?

If I'm running this example now I get in the console this:

UnicodeApp usage:

java UnicodeApp -Ttask -Ffile

Tasks : fill | print | pdf | xml | xmlEmbed | html | rtf | xls | jxl | csv | run

Link to comment
Share on other sites

You can run most of the tasks in the sample by directly launch the application, but you will have to set the classpath and the correct arguments (check the ant build script to find out what these arguments are).

 

However, the sample uses the Ant report compilation task, so you'll need to write some code to compile the report, unless you overcome your reluctance towards Ant (which I don't understand, since Ant is a very common Java build tool).

 

Regards,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...