Features Overview
Feature Summary
Aspose.PDF FOSS for Java is a comprehensive Java library for PDF document creation and manipulation, covering the following capability areas:
Document Structure
- Create new PDF documents via the
Documentclass constructor (no arguments) - Access existing documents via
Document(filePath)orDocument(stream)constructors - Manage pages through
PageCollectionviaDocument.getPages() - Each
PageexposesgetMediaBox(),getCropBox(),getRotate(), andgetAnnotations() - Access the PDF catalog via
getCatalog()and trailer viagetTrailer() - Manage embedded files via
getEmbeddedFiles()
Annotations
The Annotation abstract class is the base for all PDF annotations. Concrete types include:
WidgetAnnotation, FreeTextAnnotation, HighlightAnnotation, UnderlineAnnotation,
CircleAnnotation, CaretAnnotation, and more. Each annotation is placed on a Page
at a Rectangle position.
Interactive Forms
The Form class (via Document.getForm()) manages AcroForm fields. Field types include
ButtonField, CheckboxField, RadioButtonField, TextBoxField, ComboBoxField, and
ListBoxField. The FormEditor class provides convenience methods for bulk form editing.
Page Manipulation
PdfFileEditor provides concatenate(), extract(), splitToPages(), insert(), and
delete() for page-level document manipulation. ContentsResizeParameters and
ContentsResizeValue control content scaling within page boundaries.
PDF/A Compliance
ActionRules validates PDF/A action conformance; ActionFixes provides remediation via
removeCatalogAA(), removePageAA(), and removeWidgetAA(). AnnotationRules and
AnnotationFixes handle annotation-level compliance.
Security
AESCipher provides AES-CBC encryption with encrypt(key, data), decrypt(key, data),
and deterministic IV variants. PdfFileSecurity manages document-level password protection
and access permissions.
Page Rendering
BmpDevice renders PDF pages to BMP image files for thumbnail generation and previews.
PdfPageRenderer provides programmatic page rendering.
Facades
The org.aspose.pdf.facades package provides task-focused classes including
PdfAnnotationEditor, PdfBookmarkEditor, PdfContentEditor, PdfExtractor,
PdfFileSecurity, PdfFileStamp, and PdfPageEditor.