Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / Page Class / GetTextMap Method / GetTextMap(Boolean,Single,Single,Boolean) Method
Indicates whether to include information about text positions in content stream. This must be true to enable using the map's GrapeCity.Documents.Pdf.TextMap.ITextMap.DeleteText or GrapeCity.Documents.Pdf.TextMap.ITextMap.ReplaceText methods. If those methods are not going to be used, pass false to improve speed/memory usage of the text map.
The horizontal resolution of the map (the default is 72dpi).
The vertical resolution of the map (the default is 72dpi).
Indicates whether to ignore errors in PDF content streams during rendering.

In This Topic
    GetTextMap(Boolean,Single,Single,Boolean) Method
    In This Topic
    Builds and returns a text map for the current page.

    Note that the X/Y resolutions of pixels used by the text map's methods and properties are the X/Y resolutions passed to this method (dpiX and dpiY).

    Note also that the current value of the RecognitionAlgorithm property affects the map that is created.

    Syntax
    'Declaration
     
    Public Overloads Function GetTextMap( _
       ByVal includeTextPosition As System.Boolean, _
       Optional ByVal dpiX As System.Single, _
       Optional ByVal dpiY As System.Single, _
       Optional ByVal ignoreErrors As System.Boolean _
    ) As ITextMap
    public ITextMap GetTextMap( 
       System.bool includeTextPosition,
       System.float dpiX,
       System.float dpiY,
       System.bool ignoreErrors
    )

    Parameters

    includeTextPosition
    Indicates whether to include information about text positions in content stream. This must be true to enable using the map's GrapeCity.Documents.Pdf.TextMap.ITextMap.DeleteText or GrapeCity.Documents.Pdf.TextMap.ITextMap.ReplaceText methods. If those methods are not going to be used, pass false to improve speed/memory usage of the text map.
    dpiX
    The horizontal resolution of the map (the default is 72dpi).
    dpiY
    The vertical resolution of the map (the default is 72dpi).
    ignoreErrors
    Indicates whether to ignore errors in PDF content streams during rendering.

    Return Value

    An GrapeCity.Documents.Pdf.TextMap.ITextMap object containing the page text map.
    See Also