TableAbsorber Class |
Namespace: Aspose.Pdf.Text
The TableAbsorber type exposes the following members.
Name | Description | |
---|---|---|
![]() | TableAbsorber |
Initializes a new instance of the TableAbsorber.
|
![]() | TableAbsorber(TextSearchOptions) |
Initializes a new instance of the TableAbsorber with text search options.
|
Name | Description | |
---|---|---|
![]() | TableList |
Returns readonly IList containing tables that were found
|
![]() | TextSearchOptions |
Gets or sets text search options.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove |
Removes an AbsorbedTable from the page.
|
![]() | Replace |
Replaces an AbsorbedTable with Table on the page.
|
![]() | ToString | (Inherited from Object.) |
![]() ![]() | Visit |
Extracts tables on the specified page
|
// Open document Document doc = new Document(@"D:\Tests\input.pdf"); // Create TableAbsorber object to find tables TableAbsorber absorber = new TableAbsorber(); // Visit first page with absorber absorber.Visit(pdfDocument.Pages[1]); // Get access to first table on page, their first cell and text fragments in it TextFragment fragment = absorber.TableList[0].RowList[0].CellList[0].TextFragments[1]; // Change text of the first text fragment in the cell fragment.Text = "hi world"; // Save document doc.Save(@"D:\Tests\output.pdf");