Jump to content
JasperReports Library 7.0 is now available ×

Recommended Posts

By: Israel Lifshitz - sisraell

PDF Export

2003-09-23 07:07

After i had some problem to generate PDF in hebrew. i tried a diffrent method to do that export:

 

Changed JRPDFExporter as follow:

On every page, get a Graphics2D:

 

Graphics2D g2d = pdfContentByte.createGraphicsShapes(jasperPrint.getPageWidth(),jasperPrint.getPageHeight());

 

 

Then use JRGraphics2DExporter to write the pdf as Graphics2D.

 

 

That method solve my problem, but i need to know if there some problems with such implementation.

 

 

Thanks

 

 

 

 

 

 

By: Paulo Soares - psoares33

RE: PDF Export

2003-09-23 07:50

The only problem is that the file is a lot bigger than it should be and is not searchable. The text is rendered with ColumnText that supports RTL text. However, as this processing is slow and we don't know if the dominant is RTL or LTR this processing is disabled by default. Probably the best option is to have an attribute, section or document-wise, that could set the ColumnText parameter for RTL or LTR.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...