On 1/6/2015 6:04 AM, Ajit Makvana wrote:
why there is need of font files/[FontName.afm]/ in itextsharp library

Those files contain font metrics (AFM = Adobe Font Metrics). They are needed to calculate the dimensions of snippets of text (height, width). The 14 AFM files shipped with iTextSharp correspond with the 14 Standard Type 1 fonts. These are fonts that any PDF viewer should be able to render, hence there is no need to embed these fonts (unless font embedding is a requirement, e.g. in the context of PDF/A).

Please download the free ebook "The Best iText Questions on StackOverflow" and read the answers to the questions in the section about fonts for more info: https://leanpub.com/itext_so

and without those font files can we extract text from PDF files and for newly introduced fontface itextsharp is useful to extract text from PDF or Not?

You don't need AFM files to extract text, as most the information you need (such as the width of each glyph that is used in the document) is stored inside the document. iTextSharp is useful to extract text from a PDF, but sometimes it is impossible to extract text in general (no matter which tool you're using). For a more elaborate explanation, please watch this video: https://www.youtube.com/watch?v=wxGEEv7ibHE
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to