It can be done with BaseFont.getDocumentFonts(). This will get you the
font name and the reference to the font dictionary. From there on refer
to the PDF reference to add the actual font stream to the font
descriptor.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of bruno
> Sent: Thursday, September 14, 2006 12:50 PM
> To: Varjas Tibor; '[email protected]'
> Subject: Re: [iText-questions] replace font (iText)
> 
> Varjas Tibor wrote:
> 
> > Hello Bruno!
> >  
> > I generate PDF files from my application using iText v1.4.4.
> > But I have a problem, with Hungarian (my language) character code 
> > (with special letters).
> > The special letters shows correcly if I embed the font into 
> pdf file.
> 
> OK, that's what you should do: embed the font.
> 
> > But shows incorrectly if I don't embed the font.
> 
> That's to be expected. It's documented.
> 
> > If I embed the font each pdf file, the filesize increase 
> from 3KB to 
> > 60KB, so it costs very big resource, because I must save these pdf 
> > files to database.
> 
> That's a pity. 60KB doesn't seem that much to me.
> Note that only a subset of the font is embedded.
> 
> > So I want to create the pdf file with not_embedded fonts (which 
> > appeaers incorrectly, but I save to databse), and I want to replace 
> > font (with embedded) in pdf file (which appears correctly), for 
> > showing purpose.
> 
> This is dangerous, and I don't think it's possible with iText.
> I forward this to the mailinglist so that other people can give
> their advice too.
> best regards,
> Bruno
> 
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
> dat=121642
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to