Paulo

I dont understand this requirement . User provides me a pre-designed PDF
that supports Unicode. My service fill in some information and returns it to
the user.  How can I know which font to substitute with.

Second I tried to substituted font (with different encodings) and was not
able to get the results. Here is my code:

BaseFont bf= BaseFont.createFont("c:/windows/fonts/COUR.ttf", "utf-8",
BaseFont.EMBEDDED);
        formFields.addSubstitutionFont(bf);

Any suggestion?

--
Aftab


On Sat, Nov 7, 2009 at 12:36 PM, Paulo Soares <[email protected]> wrote:

> You must add a substitution font in AcroFields.
>
> Paulo
>
> ----- Original Message -----
> From: "Aftab Mahmood" <[email protected]>
> To: "Post all your questions about iText here"
> <[email protected]>
> Sent: Saturday, November 07, 2009 8:09 PM
> Subject: Re: [iText-questions] Possible defect: Does not display
> unicodeafter "Flattening"
>
>
> I have attached before "test_utf_3.pdf" and after "generatedPdf.pdf" files.
> I have also attached the code that I am using to fill in forms.
>
>  I have verified that
> #1- at the time the value is set in the code, the debugger shows correct
> value unicode value for the AcroField.
> #2 - if I don not "flatten" the fields then "generatedPdf.pdf" show unicode
> text correctly.
>
> So I don't think it is font issue until unless there is a special
> requirement for an additional font setup before "Flattening" . Is it?
>
> --
> Aftab
>
>
> On Sat, Nov 7, 2009 at 12:59 AM, 1T3XT info
> <[email protected]<mailto:[email protected]>> wrote:
> Aftab Mahmood wrote:
> >
> > When I fill in a pdf form using itext and then flatten it by
> > "stamp.setFormFlattening(true)" . then resulting pdf does not show
> > Unicode text in any pdf reader. Is it known limitation?
> > Which iText class should I use to read contents of a page from the pdf
> > file?
>
> Maybe you aren't providing the fonts that allow flattening.
> I can't tell for sure, I don't know what you're doing.
> Nor do I know what you get as result.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to