PdfEditor

public final class PdfEditor

Provides specialized editing capabilities for PDF documents. Implements document and page-based editing operations specific to PDF format.

Functions

Link copied to clipboard
public final void appendDocument(Document document)
Appends all pages from another document to the end of the current PDF document.
Link copied to clipboard
public final void close()
Closes the editor and releases all associated resources.
Link copied to clipboard
public final void detectAndAddFormFields()
Detects form fields on every page of the document and adds matching interactive form fields to the PDF.
Link copied to clipboard
public final static PdfEditor edit(Document document)
Creates a new PdfEditor instance and begins editing the specified document.
Link copied to clipboard
The collection of form fields in the PDF document.
Link copied to clipboard
public final PdfMetadata getMetadata()
The metadata associated with the current PDF document.
Link copied to clipboard
The collection of pages in the PDF document.
Link copied to clipboard
public final void makeSearchable()
Runs OCR over every page in the document and writes an invisible, searchable text layer on top of the rendered page content.
Link copied to clipboard
public final void save()
Saves the current changes made in the editor.
Link copied to clipboard
public final void saveAs(String path)
Saves the current changes to a file at the specified path.