Hi,

I have read the 'HelloWorldUnicode.java' and realize from that that I can
embed a New font for a specific field.

To clarify my question:

1. I created a PDF with a formfield.
2. I selected the font 'Comic Sans', but no initial value.
3. Saved the PDF
There is no Comic Sans font resource in the PDF.
4. I open the PDF in iText.
5. I use the stamper.AcroFields.SetField(...) method to add text to my
formfield.
6. I formflatten and save the PDF file.
Now the PDF has 'Comic Sans' as an embedded font.

My question is: Where did it find the source? What if I dont want to embed
it (Can I control it)?
Does it work with Type1 fonts as well? What about just using a subset?

Now after understanding the 'HelloWorldUnicode.java', maybe I should read
all formfields font property and embed the font like that. 



1T3XT info wrote:
> 
> Erik R wrote:
>> Hi,
>> 
>> Isn't that just when drawing text? Is it the same for form fields?
> 
> I don't understand the question.
> Form fields also use fonts.
> Have a look at the example HelloWorldUnicode on this page:
> http://itext.ugent.be/itext-in-action/chapter.php?chapter=20
> -- 
> This answer is provided by 1T3XT BVBA
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/acroform-and-embedded-fonts-tp15693906p15873128.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to