...master 2026-11-12 (1037e2069+unstaged)

PDFProcessor

A PDF processor object provides callbacks that will be called for each PDF operator when it is passed to PDFAnnotation.prototype.process and PDFPage.prototype.process. The callbacks correspond to the equivalent PDF operator. Refer to the PDF specification’s section on graphic operators for what these do and what the callback arguments are.

Constructors

class PDFProcessor(callbacks)

This is an interface, not a concrete class!

Special resource tracking

These are not operators per se, but are called when the current resource dictionary used changes such as when executing XObject forms.

General graphics state callbacks

Special graphics state

Path construction

Path painting

Clipping paths

Text objects

Text state

Text positioning

Text showing

Type 3 fonts

Color

Shadings

Inline images

XObjects (Images and Forms)

Marked content

Compatibility