PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Long word / link doesn't break up into second line
   PostPosted: 15 Dec 2011, 13:22 
Hi.

I am converting a HTML page into a PDF file.

In the HTML page we have a long link. Because the link is longer than the PDF page width, the whole link isn't shown correct.

Is there a way to break up long words or links into a second line?

Here is the code I currently use:
Code:
...
PD4ML html = new PD4ML();
html.setPageSize( org.zefer.pd4ml.PD4Constants.A4 );
html.setPageInsets( new java.awt.Insets( 30, 20, 20, 20) );
...


  Subject: Re: Long word / link doesn't break up into second line
   PostPosted: 19 Dec 2011, 19:42 
CSS style "word-wrap: break-word" should help.
if your document is read-only, you may apply it via PD4ML API:

pd4ml.addStyle("BODY, DIV, TD { word-wrap: break-word }", true);



[Reply]     [ 2 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share