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

NameTypeAccessDescription
FontInfosIReadOnlyList<FontInfo>ReadGets the fonts collected after the last Visit call.
FontsFontCollectionReadFonts collected, exposed as a FontCollection.

Methods

SignatureDescription
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.

See Also