GdPicture.NET.14.API
GdPicture14 Namespace / GdPicturePDF Class / RemoveTextArea Method
The horizontal (X) coordinate of the closest point to the currently defined origin, of the area where text shall be removed. The value is expressed in the current units specified by the SetMeasurementUnit method .
The vertical (Y) coordinate of the closest point to the currently defined origin, of the area where text shall be removed. The value is expressed in the current units specified by the SetMeasurementUnit method and it is related to the current page.
The width of the area where text shall be removed, expressed in the current units specified by the SetMeasurementUnit method.
The height of the area where text shall be removed, expressed in the current units specified by the SetMeasurementUnit method.
Example





In This Topic
RemoveTextArea Method (GdPicturePDF)
In This Topic
Removes all text contained in specified area on currently selected page of the loaded PDF document.
Syntax
'Declaration
 
Public Function RemoveTextArea( _
   ByVal Left As Single, _
   ByVal Top As Single, _
   ByVal Width As Single, _
   ByVal Height As Single _
) As GdPictureStatus
public GdPictureStatus RemoveTextArea( 
   float Left,
   float Top,
   float Width,
   float Height
)
public function RemoveTextArea( 
    Left: Single;
    Top: Single;
    Width: Single;
    Height: Single
): GdPictureStatus; 
public function RemoveTextArea( 
   Left : float,
   Top : float,
   Width : float,
   Height : float
) : GdPictureStatus;
public: GdPictureStatus RemoveTextArea( 
   float Left,
   float Top,
   float Width,
   float Height
) 
public:
GdPictureStatus RemoveTextArea( 
   float Left,
   float Top,
   float Width,
   float Height
) 

Parameters

Left
The horizontal (X) coordinate of the closest point to the currently defined origin, of the area where text shall be removed. The value is expressed in the current units specified by the SetMeasurementUnit method .
Top
The vertical (Y) coordinate of the closest point to the currently defined origin, of the area where text shall be removed. The value is expressed in the current units specified by the SetMeasurementUnit method and it is related to the current page.
Width
The width of the area where text shall be removed, expressed in the current units specified by the SetMeasurementUnit method.
Height
The height of the area where text shall be removed, expressed in the current units specified by the SetMeasurementUnit method.

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.

We strongly recommend always checking this status first.

Example
How to remove text from area on page in the PDF document.
Using gdpicturePDF As New GdPicturePDF
    gdpicturePDF.LoadFromFile("input.pdf")
    gdpicturePDF.SetOrigin(PdfOrigin.PdfOriginTopLeft)
    gdpicturePDF.SelectPage(2)
    gdpicturePDF.RemoveTextArea(100, 120, 30, 70)
    gdpicturePDF.SaveToFile("output.pdf")
End Using
using (GdPicturePDF gdpicturePDF = new GdPicturePDF())
{
    gdpicturePDF.LoadFromFile("input.pdf");
    gdpicturePDF.SetOrigin(PdfOrigin.PdfOriginTopLeft);
    gdpicturePDF.SelectPage(2);
    gdpicturePDF.RemoveTextArea(100, 120, 30, 70);
    gdpicturePDF.SaveToFile("output.pdf");
}
See Also