FontAbsorber
Overview
FontAbsorber is a class in Aspose.PDF FOSS for .NET.
Collects all fonts used in a PDF document or a single page.
This class provides 3 methods for working with FontAbsorber objects in .NET programs.
Available methods include: Visit.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: FontInfos, Fonts.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
FontInfos | IReadOnlyList<FontInfo> | Read | Gets the fonts collected after the last Visit call. |
Fonts | FontCollection | Read | Fonts collected, exposed as a FontCollection. |
Methods
| Signature | Description |
|---|---|
Visit(pdf: Document) | Visit all pages of a document and collect their fonts. |
Visit(pdf: Document, startPage: int, pageCount: int) | Visit a slice of pages (startPage 1-based, pageCount consecutive pages). |
Visit(page: Page) | Visit a single page and add its fonts to the collection. |