Skip to content

PageBoxType

@scaryterry/pdfium


Defined in: src/core/types.ts:116

PDF page box types.

PDFs can have multiple box definitions that specify different boundaries:

  • MediaBox: The actual physical page boundaries
  • CropBox: The visible region (default is MediaBox)
  • BleedBox: Area for trimming during printing
  • TrimBox: Intended finished page dimensions
  • ArtBox: Meaningful content boundaries
Enumeration MemberValueDescriptionDefined in
ArtBox"ArtBox"Meaningful content boundaries (defaults to CropBox)src/core/types.ts:126
BleedBox"BleedBox"Bleed area for printing (defaults to CropBox)src/core/types.ts:122
CropBox"CropBox"Visible region after cropping (defaults to MediaBox)src/core/types.ts:120
MediaBox"MediaBox"Physical page boundaries (required)src/core/types.ts:118
TrimBox"TrimBox"Final trimmed page dimensions (defaults to CropBox)src/core/types.ts:124