![]() ![]() TextLine //Gets collection of the words in the line List textWordCollection = line. ExtractText ( out lineCollection ) //Gets specific line from the collection TextLine line = lineCollection. Pages TextLineCollection lineCollection = new TextLineCollection () //Extract text from the first page string m_extractedText = page. Load the existing PDF document PdfLoadedDocument m_loadedDocument = new PdfLoadedDocument ( stream ) //Get the first page of the loaded PDF document PdfPageBase page = m_loadedDocument. You can get single character and its properties by using TextGlyph. Text // Gets Glyph details of the word List textGlyphCollection = textWord. FontStyle // Gets the word string wordText = textWord. FontSize //Gets font style of the word FontStyle wordFontStyle = textWord. FontName //Gets size of the word float wordFontSize = textWord. Bounds //Gets font name of the word string wordFontName = textWord. WordCollection //Gets word from the collection using index TextWord textWord = textWordCollection //Gets bounds of the word RectangleF WordBounds = textWord. You can get the single word and its properties by using TextWord. Text //Gets collection of the words in the line List textWordCollection = line. FontStyle //Gets text in the line string text = line. FontSize //Gets font style of the text FontStyle fontStyle = line. FontName //Gets the size of the text float fontSize = line. Bounds //Gets the font of the text string fontName = line. TextLine //Gets bounds of the line RectangleF lineBounds = line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |