|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: Possible defect: Does not display unicode after "Flattening"Please provide a sample PDF before and after flattening the
demonstrates this, since it is unclear exactly what you mean… From: Aftab Mahmood
[mailto:amahmood@...]
Which iText class should I use to read contents of a page
from the pdf file? -- Aftab ------------------------------------------------------------------------------ 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 iText-questions@... 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/ |
|
|
Re: Possible defect: Does not display unicode after "Flattening"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 iText-questions@... 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/ |
|
|
Re: Possible defect: Does not display unicode after "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 <info@...> wrote:
------------------------------------------------------------------------------ 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 iText-questions@... 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/ |
|
|
Re: Possible defect: Does not display unicodeafter "Flattening"You must add a substitution font in AcroFields.
Paulo ----- Original Message ----- From: "Aftab Mahmood" <amahmood@...> To: "Post all your questions about iText here" <itext-questions@...> 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 <info@...<mailto:info@...>> 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 iText-questions@... 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/ |
|
|
Re: Possible defect: Does not display unicodeafter "Flattening"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 <psoares@...> wrote: You must add a substitution font in AcroFields. ------------------------------------------------------------------------------ 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 iText-questions@... 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/ |
|
|
Re: Possible defect: Does not displayunicodeafter "Flattening"The suggestion is to read the documentation preferably the book. "utf-8" is
not a valid encoding in PDF, use Identity-H. There's nothing magic about needing a substitution font, that's what Acrobat does behind the scenes. All this was discussed several times before in the mailing list. Paulo ----- Original Message ----- From: "Aftab Mahmood" <amahmood@...> To: "Post all your questions about iText here" <itext-questions@...> Sent: Monday, November 09, 2009 10:34 PM Subject: Re: [iText-questions] Possible defect: Does not displayunicodeafter "Flattening" 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 <psoares@...<mailto:psoares@...>> wrote: You must add a substitution font in AcroFields. Paulo ----- Original Message ----- From: "Aftab Mahmood" <amahmood@...<mailto:amahmood@...>> To: "Post all your questions about iText here" <itext-questions@...<mailto:itext-questions@...>> 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 <info@...<mailto:info@...><mailto:info@...<mailto:info@...>>> 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. ------------------------------------------------------------------------------ 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 iText-questions@... 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/ |
|
|
Re: Possible defect: Does not display unicodeafter "Flattening"Thank you Paulo.... It did work ... by hard coding many font with "Identity-H" encoding .. I do have the book... and has read chapter 16... since there was no reference to substitution font.. so was not able to connect the dots...with chapter 8.
I need one more favor if you provide me some pointers... Instead of hard coding fonts i want to read fonts information from the document its self. I tried using "BaseFont.getDocumentFonts(pdfReader);" but it always return null. Is there any other API that I can use.
-- Aftab On Mon, Nov 9, 2009 at 2:34 PM, Aftab Mahmood <amahmood@...> wrote: Paulo ------------------------------------------------------------------------------ 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 iText-questions@... 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/ |
| Free embeddable forum powered by Nabble | Forum Help |