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 Document class constructor (no arguments)
  • Access existing documents via Document(filePath) or Document(stream) constructors
  • Manage pages through PageCollection via Document.getPages()
  • Each Page exposes getMediaBox(), getCropBox(), getRotate(), and getAnnotations()
  • Access the PDF catalog via getCatalog() and trailer via getTrailer()
  • 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.

See Also