> -----Original Message-----
> From: Eugene R [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 17, 2005 1:08 AM
> To: Paulo Soares
> Subject: RE: [iText-questions] JDK1.3.1
> 
> Hi Paulo
> 
> The System.err.println(e.getMessage()); returns:
>     /jdk1.3.1_15/jre/lib/fonts/LucidaSansRegular.ttf cannot 
> be embedded due to licensing restrictions.
> 
> The same font file when shipped with jdk1.4.2 causes no 
> problem at all.
> I could easily get away by simply removing this font on my 
> computer but this would not comply with what customers expect.
> I could also go like this:
> pdfTemplate.createGraphics(width, height);
> but application will export parsed XML as TIFF, BMP, PDF, and 
> print directly to a printer, so I really would like to use 
> the same Graphics2D code for all occasions.
> 
> Another concern is that it's unclear how decision regarding a 
> valid license is made. For example SimSun-18030 font supplied 
> with Windows GB-18030 package can be registered and used 
> (technically, not legally) under Linux, no problem with that.
>

The font itself has the information about the embedding.
 
> Yet another issue is that when jdk1.4.2 is used, iText would 
> produce searchable  PDF even when text is printed with 
> Graphics2D drawString method (at least for Latin characters); 
> nothing like this happens with jdk1.3.1
>

If you use drawString it will be searchable as long as Graphics2D was
created with createGraphics and not with createGraphicsShape.
 
> I appreciate your time
> Eugene
> 
> 
> On Wed, 2005-06-15 at 03:02, Paulo Soares wrote: 
> 
>       What kind of crash? Exception, blue screen, core dump? 
>       
>       > -----Original Message-----
>       > From: [EMAIL PROTECTED] 
>       > [mailto:[EMAIL PROTECTED] On 
>       > Behalf Of Eugene R
>       > Sent: Wednesday, June 15, 2005 2:00 AM
>       > To: [email protected]
>       > Subject: [iText-questions] JDK1.3.1
>       > 
>       > Hi
>       > 
>       > Did anybody have this problem?
>       > 
>       > iText.jar has been compiled with JDK1.3.1
>       > The following would crash when executed with v.1.3.1; no 
>       > problem though when using v.1.4.X
>       >             DefaultFontMapper fontMapper = new 
> DefaultFontMapper();
>       >             fontMapper.insertDirectory(javaFonts);
>       >             //  Create a template and corresponding 
> Graphics2D object 
>       >             PdfContentByte contentByte = 
> pdfWriter.getDirectContent();
>       >             PdfTemplate pdfTemplate = 
>       > contentByte.createTemplate(width, height);
>       >             printableGraphics = 
>       > pdfTemplate.createGraphics(width, height, fontMapper);
>       > 
>       > I cannot upgrade Java; older version is a project requirement.
>       > 
>       > Thank you,
>       > Eugene Rozhdestvensky 
>       > 
> 
> 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to