VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Pdf.Content.TextExtraction Namespace / PdfTextRegion Class / TextContent Property
Example



In This Topic
    TextContent Property (PdfTextRegion)
    In This Topic
    Gets a text content of this region.
    Syntax
    'Declaration
     
    Public ReadOnly Property TextContent As String
    public string TextContent {get;}
    public: __property string* get_TextContent();
    public:
    property String^ TextContent {
       String^ get();
    }
    Example
    This example shows how to get all text content of PDF page.
    ''' <summary>
    ''' Returns all text of PDF page.
    ''' </summary>
    ''' <param name="page">PDF page.</param>
    ''' <returns>Text content of PDF page.</returns>
    Public Shared Function GetAllTextPage(page As Vintasoft.Imaging.Pdf.Tree.PdfPage) As String
    	Return page.TextRegion.TextContent
    End Function
    /// <summary>
    /// Returns all text of PDF page.
    /// </summary>
    /// <param name="page">PDF page.</param>
    /// <returns>Text content of PDF page.</returns>
    public static string GetAllTextPage(Vintasoft.Imaging.Pdf.Tree.PdfPage page)
    {
        return page.TextRegion.TextContent;
    }
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also