Edit PDF Content and Fonts
The ImageGear API provides content editing functionality for creating, accessing, and editing PDF page content objects. With this API you can work with a page's content as a list of objects, such as images, text, forms. You can retain, modify, and save their data and properties.
Document font support includes:
- Listing the fonts available in the host system and finding a system font that matches a PDF font
- Creating a font from the system font and encoding as well as from the specified attributes
- Changing a font's information
- Editing and embedding a font in the document
- Both single and multiple byte fonts are supported
The code snippet below adds a text element to the content of a PDF. This example demonstrates creating a font, using the content in a PDF, and creating a text element.
To add Unicode text to a PDF, see the example at ImGearPDEText.Add.
PDF support needs to be initialized first for this snippet to work. To get familiar with initializing IGNET, initializing PDF support, loading a PDF, saving a PDF, and terminating PDF support, try any one of the
tutorials.