Справочник API

PDFs sub-types

Composite types referenced by PDF unit snapshots, document shells, pages, elements, and edit state.

Текст этой страницы API пока доступен на английском. Сигнатуры и идентификаторы не зависят от языка интерфейса.

Composite types referenced by PDF unit snapshots, document shells, pages, elements, and edit state. Supporting IPdfUnitData. Types are ordered from direct top-level fields to deeper nested structures and enums.

Overview

TypeKindUsed by
IPdfCapabilityReportinterfaceIPdfUnitData
IPdfDocumentinterfaceIPdfUnitData
IPdfDocumentShellinterfaceIPdfUnitData
IPdfDurableEditStateinterfaceIPdfUnitData
IPdfFragmentArtifactBindinginterfaceIPdfUnitData
IPdfSourceDocumentRefinterfaceIPdfUnitData
IPdfUnitFragmentIndexinterfaceIPdfUnitData
PdfAssetIdtypeIPdfUnitData, IPdfSourceDocumentRef, IPdfDurableEditState, IPdfDocumentSource
PdfDurableResourceBindingtypeIPdfUnitData
PdfJsonValuetypeIPdfUnitData, IPdfDocument, IPdfDurableEditState, IPdfCapabilityReport
IPdfAssetStoreinterfaceIPdfDocument
IPdfCapabilityDecisioninterfaceIPdfCapabilityReport
IPdfCollaborationStateinterfaceIPdfDocument
IPdfConversionStateinterfaceIPdfDocument, IPdfDocumentShell
IPdfDisplayListinterfaceIPdfDocument, IPdfDurableEditState
IPdfDocumentCoordinateinterfaceIPdfDocument, IPdfDocumentShell
IPdfDocumentSourceinterfaceIPdfDocument, IPdfDocumentShell
IPdfEditorManagedImageResourceinterfaceIPdfDurableEditState
IPdfEditorObjectPatchinterfaceIPdfDurableEditState
IPdfEditorOverlayObjectinterfaceIPdfDurableEditState
IPdfEditorPagePatchinterfaceIPdfDurableEditState
IPdfEditorTextStoryPatchinterfaceIPdfDurableEditState
IPdfEditStateinterfaceIPdfDocument
IPdfExportPlaninterfaceIPdfDocument
IPdfLogicalStructureinterfaceIPdfDocument
IPdfNativePackageinterfaceIPdfDocument
IPdfNativeResourceBindinginterfacePdfDurableResourceBinding
IPdfOperationEnvelopeinterfaceIPdfDocument
IPdfOutlineIteminterfaceIPdfDocument, IPdfDocumentShell
IPdfPageinterfaceIPdfDocument, IPdfEditorPagePatch
IPdfPageBlockIndexEntryinterfaceIPdfDocumentShell
IPdfPageDirectoryEntryinterfaceIPdfDocumentShell
IPdfReplacementLinkinterfaceIPdfDurableEditState, IPdfEditState
IPdfSharedFragmentIndexEntryinterfaceIPdfDocumentShell
IPdfSourceSuppressioninterfaceIPdfDurableEditState, IPdfEditState
IPdfStyleStoreinterfaceIPdfDocument
IPdfTextStoryinterfaceIPdfDocument, IPdfDurableEditState
IPdfUniverserResourceBindinginterfacePdfDurableResourceBinding
PdfDisplayListIdtypeIPdfDocument, IPdfDurableEditState, IPdfDisplayList, IPdfSourceSuppression
PdfDocumentIdtypeIPdfDocument, IPdfDurableEditState
PdfEditIdtypeIPdfDurableEditState, IPdfEditState, IPdfEditorOverlayObject, IPdfSourceSuppression
PdfFragmentArtifactKindtypeIPdfFragmentArtifactBinding
PdfIdtypePdfAssetId, PdfSourceId, PdfDocumentId, IPdfDocumentSource
PdfJsonPrimitivetypePdfJsonValue
PdfObjecttypeIPdfDocument, IPdfEditorOverlayObject
PdfObjectIdtypeIPdfDocument, IPdfDurableEditState, IPdfTextStory, IPdfCollaborationState
PdfPageIdtypeIPdfDurableEditState, IPdfUnitFragmentIndex, IPdfPage, IPdfDisplayList
PdfSourceIdtypeIPdfSourceDocumentRef, IPdfDocument, IPdfDocumentShell, IPdfDocumentSource
PdfTextStoryIdtypeIPdfDocument, IPdfDurableEditState, IPdfTextStory, IPdfEditorTextStoryPatch
IPdfAnnotationObjectinterfacePdfObject
IPdfAttachmentAssetinterfaceIPdfAssetStore
IPdfChartCandidateObjectinterfacePdfObject
IPdfChartObjectinterfacePdfObject
IPdfColorProfileAssetinterfaceIPdfAssetStore
IPdfConversionWarninginterfaceIPdfConversionState, IPdfImportPageReport
IPdfEditorAnnotationPatchinterfaceIPdfEditorObjectPatch
IPdfEditorFormFieldPatchinterfaceIPdfEditorObjectPatch
IPdfEditorImagePatchinterfaceIPdfEditorObjectPatch
IPdfEditorObjectStylePatchinterfaceIPdfEditorObjectPatch
IPdfEditorTextBlockPatchinterfaceIPdfEditorTextStoryPatch
IPdfEditorTextPatchinterfaceIPdfEditorObjectPatch
IPdfEditorTextStoryBlockInsertioninterfaceIPdfEditorTextStoryPatch
IPdfEditorTextStoryRunEditinterfaceIPdfEditorTextStoryPatch
IPdfEmbeddedPageObjectinterfacePdfObject
IPdfExportPolicyinterfaceIPdfEditorObjectPatch, IPdfObjectBase
IPdfExportSummaryinterfaceIPdfConversionState
IPdfFontAssetinterfaceIPdfAssetStore
IPdfFormFieldObjectinterfacePdfObject
IPdfFormulaObjectinterfacePdfObject
IPdfFormXObjectAssetinterfaceIPdfAssetStore
IPdfGroupObjectinterfacePdfObject
IPdfImageAssetinterfaceIPdfAssetStore, IPdfEditorManagedImageResource
IPdfImageObjectinterfacePdfObject, IPdfEditorImagePatch
IPdfImportReportinterfaceIPdfConversionState
IPdfImportSummaryinterfaceIPdfConversionState
IPdfLayerinterfaceIPdfPage
IPdfNativeObjectRecordinterfaceIPdfNativePackage
IPdfNativeStreamRecordinterfaceIPdfNativePackage
IPdfOutlineDestinationinterfaceIPdfOutlineItem
IPdfOutlineStyleinterfaceIPdfOutlineItem
IPdfPageBoxesinterfaceIPdfPage, IPdfPageSourceMapping
IPdfPageEditOperationinterfaceIPdfEditState
IPdfPageExportPlaninterfaceIPdfExportPlan
IPdfPageSourceMappinginterfaceIPdfDocumentSource, IPdfPage
IPdfPaintinterfaceIPdfPage, IPdfStyleStore, IPdfShapeObject, IPdfPathObject
IPdfPathObjectinterfacePdfObject
IPdfPatternAssetinterfaceIPdfAssetStore
IPdfRawPdfGroupObjectinterfacePdfObject
IPdfRedactionObjectinterfacePdfObject
IPdfShadingAssetinterfaceIPdfAssetStore
IPdfShapeObjectinterfacePdfObject
IPdfSizeinterfaceIPdfPage, IPdfPageDirectoryEntry, IPdfEditorPagePatch
IPdfSourceMappinginterfaceIPdfDisplayList, IPdfTextStory, IPdfOutlineItem, IPdfEditorObjectPatch
IPdfSourceOperationPathSegmentinterfaceIPdfSourceSuppression, IPdfSourceMapping
IPdfStreamAssetinterfaceIPdfAssetStore
IPdfStrokeinterfaceIPdfStyleStore, IPdfShapeObject, IPdfPathObject, IPdfTextRun
IPdfStructNodeinterfaceIPdfLogicalStructure
IPdfTableCandidateObjectinterfacePdfObject
IPdfTableObjectinterfacePdfObject
IPdfTextBlockinterfaceIPdfTextStory, IPdfEditorTextStoryBlockInsertion, IPdfEditorTextBlockPatch
IPdfTextCandidateObjectinterfacePdfObject
IPdfTextListDefinitioninterfaceIPdfTextStory, IPdfEditorTextStoryPatch
IPdfTextObjectinterfacePdfObject
IPdfTextRuninterfaceIPdfStyleStore, IPdfTextCandidateObject, IPdfTextObject, IPdfTextRunObject
IPdfTextRunObjectinterfacePdfObject
IPdfTextStoryRuninterfaceIPdfTextStory, IPdfEditorTextStoryPatch, IPdfEditorTextStoryBlockInsertion
PdfAssetStorageKindenumIPdfNativeResourceBinding, IPdfUniverserResourceBinding
PdfCapabilityActionenumIPdfCapabilityDecision
PdfCapabilityFallbackenumIPdfCapabilityDecision
PdfCapabilityRequirementenumIPdfCapabilityDecision
PdfCapabilityScopeenumIPdfCapabilityDecision
PdfCapabilitySupportenumIPdfCapabilityDecision
PdfDisplayOperationtypeIPdfDisplayList
PdfDisplayOperationIdtypeIPdfSourceSuppression, IPdfTextCandidateObject, IPdfTableCandidateObject, IPdfChartCandidateObject
PdfExportDispositionenumIPdfSourceSuppression, IPdfExportSummary, IPdfExportPolicy
PdfLayerIdtypeIPdfEditorOverlayObject, IPdfLayer, IPdfExportPolicy
PdfMatrixtypeIPdfEditorObjectPatch, PdfDisplayOperation, IPdfFontAsset, IPdfFormXObjectAsset
PdfObjectReftypeIPdfNativePackage, IPdfNativeResourceBinding, IPdfPageSourceMapping, IPdfAnnotationObject
PdfOfficeSourceKindenumIPdfDocumentSource, IPdfExportPlan, IPdfImportSummary, IPdfExportSummary
PdfOperationIdtypeIPdfOperationEnvelope
PdfOperationTypeenumIPdfOperationEnvelope
PdfRecttypeIPdfEditorObjectPatch, IPdfImageObject, IPdfEditorImagePatch, IPdfObjectBase
PdfRectPttypeIPdfEditorPagePatch, IPdfPageBoxes, PdfDisplayOperation, IPdfSourceMapping
PdfSourceSuppressionReasonenumIPdfSourceSuppression
PdfStyleIdtypeIPdfStyleStore, IPdfTableObject, IPdfEditorObjectStylePatch
PdfTextListIdtypeIPdfTextStory, IPdfEditorTextStoryPatch, IPdfTextListDefinition, IPdfTextListItem
PdfTextRunIdtypeIPdfTextStory, IPdfEditorTextStoryPatch, IPdfTextBlock, IPdfTextStoryRun
IPdfAssetBaseinterfaceIPdfFontAsset, IPdfImageAsset, IPdfFormXObjectAsset, IPdfColorProfileAsset
IPdfEditorLinkAnnotationPatchinterfaceIPdfEditorAnnotationPatch
IPdfEditorTextRangeinterfaceIPdfEditorTextStoryRunEdit, IPdfEditorTextPatch
IPdfEffectinterfaceIPdfShapeObject
IPdfFontCIDToGIDMapinterfaceIPdfFontAsset
IPdfFontCIDVerticalMetricEntryinterfaceIPdfFontAsset
IPdfFontCIDWidthEntryinterfaceIPdfFontAsset
IPdfFontCMapCodeSpaceRangeinterfaceIPdfFontAsset
IPdfFontDefaultVerticalMetricsinterfaceIPdfFontAsset
IPdfFontDescriptorMetricsinterfaceIPdfFontAsset
IPdfFontDiagnosticsinterfaceIPdfFontAsset
IPdfFontUnicodeMapEntryinterfaceIPdfFontAsset
IPdfGlyphRuninterfaceIPdfTextRun
IPdfGradientinterfaceIPdfPaint, IPdfShadingAsset
IPdfGraphicsStateinterfacePdfDisplayOperation
IPdfImportPageReportinterfaceIPdfImportReport
IPdfInkAnnotationGeometryinterfaceIPdfAnnotationObject
IPdfLineAnnotationGeometryinterfaceIPdfAnnotationObject
IPdfLinkAnnotationActioninterfaceIPdfAnnotationObject, IPdfEditorLinkAnnotationPatch
IPdfMarkupAnnotationGeometryinterfaceIPdfAnnotationObject
IPdfNativeSizeinterfacePdfDisplayOperation
IPdfNativeSnapshotinterfaceIPdfRawPdfGroupObject
IPdfObjectBaseinterfaceIPdfRawPdfGroupObject, IPdfTextCandidateObject, IPdfGroupObject, IPdfTextObject
IPdfOfficeInteropMetadatainterfaceIPdfTableObject, IPdfObjectBase
IPdfParagraphinterfaceIPdfTextObject, IPdfEditorTextPatch
IPdfPathCommandtypeIPdfPathObject, PdfDisplayOperation, IPdfShapeGeometry
IPdfPathPaintinterfacePdfDisplayOperation
IPdfPdfResourceDictionaryinterfaceIPdfFormXObjectAsset
IPdfPopupAnnotationStateinterfaceIPdfAnnotationObject
IPdfShadingFallbackMeshinterfaceIPdfShadingAsset
IPdfShapeAnnotationGeometryinterfaceIPdfAnnotationObject
IPdfShapeGeometryinterfaceIPdfShapeObject
IPdfSourceResourceRefinterfaceIPdfSourceMapping, IPdfPdfResourceDictionary, IPdfXObjectResourceRef
IPdfTableCellinterfaceIPdfTableObject
IPdfTableCellStyleinterfaceIPdfTableObject, IPdfTableCell
IPdfTableColumninterfaceIPdfTableObject
IPdfTableRowinterfaceIPdfTableObject
IPdfTableStyleOptionsinterfaceIPdfTableObject, IPdfEditorObjectStylePatch
IPdfTextListIteminterfaceIPdfTextBlock, IPdfEditorTextBlockPatch
IPdfTextListLevelinterfaceIPdfTextListDefinition
IPdfTextStateinterfacePdfDisplayOperation, IPdfGraphicsState
IPdfWidgetAnnotationStateinterfaceIPdfAnnotationObject
PdfAnnotationTypeenumIPdfAnnotationObject
PdfAssetTypeenumIPdfFontAsset, IPdfImageAsset, IPdfFormXObjectAsset, IPdfColorProfileAsset
PdfColortypeIPdfPaint, IPdfStroke, IPdfTextRun, IPdfOutlineStyle
PdfDisplayOpTypeenumPdfDisplayOperation
PdfEmutypeIPdfSize, IPdfTextObject, IPdfTextBlock, IPdfParagraph
PdfExportPageStrategyenumIPdfPageExportPlan
PdfFillRuleenumIPdfPathObject, PdfDisplayOperation, IPdfPathPaint
PdfFormFieldTypeenumIPdfFormFieldObject, IPdfEditorFormFieldPatch, IPdfWidgetAnnotationState
PdfImageMaskKindenumIPdfImageAsset
PdfImageSourceKindenumIPdfImageAsset
PdfLayerTypeenumIPdfLayer
PdfListKindenumIPdfTextListDefinition
PdfObjectTypeenumIPdfRawPdfGroupObject, IPdfTextCandidateObject, IPdfGroupObject, IPdfTextObject
PdfOutlineDestinationFittypeIPdfOutlineDestination
PdfPttypeIPdfTextRun, IPdfOutlineDestination, PdfRectPt
PdfRectEmutypePdfRect
PdfSemanticRoleenumIPdfTextBlock, IPdfStructNode, IPdfEditorTextBlockPatch, IPdfSemanticMetadata
PdfTextAnchorenumIPdfTextObject, IPdfEditorObjectStylePatch
PdfXObjectSubtypeenumIPdfImageAsset, IPdfFormXObjectAsset, IPdfXObjectResourceRef
IPdfAcroFormDefaultAppearanceinterfaceIPdfWidgetAnnotationState
IPdfFontCIDVerticalMetricValueinterfaceIPdfFontCIDVerticalMetricEntry
IPdfSemanticMetadatainterfaceIPdfObjectBase
IPdfShadingMeshTriangleinterfaceIPdfShadingFallbackMesh
IPdfShadingMeshVertexinterfaceIPdfShadingFallbackMesh
IPdfSoftMaskStateinterfaceIPdfGraphicsState
IPdfTableBordersinterfaceIPdfTableCellStyle
IPdfTablePaddinginterfaceIPdfTableCellStyle
IPdfXObjectResourceRefinterfaceIPdfPdfResourceDictionary
PdfEditabilityenumIPdfObjectBase
PdfListMarkerAlignmentenumIPdfTextListLevel
PdfListMarkerStyleenumIPdfTextListLevel
PdfObjectOriginenumIPdfObjectBase
PdfPathCommandTypeenumIPdfPathCommand
PdfPointtypeIPdfPathCommand, IPdfLineAnnotationGeometry, IPdfInkAnnotationGeometry, IPdfGlyphRun
PdfQuadPointstypeIPdfMarkupAnnotationGeometry
PdfSourceResourceKindtypeIPdfSourceResourceRef
PdfTableCellVerticalAlignenumIPdfTableCellStyle
PdfPointEmutypePdfPoint

IPdfCapabilityReport

import type { IPdfCapabilityReport } from '@univerjs-pro/pdfs' · Used by IPdfUnitData

Import/runtime capability inventory attached to a PDF Unit.

TypeScript
interface IPdfCapabilityReport {  decisions: IPdfCapabilityDecision[]  generatedAt?: string  generator?: string  metadata?: Record<string, PdfJsonValue>}

Related types: IPdfCapabilityDecision · PdfJsonValue

IPdfDocument

import type { IPdfDocument } from '@univerjs-pro/pdfs' · Used by IPdfUnitData

Root JSON contract for an editable PDF document.

This object is the front-end source of truth: pages and objects are editable state, sources/displayLists preserve import fidelity, and edits/exportPlan explain how to write back to PDF or Office formats. Prefer additive optional fields or metadata bags for future features.

TypeScript
interface IPdfDocument {  schema: 'univer-pdf-document'  schemaVersion: 1  id: PdfDocumentId  title?: string  coordinate: IPdfDocumentCoordinate  source?: IPdfDocumentSource  sources: Record<PdfSourceId, IPdfDocumentSource>  pages: IPdfPage[]  objects: Record<PdfObjectId, PdfObject>  displayLists: Record<PdfDisplayListId, IPdfDisplayList>  textStories: Record<PdfTextStoryId, IPdfTextStory>  edits: IPdfEditState  exportPlan?: IPdfExportPlan  assets: IPdfAssetStore  styles: IPdfStyleStore  native?: IPdfNativePackage  outlines?: IPdfOutlineItem[]  logicalStructure?: IPdfLogicalStructure  operations: IPdfOperationEnvelope[]  conversion?: IPdfConversionState  collaboration?: IPdfCollaborationState  metadata?: Record<string, PdfJsonValue>}

Related types: PdfDocumentId · IPdfDocumentCoordinate · IPdfDocumentSource · PdfSourceId · IPdfPage · PdfObjectId · PdfObject · PdfDisplayListId · IPdfDisplayList · PdfTextStoryId · IPdfTextStory · IPdfEditState · IPdfExportPlan · IPdfAssetStore · IPdfStyleStore · IPdfNativePackage · IPdfOutlineItem · IPdfLogicalStructure · IPdfOperationEnvelope · IPdfConversionState · IPdfCollaborationState · PdfJsonValue

IPdfDocumentShell

import type { IPdfDocumentShell } from '@univerjs-pro/pdfs' · Used by IPdfUnitData

Small document metadata loaded before any page block.

TypeScript
interface IPdfDocumentShell {  id: string  title?: string  coordinate: IPdfDocumentCoordinate  source?: IPdfDocumentSource  sources: Record<PdfSourceId, IPdfDocumentSource>  pageDirectory: IPdfPageDirectoryEntry[]  outlines?: IPdfOutlineItem[]  pageBlocks: IPdfPageBlockIndexEntry[]  sharedFragments: IPdfSharedFragmentIndexEntry[]  requiredSharedFragments?: string[]  conversion?: IPdfConversionState}

Related types: IPdfDocumentCoordinate · IPdfDocumentSource · PdfSourceId · IPdfPageDirectoryEntry · IPdfOutlineItem · IPdfPageBlockIndexEntry · IPdfSharedFragmentIndexEntry · IPdfConversionState

IPdfDurableEditState

import type { IPdfDurableEditState } from '@univerjs-pro/pdfs' · Used by IPdfUnitData

Durable editor state layered on top of an imported PDF document.

This state is the reducer output for committed mutations. It intentionally excludes hover, viewport, and other purely local UI details.

TypeScript
interface IPdfDurableEditState {  documentId: PdfDocumentId  revision: number  overlayTextStories: Record<PdfTextStoryId, IPdfTextStory>  overlayDisplayLists: Record<PdfDisplayListId, IPdfDisplayList>  textStoryPatches: Record<PdfTextStoryId, IPdfEditorTextStoryPatch>  overlayObjects: Record<PdfObjectId, IPdfEditorOverlayObject>  objectPatches: Record<PdfObjectId, IPdfEditorObjectPatch>  pagePatches: Record<PdfPageId, IPdfEditorPagePatch>  sourceSuppressions: Record<PdfEditId, IPdfSourceSuppression>  replacementLinks: Record<PdfEditId, IPdfReplacementLink>  managedResources: Record<PdfAssetId, IPdfEditorManagedImageResource>  metadata?: Record<string, PdfJsonValue>}

Related types: PdfDocumentId · PdfTextStoryId · IPdfTextStory · PdfDisplayListId · IPdfDisplayList · IPdfEditorTextStoryPatch · PdfObjectId · IPdfEditorOverlayObject · IPdfEditorObjectPatch · PdfPageId · IPdfEditorPagePatch · PdfEditId · IPdfSourceSuppression · IPdfReplacementLink · PdfAssetId · IPdfEditorManagedImageResource · PdfJsonValue

IPdfFragmentArtifactBinding

import type { IPdfFragmentArtifactBinding } from '@univerjs-pro/pdfs' · Used by IPdfUnitData

Protocol file binding for one independently fetched PDF fragment.

TypeScript
interface IPdfFragmentArtifactBinding {  kind: PdfFragmentArtifactKind  fileId: string  mimeType?: string  byteLength?: number  checksum?: string}

Related types: PdfFragmentArtifactKind

IPdfSourceDocumentRef

import type { IPdfSourceDocumentRef } from '@univerjs-pro/pdfs' · Used by IPdfUnitData

Immutable reference to the PDF artifact from which a Unit was imported.

TypeScript
interface IPdfSourceDocumentRef {  sourceId?: PdfSourceId  assetId?: PdfAssetId  fingerprint?: string  fileName?: string  immutable: true}

Related types: PdfSourceId · PdfAssetId

IPdfUnitFragmentIndex

import type { IPdfUnitFragmentIndex } from '@univerjs-pro/pdfs' · Used by IPdfUnitData

Optional logical index used by future fragment-backed page/resource providers.

TypeScript
interface IPdfUnitFragmentIndex {  pageFragmentIds?: Record<PdfPageId, string>  sharedFragmentIds?: string[]  assetIndexResourceId?: string  documentShellResourceId?: string}

Related types: PdfPageId

PdfAssetId

import type { PdfAssetId } from '@univerjs-pro/pdfs' · Used by IPdfUnitData · IPdfSourceDocumentRef · IPdfDurableEditState · IPdfDocumentSource · IPdfPage · IPdfAssetStore · IPdfPageDirectoryEntry · IPdfCapabilityDecision · IPdfPaint · IPdfImageObject · IPdfAnnotationObject · PdfDisplayOperation · IPdfFontAsset · IPdfImageAsset · IPdfFormXObjectAsset · IPdfPatternAsset · IPdfStroke · IPdfTextRun · IPdfEditorImagePatch · IPdfSourceOperationPathSegment · IPdfWidgetAnnotationState · IPdfTextState · IPdfSourceResourceRef · IPdfAssetBase · IPdfFontCIDToGIDMap · IPdfAcroFormDefaultAppearance

TypeScript
type PdfAssetId = PdfId

Related types: PdfId

PdfDurableResourceBinding

import type { PdfDurableResourceBinding } from '@univerjs-pro/pdfs' · Used by IPdfUnitData

Resource bindings allowed in a durable PDF Unit snapshot.

TypeScript
type PdfDurableResourceBinding = IPdfNativeResourceBinding | IPdfUniverserResourceBinding

Related types: IPdfNativeResourceBinding · IPdfUniverserResourceBinding

PdfJsonValue

import type { PdfJsonValue } from '@univerjs-pro/pdfs' · Used by IPdfUnitData · IPdfDocument · IPdfDurableEditState · IPdfCapabilityReport · IPdfPage · IPdfTextStory · IPdfNativePackage · IPdfOperationEnvelope · IPdfEditorOverlayObject · IPdfEditorObjectPatch · IPdfEditorPagePatch · IPdfCapabilityDecision · IPdfChartObject · IPdfFormFieldObject · IPdfTextListDefinition · IPdfPageEditOperation · IPdfImageAsset · IPdfFormXObjectAsset · IPdfEditorTextPatch · IPdfEditorFormFieldPatch · IPdfObjectBase · IPdfEffect · IPdfLinkAnnotationAction · IPdfWidgetAnnotationState · IPdfAssetBase · IPdfSoftMaskState

TypeScript
type PdfJsonValue = PdfJsonPrimitive | PdfJsonValue[] | { [key: string]: PdfJsonValue }

Related types: PdfJsonPrimitive

IPdfAssetStore

import type { IPdfAssetStore } from '@univerjs-pro/pdfs' · Used by IPdfDocument

Typed asset buckets referenced by objects, display lists, and native records.

Store durable resources here rather than embedding binary data throughout the object graph. Add buckets when a resource family needs independent lifecycle.

TypeScript
interface IPdfAssetStore {  fonts: Record<PdfAssetId, IPdfFontAsset>  images: Record<PdfAssetId, IPdfImageAsset>  formXObjects: Record<PdfAssetId, IPdfFormXObjectAsset>  colorProfiles: Record<PdfAssetId, IPdfColorProfileAsset>  patterns: Record<PdfAssetId, IPdfPatternAsset>  shadings: Record<PdfAssetId, IPdfShadingAsset>  attachments: Record<PdfAssetId, IPdfAttachmentAsset>  streams: Record<PdfAssetId, IPdfStreamAsset>}

Related types: PdfAssetId · IPdfFontAsset · IPdfImageAsset · IPdfFormXObjectAsset · IPdfColorProfileAsset · IPdfPatternAsset · IPdfShadingAsset · IPdfAttachmentAsset · IPdfStreamAsset

IPdfCapabilityDecision

import type { IPdfCapabilityDecision } from '@univerjs-pro/pdfs' · Used by IPdfCapabilityReport

Effective capability decision for one PDF action and model scope.

TypeScript
interface IPdfCapabilityDecision {  action: PdfCapabilityAction  support: PdfCapabilitySupport  fallback: PdfCapabilityFallback  reasonCode?: string  scope: PdfCapabilityScope  pageId?: PdfPageId  objectId?: PdfObjectId  assetId?: PdfAssetId  confidence?: number  requires?: PdfCapabilityRequirement[]  metadata?: Record<string, PdfJsonValue>}

Related types: PdfCapabilityAction · PdfCapabilitySupport · PdfCapabilityFallback · PdfCapabilityScope · PdfPageId · PdfObjectId · PdfAssetId · PdfCapabilityRequirement · PdfJsonValue

IPdfCollaborationState

import type { IPdfCollaborationState } from '@univerjs-pro/pdfs' · Used by IPdfDocument

Minimal collaboration clocks and revisions for the document.

This is intentionally small; richer CRDT or OT metadata can be added additively when the collaboration engine is chosen.

TypeScript
interface IPdfCollaborationState {  documentRevision: number  siteId?: string  clock?: Record<string, number>  objectRevisions?: Record<PdfObjectId, number>}

Related types: PdfObjectId

IPdfConversionState

import type { IPdfConversionState } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDocumentShell

Import/export diagnostics stored with the document.

Use summaries for quick UI status and page reports/warnings for actionable diagnostics. Future pipelines can append reports without rewriting content.

TypeScript
interface IPdfConversionState {  import?: IPdfImportSummary  importReports?: IPdfImportReport[]  export?: IPdfExportSummary  warnings?: IPdfConversionWarning[]}

Related types: IPdfImportSummary · IPdfImportReport · IPdfExportSummary · IPdfConversionWarning

IPdfDisplayList

import type { IPdfDisplayList } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDurableEditState

Normalized render-operation list for one page.

Display lists preserve visual PDF structure after import. They are not the final editing model, but they provide a stable bridge for grouping, promotion, source suppression, and visual diffing.

TypeScript
interface IPdfDisplayList {  id: PdfDisplayListId  sourceId?: PdfSourceId  pageId: PdfPageId  ops: PdfDisplayOperation[]  source?: IPdfSourceMapping}

Related types: PdfDisplayListId · PdfSourceId · PdfPageId · PdfDisplayOperation · IPdfSourceMapping

IPdfDocumentCoordinate

import type { IPdfDocumentCoordinate } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDocumentShell

Declares the coordinate systems persisted in a PDF document model.

The model side is optimized for editing and Office interop. The PDF side is optimized for native patching and exact provenance. Future coordinate systems should be added as explicit fields instead of changing the meaning of these existing fields.

TypeScript
interface IPdfDocumentCoordinate {  modelUnit: 'emu'  modelOrigin: 'top-left'  pdfUnit: 'pdf-user-space'  pdfOrigin: 'bottom-left'  emuPerPt: number  emuPerCssPx: number}

IPdfDocumentSource

import type { IPdfDocumentSource } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDocumentShell

Describes one imported or exportable source document.

Keep source-specific artifacts as optional references so new import pipelines can attach qpdf JSON, QDF, parser indexes, or Office package parts without changing the core page/object model.

TypeScript
interface IPdfDocumentSource {  id?: PdfSourceId  kind: PdfOfficeSourceKind  assetId?: PdfAssetId  qpdfJsonAssetId?: PdfAssetId  qdfAssetId?: PdfAssetId  nativeIndexId?: PdfId  pageCount?: number  pages?: IPdfPageSourceMapping[]  fingerprint?: string  fileName?: string  importer?: string  importedAt?: string}

Related types: PdfSourceId · PdfOfficeSourceKind · PdfAssetId · PdfId · IPdfPageSourceMapping

IPdfEditorManagedImageResource

import type { IPdfEditorManagedImageResource } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState

Durable descriptor for an image resource owned by the shared resource service. It deliberately stores metadata only, never resource bytes or browser runtime image values.

TypeScript
interface IPdfEditorManagedImageResource {  asset: IPdfImageAsset  source: string  imageSourceType: ImageSourceType  mimeType?: string  fileName?: string  byteLength?: number}

Related types: IPdfImageAsset · ImageSourceType

IPdfEditorObjectPatch

import type { IPdfEditorObjectPatch } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState

Patch applied to an imported or overlay object.

Keep patches sparse so reducers and collaboration can merge independent changes, such as style and transform edits, without rewriting full objects.

TypeScript
interface IPdfEditorObjectPatch {  objectId: PdfObjectId  pageId?: PdfPageId  bbox?: PdfRect  transform?: PdfMatrix  visible?: boolean  locked?: boolean  style?: IPdfEditorObjectStylePatch  text?: IPdfEditorTextPatch  image?: IPdfEditorImagePatch  formField?: IPdfEditorFormFieldPatch  annotation?: IPdfEditorAnnotationPatch  exportPolicy?: IPdfExportPolicy  source?: IPdfSourceMapping  updatedAt?: number  revision?: number  metadata?: Record<string, PdfJsonValue>}

Related types: PdfObjectId · PdfPageId · PdfRect · PdfMatrix · IPdfEditorObjectStylePatch · IPdfEditorTextPatch · IPdfEditorImagePatch · IPdfEditorFormFieldPatch · IPdfEditorAnnotationPatch · IPdfExportPolicy · IPdfSourceMapping · PdfJsonValue

IPdfEditorOverlayObject

import type { IPdfEditorOverlayObject } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState

User-created or promoted object that is rendered above native PDF content.

Overlay objects are the safest first export path: exporters can append them without rewriting the original content stream.

TypeScript
interface IPdfEditorOverlayObject {  object: PdfObject  pageId: PdfPageId  addToPageLayer?: boolean  layerId?: PdfLayerId  zIndex: number  createdAt?: number  revision?: number  sourceSuppressionId?: PdfEditId  metadata?: Record<string, PdfJsonValue>}

Related types: PdfObject · PdfPageId · PdfLayerId · PdfEditId · PdfJsonValue

IPdfEditorPagePatch

import type { IPdfEditorPagePatch } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState

Page-level patch for order, visibility, and geometry changes.

This does not replace IPdfPage. It records the user's edits on top of the imported page so export can preserve native page objects when possible.

TypeScript
interface IPdfEditorPagePatch {  pageId: PdfPageId  insertedPage?: IPdfPage  orderIndex?: number  deleted?: boolean  rotation?: 0 | 90 | 180 | 270  size?: IPdfSize  cropBox?: PdfRectPt  updatedAt?: number  revision?: number  metadata?: Record<string, PdfJsonValue>}

Related types: PdfPageId · IPdfPage · IPdfSize · PdfRectPt · PdfJsonValue

IPdfEditorTextStoryPatch

import type { IPdfEditorTextStoryPatch } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState

Sparse durable patch for a source text story.

Insertions retain their requested position, while block/run/list records use null as an explicit deletion marker that survives JSON serialization.

TypeScript
interface IPdfEditorTextStoryPatch {  storyId: PdfTextStoryId  removed?: boolean  insertedBlocks?: IPdfEditorTextStoryBlockInsertion[]  blockPatches?: Record<PdfId, IPdfEditorTextBlockPatch | null>  runPatches?: Record<PdfTextRunId, Partial<IPdfTextStoryRun> | null>  runTextEdits?: Record<PdfTextRunId, IPdfEditorTextStoryRunEdit[]>  listPatches?: Record<PdfTextListId, IPdfTextListDefinition | null>}

Related types: PdfTextStoryId · IPdfEditorTextStoryBlockInsertion · PdfId · IPdfEditorTextBlockPatch · PdfTextRunId · IPdfEditorTextStoryRunEdit · PdfTextListId · IPdfTextListDefinition

IPdfEditState

import type { IPdfEditState } from '@univerjs-pro/pdfs' · Used by IPdfDocument

Document-level edit ledger.

This is the bridge between immutable source provenance and mutable editor objects. Future edit features should add explicit records here when exporters need to understand user intent.

TypeScript
interface IPdfEditState {  suppressions: Record<PdfEditId, IPdfSourceSuppression>  replacements: Record<PdfEditId, IPdfReplacementLink>  pageOperations: IPdfPageEditOperation[]}

Related types: PdfEditId · IPdfSourceSuppression · IPdfReplacementLink · IPdfPageEditOperation

IPdfExportPlan

import type { IPdfExportPlan } from '@univerjs-pro/pdfs' · Used by IPdfDocument

Planned export strategy for a target format.

The plan is optional and can be regenerated, but when present it documents exactly how sources, suppressions, overlays, rewrites, and rasterization should be combined.

TypeScript
interface IPdfExportPlan {  id?: PdfId  targetKind: PdfOfficeSourceKind  pages: IPdfPageExportPlan[]  requireVisualDiff?: boolean  createdAt?: string  notes?: string}

Related types: PdfId · PdfOfficeSourceKind · IPdfPageExportPlan

IPdfLogicalStructure

import type { IPdfLogicalStructure } from '@univerjs-pro/pdfs' · Used by IPdfDocument

Logical structure tree for accessibility and reading order.

Keep this separate from the visual object graph because tagged PDF structure can group or reference content differently from page rendering order.

TypeScript
interface IPdfLogicalStructure {  rootId: PdfId  nodes: Record<PdfId, IPdfStructNode>}

Related types: PdfId · IPdfStructNode

IPdfNativePackage

import type { IPdfNativePackage } from '@univerjs-pro/pdfs' · Used by IPdfDocument

Native PDF package index.

This preserves qpdf/PDF-native structures needed for debugging, copy-through export, and incremental patching without exposing them as editable objects.

TypeScript
interface IPdfNativePackage {  producer?: string  qpdfJsonUri?: string  qdfUri?: string  objectTable?: Record<PdfObjectRef, IPdfNativeObjectRecord>  streams?: Record<PdfObjectRef, IPdfNativeStreamRecord>  trailer?: PdfJsonValue  catalogRef?: PdfObjectRef  pagesTreeRef?: PdfObjectRef}

Related types: PdfObjectRef · IPdfNativeObjectRecord · IPdfNativeStreamRecord · PdfJsonValue

IPdfNativeResourceBinding

import type { IPdfNativeResourceBinding } from '@univerjs-pro/pdfs' · Used by PdfDurableResourceBinding

Durable provenance binding for bytes that remain inside the source PDF.

TypeScript
interface IPdfNativeResourceBinding {  kind: PdfAssetStorageKind.NATIVE_PDF  sourceId: PdfSourceId  objectRef?: PdfObjectRef  streamRef?: PdfObjectRef  filters?: string[]}

Related types: PdfAssetStorageKind.NATIVE_PDF · PdfSourceId · PdfObjectRef

IPdfOperationEnvelope

import type { IPdfOperationEnvelope } from '@univerjs-pro/pdfs' · Used by IPdfDocument

Collaboration/history operation envelope.

Payloads stay JSON so operation versions can evolve. New operation kinds should keep enough inverse data for undo or conflict resolution where needed.

TypeScript
interface IPdfOperationEnvelope {  id: PdfOperationId  type: PdfOperationType  timestamp?: number  baseRevision?: number  targetId?: PdfId  payload: PdfJsonValue  inversePayload?: PdfJsonValue}

Related types: PdfOperationId · PdfOperationType · PdfId · PdfJsonValue

IPdfOutlineItem

import type { IPdfOutlineItem } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDocumentShell

TypeScript
interface IPdfOutlineItem {  id: PdfId  title: string  pageId?: PdfPageId  destination?: IPdfOutlineDestination  open?: boolean  style?: IPdfOutlineStyle  children?: IPdfOutlineItem[]  source?: IPdfSourceMapping}

Related types: PdfId · PdfPageId · IPdfOutlineDestination · IPdfOutlineStyle · IPdfSourceMapping

IPdfPage

import type { IPdfPage } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfEditorPagePatch

Editable page record.

Page geometry uses EMU, while pdfBoxes preserves the imported PDF page boxes. Add page-level feature data through layers, source, background, or metadata rather than embedding renderer-only state here.

TypeScript
interface IPdfPage {  id: PdfPageId  index: number  label?: string  size: IPdfSize  pdfBoxes: IPdfPageBoxes  rotation: 0 | 90 | 180 | 270  layers: IPdfLayer[]  source?: IPdfPageSourceMapping  thumbnailAssetId?: PdfAssetId  background?: IPdfPaint  metadata?: Record<string, PdfJsonValue>}

Related types: PdfPageId · IPdfSize · IPdfPageBoxes · IPdfLayer · IPdfPageSourceMapping · PdfAssetId · IPdfPaint · PdfJsonValue

IPdfPageBlockIndexEntry

import type { IPdfPageBlockIndexEntry } from '@univerjs-pro/pdfs' · Used by IPdfDocumentShell

Immutable index metadata for one persisted page block.

TypeScript
interface IPdfPageBlockIndexEntry {  blockId: string  startPageIndex: number  endPageIndex: number  artifactStartPageIndex?: number  artifactEndPageIndex?: number  pageIds: PdfPageId[]  artifactPageIds?: PdfPageId[]  byteLength: number  checksum?: string  oversized?: boolean}

Related types: PdfPageId

IPdfPageDirectoryEntry

import type { IPdfPageDirectoryEntry } from '@univerjs-pro/pdfs' · Used by IPdfDocumentShell

Directory entry kept in the small Unit shell before page content is loaded.

TypeScript
interface IPdfPageDirectoryEntry {  pageId: PdfPageId  index: number  sourceId?: PdfSourceId  sourcePageIndex?: number  label?: string  size: IPdfSize  rotation: 0 | 90 | 180 | 270  blockId: string  thumbnailAssetId?: PdfAssetId}

Related types: PdfPageId · PdfSourceId · IPdfSize · PdfAssetId

import type { IPdfReplacementLink } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState · IPdfEditState

Relationship between suppressed source content and replacement model objects.

Keeping this link separate supports many-to-one and one-to-many replacements, review UI, undo, and future conflict resolution.

TypeScript
interface IPdfReplacementLink {  id: PdfEditId  suppressionId?: PdfEditId  sourceObjectIds?: PdfObjectId[]  replacementObjectIds: PdfObjectId[]  createdAt?: string  notes?: string}

Related types: PdfEditId · PdfObjectId

IPdfSharedFragmentIndexEntry

import type { IPdfSharedFragmentIndexEntry } from '@univerjs-pro/pdfs' · Used by IPdfDocumentShell

Immutable index metadata for one shared PDF fragment.

TypeScript
interface IPdfSharedFragmentIndexEntry {  fragmentId: string  byteLength: number  checksum?: string  role?: 'common-dictionaries' | 'assets'}

IPdfSourceSuppression

import type { IPdfSourceSuppression } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState · IPdfEditState

Explicit instruction to hide, remove, redact, or replace a native source span.

Suppressions make export deterministic: writers do not have to infer from object order whether imported PDF content should remain visible.

TypeScript
interface IPdfSourceSuppression {  id: PdfEditId  sourceId: PdfSourceId  pageId?: PdfPageId  objectId?: PdfObjectId  displayListId?: PdfDisplayListId  operatorIds?: PdfDisplayOperationId[]  operationPath?: IPdfSourceOperationPathSegment[]  source?: IPdfSourceMapping  reason: PdfSourceSuppressionReason  exportDisposition: PdfExportDisposition  createdAt?: string  notes?: string}

Related types: PdfEditId · PdfSourceId · PdfPageId · PdfObjectId · PdfDisplayListId · PdfDisplayOperationId · IPdfSourceOperationPathSegment · IPdfSourceMapping · PdfSourceSuppressionReason · PdfExportDisposition

IPdfStyleStore

import type { IPdfStyleStore } from '@univerjs-pro/pdfs' · Used by IPdfDocument

Reusable style dictionaries.

Styles are optional deduplication helpers. Objects may still carry inline styling when importers or early features do not need style sharing.

TypeScript
interface IPdfStyleStore {  fills: Record<PdfStyleId, IPdfPaint>  strokes: Record<PdfStyleId, IPdfStroke>  text: Record<PdfStyleId, Partial<IPdfTextRun>>}

Related types: PdfStyleId · IPdfPaint · IPdfStroke

IPdfTextStory

import type { IPdfTextStory } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDurableEditState

Editable text flow shared by one or more text objects.

Stories are the durable collaboration target for text editing. Add new block or run metadata here when it must survive import/export across formats.

TypeScript
interface IPdfTextStory {  id: PdfTextStoryId  objectIds: PdfObjectId[]  blocks: IPdfTextBlock[]  runs: Record<PdfTextRunId, IPdfTextStoryRun>  lists?: Record<PdfTextListId, IPdfTextListDefinition>  language?: string  writingMode?: 'horizontal-tb' | 'vertical-rl' | 'vertical-lr'  source?: IPdfSourceMapping  metadata?: Record<string, PdfJsonValue>}

Related types: PdfTextStoryId · PdfObjectId · IPdfTextBlock · PdfTextRunId · IPdfTextStoryRun · PdfTextListId · IPdfTextListDefinition · IPdfSourceMapping · PdfJsonValue

IPdfUniverserResourceBinding

import type { IPdfUniverserResourceBinding } from '@univerjs-pro/pdfs' · Used by PdfDurableResourceBinding

Durable binding to a Unit-scoped resource managed by Univer.

TypeScript
interface IPdfUniverserResourceBinding {  kind: PdfAssetStorageKind.UNIVERSER_RESOURCE  source: string  imageSourceType: ImageSourceType.UUID  mimeType?: string  checksum?: string  byteLength?: number}

Related types: PdfAssetStorageKind.UNIVERSER_RESOURCE · ImageSourceType.UUID

PdfDisplayListId

import type { PdfDisplayListId } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDurableEditState · IPdfDisplayList · IPdfSourceSuppression · IPdfAnnotationObject · PdfDisplayOperation · IPdfSourceMapping · IPdfFormXObjectAsset · IPdfPatternAsset · IPdfSourceOperationPathSegment · IPdfWidgetAnnotationState

TypeScript
type PdfDisplayListId = PdfId

Related types: PdfId

PdfDocumentId

import type { PdfDocumentId } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDurableEditState

TypeScript
type PdfDocumentId = PdfId

Related types: PdfId

PdfEditId

import type { PdfEditId } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState · IPdfEditState · IPdfEditorOverlayObject · IPdfSourceSuppression · IPdfReplacementLink · IPdfPageEditOperation · IPdfPageExportPlan

TypeScript
type PdfEditId = PdfId

Related types: PdfId

PdfFragmentArtifactKind

import type { PdfFragmentArtifactKind } from '@univerjs-pro/pdfs' · Used by IPdfFragmentArtifactBinding

Artifact kinds persisted independently from the Unit shell.

TypeScript
type PdfFragmentArtifactKind = 'page-block' | 'shared-fragment' | 'search-block'

PdfId

import type { PdfId } from '@univerjs-pro/pdfs' · Used by PdfAssetId · PdfSourceId · PdfDocumentId · IPdfDocumentSource · PdfObjectId · PdfDisplayListId · PdfTextStoryId · IPdfExportPlan · IPdfOutlineItem · IPdfLogicalStructure · IPdfOperationEnvelope · IPdfEditorTextStoryPatch · PdfPageId · PdfEditId · IPdfRawPdfGroupObject · IPdfSourceMapping · IPdfTextBlock · PdfTextRunId · PdfTextListId · PdfStyleId · IPdfStructNode · PdfOperationId · PdfLayerId · IPdfEditorTextPatch · PdfDisplayOperationId · IPdfNativeSnapshot · IPdfTableRow · IPdfTableColumn · IPdfTableCell · IPdfSemanticMetadata

TypeScript
type PdfId = string

PdfJsonPrimitive

import type { PdfJsonPrimitive } from '@univerjs-pro/pdfs' · Used by PdfJsonValue

TypeScript
type PdfJsonPrimitive = string | number | boolean | null

PdfObject

import type { PdfObject } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfEditorOverlayObject

TypeScript
type PdfObject =  | IPdfRawPdfGroupObject  | IPdfTextCandidateObject  | IPdfGroupObject  | IPdfTextObject  | IPdfTextRunObject  | IPdfShapeObject  | IPdfPathObject  | IPdfImageObject  | IPdfTableCandidateObject  | IPdfTableObject  | IPdfChartCandidateObject  | IPdfChartObject  | IPdfFormulaObject  | IPdfAnnotationObject  | IPdfFormFieldObject  | IPdfRedactionObject  | IPdfEmbeddedPageObject

Related types: IPdfRawPdfGroupObject · IPdfTextCandidateObject · IPdfGroupObject · IPdfTextObject · IPdfTextRunObject · IPdfShapeObject · IPdfPathObject · IPdfImageObject · IPdfTableCandidateObject · IPdfTableObject · IPdfChartCandidateObject · IPdfChartObject · IPdfFormulaObject · IPdfAnnotationObject · IPdfFormFieldObject · IPdfRedactionObject · IPdfEmbeddedPageObject

PdfObjectId

import type { PdfObjectId } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDurableEditState · IPdfTextStory · IPdfCollaborationState · IPdfEditorObjectPatch · IPdfSourceSuppression · IPdfReplacementLink · IPdfCapabilityDecision · IPdfLayer · IPdfGroupObject · IPdfTableCandidateObject · IPdfChartCandidateObject · IPdfChartObject · IPdfFormulaObject · IPdfAnnotationObject · IPdfFormFieldObject · IPdfPageExportPlan · IPdfStructNode · IPdfConversionWarning · IPdfEditorFormFieldPatch · IPdfObjectBase · IPdfPopupAnnotationState · IPdfWidgetAnnotationState · IPdfTextListItem

TypeScript
type PdfObjectId = PdfId

Related types: PdfId

PdfPageId

import type { PdfPageId } from '@univerjs-pro/pdfs' · Used by IPdfDurableEditState · IPdfUnitFragmentIndex · IPdfPage · IPdfDisplayList · IPdfOutlineItem · IPdfPageDirectoryEntry · IPdfPageBlockIndexEntry · IPdfEditorOverlayObject · IPdfEditorObjectPatch · IPdfEditorPagePatch · IPdfSourceSuppression · IPdfCapabilityDecision · IPdfEmbeddedPageObject · IPdfSourceMapping · IPdfPageEditOperation · IPdfPageExportPlan · IPdfOutlineDestination · IPdfConversionWarning · IPdfLinkAnnotationAction · IPdfImportPageReport

TypeScript
type PdfPageId = PdfId

Related types: PdfId

PdfSourceId

import type { PdfSourceId } from '@univerjs-pro/pdfs' · Used by IPdfSourceDocumentRef · IPdfDocument · IPdfDocumentShell · IPdfDocumentSource · IPdfDisplayList · IPdfPageDirectoryEntry · IPdfSourceSuppression · IPdfNativeResourceBinding · IPdfPageSourceMapping · IPdfSourceMapping · IPdfPageExportPlan · IPdfImportReport

TypeScript
type PdfSourceId = PdfId

Related types: PdfId

PdfTextStoryId

import type { PdfTextStoryId } from '@univerjs-pro/pdfs' · Used by IPdfDocument · IPdfDurableEditState · IPdfTextStory · IPdfEditorTextStoryPatch · IPdfTextCandidateObject · IPdfTextObject · IPdfEditorTextPatch · IPdfTableCell

TypeScript
type PdfTextStoryId = PdfId

Related types: PdfId

IPdfAnnotationObject

import type { IPdfAnnotationObject } from '@univerjs-pro/pdfs' · Used by PdfObject

PDF annotation or annotation-like editor object.

Keep common annotation fields here and add type-specific payloads later as optional metadata or narrower interfaces when one annotation family grows.

TypeScript
interface IPdfAnnotationObject extends IPdfObjectBase {  type: PdfObjectType.ANNOTATION  annotationType: PdfAnnotationType  contents?: string  author?: string  createdAt?: string  modifiedAt?: string  normalAppearanceRef?: PdfObjectRef  normalAppearanceAssetId?: PdfAssetId  normalAppearanceDisplayListId?: PdfDisplayListId  appearanceObjectId?: PdfObjectId  flags?: number  line?: IPdfLineAnnotationGeometry  popup?: IPdfPopupAnnotationState  markup?: IPdfMarkupAnnotationGeometry  ink?: IPdfInkAnnotationGeometry  shape?: IPdfShapeAnnotationGeometry  link?: IPdfLinkAnnotationAction  widget?: IPdfWidgetAnnotationState}

Related types: IPdfObjectBase · PdfObjectType.ANNOTATION · PdfAnnotationType · PdfObjectRef · PdfAssetId · PdfDisplayListId · PdfObjectId · IPdfLineAnnotationGeometry · IPdfPopupAnnotationState · IPdfMarkupAnnotationGeometry · IPdfInkAnnotationGeometry · IPdfShapeAnnotationGeometry · IPdfLinkAnnotationAction · IPdfWidgetAnnotationState

IPdfAttachmentAsset

import type { IPdfAttachmentAsset } from '@univerjs-pro/pdfs' · Used by IPdfAssetStore

Embedded or linked attachment asset metadata.

This supports PDF file attachments now and leaves room for future Office package parts or external document references.

TypeScript
interface IPdfAttachmentAsset extends IPdfAssetBase {  type: PdfAssetType.ATTACHMENT  description?: string}

Related types: IPdfAssetBase · PdfAssetType.ATTACHMENT

IPdfChartCandidateObject

import type { IPdfChartCandidateObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Detected chart-like content before it is promoted to an editable chart.

Candidate data lets future chart recognition improve without forcing the first importer to recover full data series.

TypeScript
interface IPdfChartCandidateObject extends IPdfObjectBase {  type: PdfObjectType.CHART_CANDIDATE  sourceObjectIds: PdfObjectId[]  displayOpIds?: PdfDisplayOperationId[]  detection: {    confidence: number    chartType?: string    hasAxes?: boolean    hasLegend?: boolean    reason?: string  }  promotion?: {    canPromoteToChart: boolean    targetObjectId?: PdfObjectId    reason?: string  }}

Related types: IPdfObjectBase · PdfObjectType.CHART_CANDIDATE · PdfObjectId · PdfDisplayOperationId

IPdfChartObject

import type { IPdfChartObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Editable chart object.

Fallback objects keep visual fidelity when embedded data is incomplete, while dataRef/embeddedData leave room for future chart engines.

TypeScript
interface IPdfChartObject extends IPdfObjectBase {  type: PdfObjectType.CHART  chartType: string  dataRef?: string  embeddedData?: PdfJsonValue  fallbackObjectIds?: PdfObjectId[]}

Related types: IPdfObjectBase · PdfObjectType.CHART · PdfJsonValue · PdfObjectId

IPdfColorProfileAsset

import type { IPdfColorProfileAsset } from '@univerjs-pro/pdfs' · Used by IPdfAssetStore

Color profile asset metadata.

Keep profiles as assets so future color-managed export can reference source profiles without expanding every paint object.

TypeScript
interface IPdfColorProfileAsset extends IPdfAssetBase {  type: PdfAssetType.COLOR_PROFILE  colorSpace: string}

Related types: IPdfAssetBase · PdfAssetType.COLOR_PROFILE

IPdfConversionWarning

import type { IPdfConversionWarning } from '@univerjs-pro/pdfs' · Used by IPdfConversionState · IPdfImportPageReport

Structured warning emitted by import or export pipelines.

Warnings can point to pages, objects, or source spans so UI can surface them without parsing free-form messages.

TypeScript
interface IPdfConversionWarning {  code: string  message: string  pageId?: PdfPageId  objectId?: PdfObjectId  source?: IPdfSourceMapping}

Related types: PdfPageId · PdfObjectId · IPdfSourceMapping

IPdfEditorAnnotationPatch

import type { IPdfEditorAnnotationPatch } from '@univerjs-pro/pdfs' · Used by IPdfEditorObjectPatch

Sparse semantic fields for annotation-specific edits.

TypeScript
interface IPdfEditorAnnotationPatch {  link?: IPdfEditorLinkAnnotationPatch}

Related types: IPdfEditorLinkAnnotationPatch

IPdfEditorFormFieldPatch

import type { IPdfEditorFormFieldPatch } from '@univerjs-pro/pdfs' · Used by IPdfEditorObjectPatch

Form-field semantic value patch.

Widget annotations own placement and appearance, but field objects own the durable value. This patch can be stored on both ids so UI and export code can read the same change from their natural lookup path.

TypeScript
interface IPdfEditorFormFieldPatch {  fieldObjectId?: PdfObjectId  widgetObjectId?: PdfObjectId  fieldName?: string  fieldType?: PdfFormFieldType  value?: PdfJsonValue  defaultValue?: PdfJsonValue  choices?: string[]}

Related types: PdfObjectId · PdfFormFieldType · PdfJsonValue

IPdfEditorImagePatch

import type { IPdfEditorImagePatch } from '@univerjs-pro/pdfs' · Used by IPdfEditorObjectPatch

Image-specific patch data.

Replacement and crop are kept together because most image editing UIs expose both operations, while exporters may handle them differently.

TypeScript
interface IPdfEditorImagePatch {  assetId?: PdfAssetId  cropRect?: PdfRect | null  sourceRect?: PdfRectPt | null  intrinsic?: Pick<IPdfImageObject, 'assetId' | 'crop' | 'softMaskAssetId'>}

Related types: PdfAssetId · PdfRect · PdfRectPt · IPdfImageObject

IPdfEditorObjectStylePatch

import type { IPdfEditorObjectStylePatch } from '@univerjs-pro/pdfs' · Used by IPdfEditorObjectPatch

Style patch shared by text, paths, shapes, annotations, and form widgets.

Values are optional so callers can update one visual property without accidentally clearing other style information.

TypeScript
interface IPdfEditorObjectStylePatch {  fill?: IPdfPaint | null  stroke?: IPdfStroke | null  strokeReplace?: boolean  opacity?: number | null  textStyle?: Partial<IPdfTextRun>  textAnchor?: PdfTextAnchor | null  styleId?: PdfStyleId | null  tableStyleOptions?: IPdfTableStyleOptions | null}

Related types: IPdfPaint · IPdfStroke · IPdfTextRun · PdfTextAnchor · PdfStyleId · IPdfTableStyleOptions

IPdfEditorTextBlockPatch

import type { IPdfEditorTextBlockPatch } from '@univerjs-pro/pdfs' · Used by IPdfEditorTextStoryPatch

Serializable block patch with explicit nullable clearing semantics.

null clears an optional field; undefined leaves the source value intact.

TypeScript
interface IPdfEditorTextBlockPatch {  runIds?: PdfTextRunId[]  role?: PdfSemanticRole | null  listItem?: IPdfTextListItem | null  align?: IPdfTextBlock['align'] | null  lineHeight?: number | null  indent?: number | null  firstLineIndent?: IPdfTextBlock['firstLineIndent'] | null  rightIndent?: IPdfTextBlock['rightIndent'] | null  spacingBefore?: number | null  spacingAfter?: number | null}

Related types: PdfTextRunId · PdfSemanticRole · IPdfTextListItem · IPdfTextBlock

IPdfEditorTextPatch

import type { IPdfEditorTextPatch } from '@univerjs-pro/pdfs' · Used by IPdfEditorObjectPatch

Text patch for simple text edits and rich text story updates.

Simple editors can use plain text. Rich editors can target a story or run and include replacement runs when style changes are part of the same operation.

TypeScript
interface IPdfEditorTextPatch {  storyId?: PdfTextStoryId  blockId?: PdfId  runId?: PdfTextRunId  replacedRunIds?: PdfTextRunId[]  range?: IPdfEditorTextRange  text?: string  runs?: IPdfTextRun[]  paragraphs?: IPdfParagraph[] | null  layoutSnapshot?: PdfJsonValue | null}

Related types: PdfTextStoryId · PdfId · PdfTextRunId · IPdfEditorTextRange · IPdfTextRun · IPdfParagraph · PdfJsonValue

IPdfEditorTextStoryBlockInsertion

import type { IPdfEditorTextStoryBlockInsertion } from '@univerjs-pro/pdfs' · Used by IPdfEditorTextStoryPatch

One block insertion retained inside a sparse imported-story patch.

TypeScript
interface IPdfEditorTextStoryBlockInsertion {  index: number  block: IPdfTextBlock  runs: IPdfTextStoryRun[]}

Related types: IPdfTextBlock · IPdfTextStoryRun

IPdfEditorTextStoryRunEdit

import type { IPdfEditorTextStoryRunEdit } from '@univerjs-pro/pdfs' · Used by IPdfEditorTextStoryPatch

Text edit retained for materialization of an imported story run.

TypeScript
interface IPdfEditorTextStoryRunEdit {  range?: IPdfEditorTextRange  text?: string  runs?: IPdfTextRun[]}

Related types: IPdfEditorTextRange · IPdfTextRun

IPdfEmbeddedPageObject

import type { IPdfEmbeddedPageObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Reference to another page rendered as an object.

This leaves room for future page thumbnails, page reuse, slide imports, or placed PDF pages without duplicating all child objects immediately.

TypeScript
interface IPdfEmbeddedPageObject extends IPdfObjectBase {  type: PdfObjectType.EMBEDDED_PAGE  pageId: PdfPageId}

Related types: IPdfObjectBase · PdfObjectType.EMBEDDED_PAGE · PdfPageId

IPdfExportPolicy

import type { IPdfExportPolicy } from '@univerjs-pro/pdfs' · Used by IPdfEditorObjectPatch · IPdfObjectBase

Object-level export preference.

Exporters can override this with page plans when necessary, but this policy gives individual objects a durable hint for native preserve, overlay, rewrite, rasterization, removal, or redaction workflows.

TypeScript
interface IPdfExportPolicy {  disposition: PdfExportDisposition  targetLayer?: PdfLayerId  flattenDpi?: number  preserveSourceMapping?: boolean  requireVisualDiff?: boolean}

Related types: PdfExportDisposition · PdfLayerId

IPdfExportSummary

import type { IPdfExportSummary } from '@univerjs-pro/pdfs' · Used by IPdfConversionState

Document-level export summary.

Keep this as an audit/status record after export; the intended strategy before export belongs in IPdfExportPlan.

TypeScript
interface IPdfExportSummary {  targetKind: PdfOfficeSourceKind  toolchain: string[]  policyCounts?: Partial<Record<PdfExportDisposition, number>>  visualDiffRequired?: boolean}

Related types: PdfOfficeSourceKind

IPdfFontAsset

import type { IPdfFontAsset } from '@univerjs-pro/pdfs' · Used by IPdfAssetStore

Font asset metadata.

Keep font identity and embedding details here so text objects can remain lightweight and future font-substitution workflows have one source of truth.

TypeScript
interface IPdfFontAsset extends IPdfAssetBase {  type: PdfAssetType.FONT  family?: string  postScriptName?: string  embedded: boolean  pdfSubtype?: string  subset?: boolean  encoding?: string  writingMode?: 'horizontal-tb' | 'vertical-rl' | 'vertical-lr'  cmapAssetId?: PdfAssetId  unicodeMap?: IPdfFontUnicodeMapEntry[]  codeSpaceRanges?: IPdfFontCMapCodeSpaceRange[]  fontFileStreamAssetId?: PdfAssetId  fontProgramKind?: string  descendantFontIds?: PdfAssetId[]  fontBBox?: PdfRectPt  fontMatrix?: PdfMatrix  descriptor?: IPdfFontDescriptorMetrics  diagnostics?: IPdfFontDiagnostics  firstChar?: number  lastChar?: number  widths?: number[]  cidWidths?: IPdfFontCIDWidthEntry[]  defaultWidth?: number  cidToGidMap?: IPdfFontCIDToGIDMap  cidVerticalMetrics?: IPdfFontCIDVerticalMetricEntry[]  defaultVerticalMetrics?: IPdfFontDefaultVerticalMetrics}

Related types: IPdfAssetBase · PdfAssetType.FONT · PdfAssetId · IPdfFontUnicodeMapEntry · IPdfFontCMapCodeSpaceRange · PdfRectPt · PdfMatrix · IPdfFontDescriptorMetrics · IPdfFontDiagnostics · IPdfFontCIDWidthEntry · IPdfFontCIDToGIDMap · IPdfFontCIDVerticalMetricEntry · IPdfFontDefaultVerticalMetrics

IPdfFormFieldObject

import type { IPdfFormFieldObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Interactive form field object.

Widget appearance and field value are separated so future AcroForm, XFA-like, or Office form integrations can share the same field identity.

TypeScript
interface IPdfFormFieldObject extends IPdfObjectBase {  type: PdfObjectType.FORM_FIELD  fieldType: PdfFormFieldType  name: string  value?: PdfJsonValue  defaultValue?: PdfJsonValue  choices?: string[]  required?: boolean  readOnly?: boolean  fieldFlags?: number  maxLength?: number  alternateName?: string  mappingName?: string  parentRef?: PdfObjectRef  fieldRef?: PdfObjectRef  widgetObjectIds?: PdfObjectId[]}

Related types: IPdfObjectBase · PdfObjectType.FORM_FIELD · PdfFormFieldType · PdfJsonValue · PdfObjectRef · PdfObjectId

IPdfFormulaObject

import type { IPdfFormulaObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Editable or recognized mathematical formula.

Multiple payload formats are allowed so PDF imports, Office conversions, and future math editors can choose the most faithful representation available.

TypeScript
interface IPdfFormulaObject extends IPdfObjectBase {  type: PdfObjectType.FORMULA  latex?: string  mathMl?: string  omml?: string  plainText?: string  fallbackObjectIds?: PdfObjectId[]}

Related types: IPdfObjectBase · PdfObjectType.FORMULA · PdfObjectId

IPdfFormXObjectAsset

import type { IPdfFormXObjectAsset } from '@univerjs-pro/pdfs' · Used by IPdfAssetStore

Form XObject metadata.

A Form XObject is a reusable PDF mini content stream with its own resources, BBox, and optional Matrix. Parsed display lists can be attached later while preserving the original stream for native copy-through export.

TypeScript
interface IPdfFormXObjectAsset extends IPdfAssetBase {  type: PdfAssetType.FORM_XOBJECT  objectRef: PdfObjectRef  rawStreamAssetId?: PdfAssetId  displayListId?: PdfDisplayListId  bbox: PdfRectPt  matrix?: PdfMatrix  resources?: IPdfPdfResourceDictionary  group?: Record<string, PdfJsonValue>  xObjectSubtype?: PdfXObjectSubtype.FORM}

Related types: IPdfAssetBase · PdfAssetType.FORM_XOBJECT · PdfObjectRef · PdfAssetId · PdfDisplayListId · PdfRectPt · PdfMatrix · IPdfPdfResourceDictionary · PdfJsonValue · PdfXObjectSubtype.FORM

IPdfGroupObject

import type { IPdfGroupObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Logical group of model objects.

Groups are format-neutral and should express editor organization, not PDF resource ownership. Native grouping belongs in source or nativeSnapshot.

TypeScript
interface IPdfGroupObject extends IPdfObjectBase {  type: PdfObjectType.GROUP  childIds: PdfObjectId[]}

Related types: IPdfObjectBase · PdfObjectType.GROUP · PdfObjectId

IPdfImageAsset

import type { IPdfImageAsset } from '@univerjs-pro/pdfs' · Used by IPdfAssetStore · IPdfEditorManagedImageResource

Image asset metadata.

Layout stays on IPdfImageObject; this record stores intrinsic image/resource properties that can be shared by multiple placements.

TypeScript
interface IPdfImageAsset extends IPdfAssetBase {  type: PdfAssetType.IMAGE  width: number  height: number  sourceKind?: PdfImageSourceKind  xObjectSubtype?: PdfXObjectSubtype.IMAGE  rawStreamAssetId?: PdfAssetId  decodedAssetId?: PdfAssetId  previewAssetId?: PdfAssetId  objectRef?: PdfObjectRef  resourceName?: string  colorSpace?: string  decode?: number[]  decodeParms?: PdfJsonValue  filters?: string[]  bitsPerComponent?: number  interpolate?: boolean  maskKind?: PdfImageMaskKind  colorKeyMask?: number[]  maskAssetId?: PdfAssetId  softMaskAssetId?: PdfAssetId  matte?: number[]  sMaskInData?: number}

Related types: IPdfAssetBase · PdfAssetType.IMAGE · PdfImageSourceKind · PdfXObjectSubtype.IMAGE · PdfAssetId · PdfObjectRef · PdfJsonValue · PdfImageMaskKind

IPdfImageObject

import type { IPdfImageObject } from '@univerjs-pro/pdfs' · Used by PdfObject · IPdfEditorImagePatch

Raster image object backed by an asset.

Store binary/image metadata in assets and keep this object focused on layout, cropping, opacity, and relationships to masks.

TypeScript
interface IPdfImageObject extends IPdfObjectBase {  type: PdfObjectType.IMAGE  assetId: PdfAssetId  crop?: PdfRect  opacity?: number  softMaskAssetId?: PdfAssetId}

Related types: IPdfObjectBase · PdfObjectType.IMAGE · PdfAssetId · PdfRect

IPdfImportReport

import type { IPdfImportReport } from '@univerjs-pro/pdfs' · Used by IPdfConversionState

Detailed import report for one source document.

Reports are source-scoped so multi-source documents can track partial import, rasterized pages, or unsupported features independently.

TypeScript
interface IPdfImportReport {  sourceId?: PdfSourceId  pages: IPdfImportPageReport[]}

Related types: PdfSourceId · IPdfImportPageReport

IPdfImportSummary

import type { IPdfImportSummary } from '@univerjs-pro/pdfs' · Used by IPdfConversionState

Document-level import summary.

This gives a fast overview of the source kind, tools, and feature coverage; per-page details belong in IPdfImportReport.

TypeScript
interface IPdfImportSummary {  sourceKind: PdfOfficeSourceKind  toolchain: string[]  nativeObjectCount?: number  displayOperationCount?: number  semanticObjectCount?: number  unsupportedFeatures?: string[]}

Related types: PdfOfficeSourceKind

IPdfLayer

import type { IPdfLayer } from '@univerjs-pro/pdfs' · Used by IPdfPage

A logical page layer with visibility, locking, and object ordering.

Layers are an extensibility point for annotations, guides, redactions, or future feature-specific views without changing page object storage.

TypeScript
interface IPdfLayer {  id: PdfLayerId  type: PdfLayerType  name?: string  visible: boolean  locked: boolean  objectIds: PdfObjectId[]  blendMode?: string  opacity?: number}

Related types: PdfLayerId · PdfLayerType · PdfObjectId

IPdfNativeObjectRecord

import type { IPdfNativeObjectRecord } from '@univerjs-pro/pdfs' · Used by IPdfNativePackage

Index entry for one native PDF object.

Keep stable hashes and JSON pointers here so future diffing, caching, and patching can identify native objects across import/export cycles.

TypeScript
interface IPdfNativeObjectRecord {  objectRef: PdfObjectRef  generation?: number  type?: string  jsonPointer?: string  sourceUri?: string  stableHash?: string}

Related types: PdfObjectRef

IPdfNativeStreamRecord

import type { IPdfNativeStreamRecord } from '@univerjs-pro/pdfs' · Used by IPdfNativePackage

Storage record for one native PDF stream.

Decoded stream metadata is separated from assets so tooling can inspect or externalize streams without loading every byte into the main document JSON.

TypeScript
interface IPdfNativeStreamRecord {  objectRef: PdfObjectRef  storage: 'external-file' | 'inline-base64' | 'omitted'  uri?: string  decoded: boolean  filters?: string[]  length?: number}

Related types: PdfObjectRef

IPdfOutlineDestination

import type { IPdfOutlineDestination } from '@univerjs-pro/pdfs' · Used by IPdfOutlineItem

PDF-native destination preserved for bookmark navigation and export.

TypeScript
interface IPdfOutlineDestination {  pageId?: PdfPageId  fit?: PdfOutlineDestinationFit  left?: PdfPt  top?: PdfPt  right?: PdfPt  bottom?: PdfPt  zoom?: number}

Related types: PdfPageId · PdfOutlineDestinationFit · PdfPt

IPdfOutlineStyle

import type { IPdfOutlineStyle } from '@univerjs-pro/pdfs' · Used by IPdfOutlineItem

Optional visual treatment stored by PDF outline dictionaries.

TypeScript
interface IPdfOutlineStyle {  color?: PdfColor  bold?: boolean  italic?: boolean}

Related types: PdfColor

IPdfPageBoxes

import type { IPdfPageBoxes } from '@univerjs-pro/pdfs' · Used by IPdfPage · IPdfPageSourceMapping

PDF page boundary boxes in PDF user space.

These boxes are kept in the native PDF coordinate system so exporters can preserve crop/media/trim semantics exactly.

TypeScript
interface IPdfPageBoxes {  mediaBox: PdfRectPt  cropBox?: PdfRectPt  bleedBox?: PdfRectPt  trimBox?: PdfRectPt  artBox?: PdfRectPt}

Related types: PdfRectPt

IPdfPageEditOperation

import type { IPdfPageEditOperation } from '@univerjs-pro/pdfs' · Used by IPdfEditState

Page-level edit operation that affects page identity or order.

Object edits remain in object operations; this record is for changes whose export impact is page-scoped.

TypeScript
interface IPdfPageEditOperation {  id: PdfEditId  pageId: PdfPageId  type: 'insert' | 'delete' | 'reorder' | 'rotate' | 'resize'  payload: PdfJsonValue  createdAt?: string}

Related types: PdfEditId · PdfPageId · PdfJsonValue

IPdfPageExportPlan

import type { IPdfPageExportPlan } from '@univerjs-pro/pdfs' · Used by IPdfExportPlan

Export strategy for one page.

Keep page plans coarse and reference object/edit ids so future exporters can add specialized writers without duplicating object data.

TypeScript
interface IPdfPageExportPlan {  pageId: PdfPageId  sourceId?: PdfSourceId  sourcePageIndex?: number  strategy: PdfExportPageStrategy  suppressionIds?: PdfEditId[]  overlayObjectIds?: PdfObjectId[]  rewriteObjectIds?: PdfObjectId[]  rasterDpi?: number  notes?: string}

Related types: PdfPageId · PdfSourceId · PdfExportPageStrategy · PdfEditId · PdfObjectId

IPdfPageSourceMapping

import type { IPdfPageSourceMapping } from '@univerjs-pro/pdfs' · Used by IPdfDocumentSource · IPdfPage

Provenance mapping for a page back to an imported source page.

Use this for page-level PDF objects and resource dictionaries. Object-level spans should use IPdfSourceMapping so page mappings stay compact.

TypeScript
interface IPdfPageSourceMapping {  sourceId?: PdfSourceId  pageIndex?: number  pageRef?: PdfObjectRef  pageObjectRef?: PdfObjectRef  contentStreamRefs?: PdfObjectRef[]  resourceObjectRef?: PdfObjectRef  pdfBoxes?: Partial<IPdfPageBoxes>  structParents?: number[]}

Related types: PdfSourceId · PdfObjectRef · IPdfPageBoxes

IPdfPaint

import type { IPdfPaint } from '@univerjs-pro/pdfs' · Used by IPdfPage · IPdfStyleStore · IPdfShapeObject · IPdfPathObject · IPdfRedactionObject · IPdfPatternAsset · IPdfShadingAsset · IPdfEditorObjectStylePatch · IPdfTableCellStyle · IPdfShapeAnnotationGeometry · IPdfGraphicsState · IPdfPathPaint

Fill/paint description shared by objects and display operations.

Keep paint resources by asset or pattern id so future color spaces, gradients, and PDF patterns can be added without changing every object type.

TypeScript
interface IPdfPaint {  color?: PdfColor  sourceColorSpace?: string  sourceColorComponents?: number[]  opacity?: number  assetId?: PdfAssetId  patternId?: PdfAssetId  gradient?: IPdfGradient}

Related types: PdfColor · PdfAssetId · IPdfGradient

IPdfPathObject

import type { IPdfPathObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Editable vector path object.

Use this for user-created or promoted vector content. Raw PDF paths that are not editable can remain in display lists or raw PDF groups.

TypeScript
interface IPdfPathObject extends IPdfObjectBase {  type: PdfObjectType.PATH  commands: IPdfPathCommand[]  fill?: IPdfPaint  stroke?: IPdfStroke  fillRule?: PdfFillRule}

Related types: IPdfObjectBase · PdfObjectType.PATH · IPdfPathCommand · IPdfPaint · IPdfStroke · PdfFillRule

IPdfPatternAsset

import type { IPdfPatternAsset } from '@univerjs-pro/pdfs' · Used by IPdfAssetStore

PDF or model pattern asset metadata.

Complex pattern definitions can remain native or external until semantic pattern editing is supported.

TypeScript
interface IPdfPatternAsset extends IPdfAssetBase {  type: PdfAssetType.PATTERN  patternType?: string  rawStreamAssetId?: PdfAssetId  objectRef?: PdfObjectRef  displayListId?: PdfDisplayListId  paintType?: number  tilingType?: number  bbox?: PdfRectPt  matrix?: PdfMatrix  xStep?: number  yStep?: number  shadingAssetId?: PdfAssetId  fallbackPaint?: IPdfPaint}

Related types: IPdfAssetBase · PdfAssetType.PATTERN · PdfAssetId · PdfObjectRef · PdfDisplayListId · PdfRectPt · PdfMatrix · IPdfPaint

IPdfRawPdfGroupObject

import type { IPdfRawPdfGroupObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Opaque imported PDF content that should usually be preserved natively.

Use this whenever the importer cannot safely promote content to semantic objects. Future parsers can attach richer snapshots while keeping this as the fallback for unknown or unsupported PDF features.

TypeScript
interface IPdfRawPdfGroupObject extends IPdfObjectBase {  type: PdfObjectType.RAW_PDF_GROUP  displayListIds?: PdfId[]  nativeSnapshot?: IPdfNativeSnapshot}

Related types: IPdfObjectBase · PdfObjectType.RAW_PDF_GROUP · PdfId · IPdfNativeSnapshot

IPdfRedactionObject

import type { IPdfRedactionObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Redaction region and export intent.

Redactions must remain explicit until export burn-in so compliance workflows can audit why content is hidden and whether it has been permanently applied.

TypeScript
interface IPdfRedactionObject extends IPdfObjectBase {  type: PdfObjectType.REDACTION  reason?: string  overlayFill?: IPdfPaint  overlayText?: string  burnInRequired: boolean}

Related types: IPdfObjectBase · PdfObjectType.REDACTION · IPdfPaint

IPdfShadingAsset

import type { IPdfShadingAsset } from '@univerjs-pro/pdfs' · Used by IPdfAssetStore

PDF shading asset metadata.

Shadings are preserved as assets because many PDF shadings are lower-level than current editor gradient controls.

TypeScript
interface IPdfShadingAsset extends IPdfAssetBase {  type: PdfAssetType.SHADING  shadingType?: string  objectRef?: PdfObjectRef  colorSpace?: string  bbox?: PdfRectPt  decode?: number[]  gradient?: IPdfGradient  fallbackPaint?: IPdfPaint  fallbackMesh?: IPdfShadingFallbackMesh}

Related types: IPdfAssetBase · PdfAssetType.SHADING · PdfObjectRef · PdfRectPt · IPdfGradient · IPdfPaint · IPdfShadingFallbackMesh

IPdfShapeObject

import type { IPdfShapeObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Editable preset or custom shape.

The geometry object is intentionally separate so future shape engines can add presets, adjustments, or paths without changing common object fields.

TypeScript
interface IPdfShapeObject extends IPdfObjectBase {  type: PdfObjectType.SHAPE  shape: IPdfShapeGeometry  fill?: IPdfPaint  stroke?: IPdfStroke  effects?: IPdfEffect[]}

Related types: IPdfObjectBase · PdfObjectType.SHAPE · IPdfShapeGeometry · IPdfPaint · IPdfStroke · IPdfEffect

IPdfSize

import type { IPdfSize } from '@univerjs-pro/pdfs' · Used by IPdfPage · IPdfPageDirectoryEntry · IPdfEditorPagePatch

Width and height in model units.

The current model unit is EMU. Keep this structure unit-neutral enough that conversion helpers, not consumers, own any future unit conversion.

TypeScript
interface IPdfSize {  width: PdfEmu  height: PdfEmu}

Related types: PdfEmu

IPdfSourceMapping

import type { IPdfSourceMapping } from '@univerjs-pro/pdfs' · Used by IPdfDisplayList · IPdfTextStory · IPdfOutlineItem · IPdfEditorObjectPatch · IPdfSourceSuppression · PdfDisplayOperation · IPdfTextBlock · IPdfTextStoryRun · IPdfTextListDefinition · IPdfTextRun · IPdfStructNode · IPdfConversionWarning · IPdfObjectBase · IPdfAssetBase

Provenance mapping from a model entity back to native PDF/Office structures.

Fields are optional because different importers can preserve different levels of detail. Add new pointers here when they help deterministic export, visual diffing, or debugging of the original source.

TypeScript
interface IPdfSourceMapping {  sourceId?: PdfSourceId  pageId?: PdfPageId  pageIndex?: number  pageRef?: PdfObjectRef  pageObjectRef?: PdfObjectRef  pdfObjectRefs?: PdfObjectRef[]  contentStreamRefs?: PdfObjectRef[]  contentStreamIndex?: number  operatorIds?: PdfDisplayOperationId[]  operationPath?: IPdfSourceOperationPathSegment[]  operatorRange?: [number, number]  displayListIds?: PdfDisplayListId[]  resourceRefs?: IPdfSourceResourceRef[]  pdfBounds?: PdfRectPt  markedContentId?: number  structElementId?: PdfId  structParent?: number  xobjectRef?: PdfObjectRef  appearanceStreamRef?: PdfObjectRef  officePath?: string  notes?: string}

Related types: PdfSourceId · PdfPageId · PdfObjectRef · PdfDisplayOperationId · IPdfSourceOperationPathSegment · PdfDisplayListId · IPdfSourceResourceRef · PdfRectPt · PdfId

IPdfSourceOperationPathSegment

import type { IPdfSourceOperationPathSegment } from '@univerjs-pro/pdfs' · Used by IPdfSourceSuppression · IPdfSourceMapping

One segment in a native display-operation instance path.

A segment usually points to an operator inside a display list. Optional resource metadata lets future exporters distinguish the resource invocation that introduced a nested list without decoding the operation again.

TypeScript
interface IPdfSourceOperationPathSegment {  displayListId?: PdfDisplayListId  operatorId?: PdfDisplayOperationId  resourceName?: string  objectRef?: PdfObjectRef  assetId?: PdfAssetId}

Related types: PdfDisplayListId · PdfDisplayOperationId · PdfObjectRef · PdfAssetId

IPdfStreamAsset

import type { IPdfStreamAsset } from '@univerjs-pro/pdfs' · Used by IPdfAssetStore

Raw stream asset metadata.

Streams may be external files, inline base64, or native PDF references. This keeps large source artifacts out of normal object payloads.

TypeScript
interface IPdfStreamAsset extends IPdfAssetBase {  type: PdfAssetType.STREAM  storage: 'inline-base64' | 'external-file' | 'native-ref'  value?: string  uri?: string  objectRef?: PdfObjectRef  filters?: string[]}

Related types: IPdfAssetBase · PdfAssetType.STREAM · PdfObjectRef

IPdfStroke

import type { IPdfStroke } from '@univerjs-pro/pdfs' · Used by IPdfStyleStore · IPdfShapeObject · IPdfPathObject · IPdfTextRun · IPdfEditorObjectStylePatch · IPdfLineAnnotationGeometry · IPdfMarkupAnnotationGeometry · IPdfInkAnnotationGeometry · IPdfShapeAnnotationGeometry · IPdfLinkAnnotationAction · IPdfGraphicsState · IPdfPathPaint · IPdfTableBorders

Stroke style for paths, shapes, borders, and annotations.

Add new stroke features as optional fields so simple importers can ignore advanced PDF graphics state without losing the base outline.

TypeScript
interface IPdfStroke {  color?: PdfColor  sourceColorSpace?: string  sourceColorComponents?: number[]  patternId?: PdfAssetId  width?: number  opacity?: number  dash?: number[]  dashPhase?: number  lineCap?: 'butt' | 'round' | 'square'  lineJoin?: 'miter' | 'round' | 'bevel'  miterLimit?: number}

Related types: PdfColor · PdfAssetId

IPdfStructNode

import type { IPdfStructNode } from '@univerjs-pro/pdfs' · Used by IPdfLogicalStructure

Node in the logical structure tree.

Roles may use known semantic roles or source-specific strings so importers can preserve unknown tagged PDF roles without data loss.

TypeScript
interface IPdfStructNode {  id: PdfId  role: PdfSemanticRole | string  title?: string  parentId?: PdfId  childIds?: PdfId[]  objectIds?: PdfObjectId[]  mcids?: number[]  source?: IPdfSourceMapping}

Related types: PdfId · PdfSemanticRole · PdfObjectId · IPdfSourceMapping

IPdfTableCandidateObject

import type { IPdfTableCandidateObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Detected table-like content before it is promoted to an editable table.

This keeps table recognition incremental: importers can preserve confidence, supporting objects, and detection signals before creating structured cells.

TypeScript
interface IPdfTableCandidateObject extends IPdfObjectBase {  type: PdfObjectType.TABLE_CANDIDATE  sourceObjectIds: PdfObjectId[]  displayOpIds?: PdfDisplayOperationId[]  detection: {    confidence: number    rowCount?: number    columnCount?: number    hasRuledLines?: boolean    hasAlignedText?: boolean    reason?: string  }  promotion?: {    canPromoteToTable: boolean    targetObjectId?: PdfObjectId    reason?: string  }}

Related types: IPdfObjectBase · PdfObjectType.TABLE_CANDIDATE · PdfObjectId · PdfDisplayOperationId

IPdfTableObject

import type { IPdfTableObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Editable structured table.

Keep rows, columns, and cells format-neutral so the same object can export to PDF vectors, DOCX tables, slides, or spreadsheet ranges later.

TypeScript
interface IPdfTableObject extends IPdfObjectBase {  type: PdfObjectType.TABLE  rows: IPdfTableRow[]  columns: IPdfTableColumn[]  cells: IPdfTableCell[]  styleId?: PdfStyleId  options?: IPdfTableStyleOptions  defaultCellStyle?: IPdfTableCellStyle  gridSource?: IPdfOfficeInteropMetadata}

Related types: IPdfObjectBase · PdfObjectType.TABLE · IPdfTableRow · IPdfTableColumn · IPdfTableCell · PdfStyleId · IPdfTableStyleOptions · IPdfTableCellStyle · IPdfOfficeInteropMetadata

IPdfTextBlock

import type { IPdfTextBlock } from '@univerjs-pro/pdfs' · Used by IPdfTextStory · IPdfEditorTextStoryBlockInsertion · IPdfEditorTextBlockPatch

Block-level unit inside a text story.

Blocks can become paragraphs, headings, list items, table cell text, or future semantic text containers without changing the text run storage model.

TypeScript
interface IPdfTextBlock {  id: PdfId  runIds: PdfTextRunId[]  role?: PdfSemanticRole  listItem?: IPdfTextListItem  align?: 'left' | 'center' | 'right' | 'justify'  lineHeight?: number  indent?: number  firstLineIndent?: PdfEmu  rightIndent?: PdfEmu  spacingBefore?: number  spacingAfter?: number  source?: IPdfSourceMapping}

Related types: PdfId · PdfTextRunId · PdfSemanticRole · IPdfTextListItem · PdfEmu · IPdfSourceMapping

IPdfTextCandidateObject

import type { IPdfTextCandidateObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Text extracted from PDF operators before it is trusted as editable text.

Candidate objects let importers keep uncertain glyph/run/line grouping visible without committing to a final text story. Promotion data makes later semantic upgrades explicit and reversible.

TypeScript
interface IPdfTextCandidateObject extends IPdfObjectBase {  type: PdfObjectType.PDF_TEXT_CANDIDATE  text?: string  displayOpIds: PdfDisplayOperationId[]  grouping: {    level: 'glyph' | 'run' | 'line' | 'block'    confidence: number    reason?: string  }  fontCandidates?: Array<Partial<IPdfTextRun>>  promotion?: {    canPromoteToTextBox: boolean    targetStoryId?: PdfTextStoryId    reason?: string  }}

Related types: IPdfObjectBase · PdfObjectType.PDF_TEXT_CANDIDATE · PdfDisplayOperationId · PdfTextStoryId

IPdfTextListDefinition

import type { IPdfTextListDefinition } from '@univerjs-pro/pdfs' · Used by IPdfTextStory · IPdfEditorTextStoryPatch

Reusable semantic numbering definition inside one text story.

The definition is independent from editor presets so persisted documents can render even when preset menus change in a later product version.

TypeScript
interface IPdfTextListDefinition {  id: PdfTextListId  kind: PdfListKind  levels: IPdfTextListLevel[]  source?: IPdfSourceMapping  metadata?: Record<string, PdfJsonValue>}

Related types: PdfTextListId · PdfListKind · IPdfTextListLevel · IPdfSourceMapping · PdfJsonValue

IPdfTextObject

import type { IPdfTextObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Editable text box object.

Prefer textStoryId for rich editing and collaboration. Inline runs remain useful for simple labels, tests, and lightweight importers.

TypeScript
interface IPdfTextObject extends IPdfObjectBase {  type: PdfObjectType.TEXT_BOX  textStoryId?: PdfTextStoryId  runs?: IPdfTextRun[]  paragraphs?: IPdfParagraph[]  writingMode?: 'horizontal-tb' | 'vertical-rl' | 'vertical-lr'  textAnchor?: PdfTextAnchor  autoFit?: 'none' | 'shrinkText' | 'resizeShape'  autoFitMinHeight?: PdfEmu}

Related types: IPdfObjectBase · PdfObjectType.TEXT_BOX · PdfTextStoryId · IPdfTextRun · IPdfParagraph · PdfTextAnchor · PdfEmu

IPdfTextRun

import type { IPdfTextRun } from '@univerjs-pro/pdfs' · Used by IPdfStyleStore · IPdfTextCandidateObject · IPdfTextObject · IPdfTextRunObject · PdfDisplayOperation · IPdfTextStoryRun · IPdfEditorTextStoryRunEdit · IPdfEditorObjectStylePatch · IPdfEditorTextPatch · IPdfTextListLevel

Text styling and glyph metadata for a contiguous run.

Keep typographic values in PDF/Office-friendly units. Renderer-specific measurements, such as canvas pixels, should be derived outside the model.

TypeScript
interface IPdfTextRun {  text: string  visualOnly?: boolean  fontId?: PdfAssetId  fontFamily?: string  fontSize: PdfPt  fill?: PdfColor  fillColorSpace?: string  fillColorComponents?: number[]  fillPatternId?: PdfAssetId  fillOpacity?: number  stroke?: IPdfStroke  bold?: boolean  italic?: boolean  underline?: boolean  strikeout?: boolean  charSpacing?: number  wordSpacing?: number  horizontalScale?: number  baselineShift?: number  writingMode?: 'horizontal-tb' | 'vertical-rl' | 'vertical-lr'  glyphs?: IPdfGlyphRun  source?: IPdfSourceMapping}

Related types: PdfAssetId · PdfPt · PdfColor · IPdfStroke · IPdfGlyphRun · IPdfSourceMapping

IPdfTextRunObject

import type { IPdfTextRunObject } from '@univerjs-pro/pdfs' · Used by PdfObject

Single-run text object for simple positioned text.

This is useful for imported fragments or generated labels. Rich paragraphs should use IPdfTextObject plus IPdfTextStory.

TypeScript
interface IPdfTextRunObject extends IPdfObjectBase {  type: PdfObjectType.TEXT_RUN  run: IPdfTextRun}

Related types: IPdfObjectBase · PdfObjectType.TEXT_RUN · IPdfTextRun

IPdfTextStoryRun

import type { IPdfTextStoryRun } from '@univerjs-pro/pdfs' · Used by IPdfTextStory · IPdfEditorTextStoryPatch · IPdfEditorTextStoryBlockInsertion

Identified run inside a text story.

The id makes text operations addressable for collaboration, comments, and future rich text transforms.

TypeScript
interface IPdfTextStoryRun extends IPdfTextRun {  id: PdfTextRunId  source?: IPdfSourceMapping}

Related types: IPdfTextRun · PdfTextRunId · IPdfSourceMapping

PdfAssetStorageKind

import { PdfAssetStorageKind } from '@univerjs-pro/pdfs' · Used by IPdfNativeResourceBinding · IPdfUniverserResourceBinding

Identifies where a PDF asset's authoritative bytes are stored.

TypeScript
enum PdfAssetStorageKind {  NATIVE_PDF = 'native-pdf',  UNIVERSER_RESOURCE = 'universer-resource',  DERIVED_CACHE = 'derived-cache',}

PdfCapabilityAction

import { PdfCapabilityAction } from '@univerjs-pro/pdfs' · Used by IPdfCapabilityDecision

User or system action evaluated by the PDF capability layer.

TypeScript
enum PdfCapabilityAction {  RENDER = 'render',  SELECT = 'select',  EDIT_TEXT = 'edit-text',  EDIT_OBJECT = 'edit-object',  EDIT_PAGE = 'edit-page',  FILL_FORM = 'fill-form',  ANNOTATE = 'annotate',  EXPORT = 'export',}

PdfCapabilityFallback

import { PdfCapabilityFallback } from '@univerjs-pro/pdfs' · Used by IPdfCapabilityDecision

Explicit fallback used when the requested PDF action is not fully supported.

TypeScript
enum PdfCapabilityFallback {  NONE = 'none',  PRESERVE_NATIVE = 'preserve-native',  READ_ONLY = 'read-only',  RASTERIZE = 'rasterize',  SUBSTITUTE_FONT = 'substitute-font',  BLOCK = 'block',}

PdfCapabilityRequirement

import { PdfCapabilityRequirement } from '@univerjs-pro/pdfs' · Used by IPdfCapabilityDecision

Runtime or service prerequisite needed before a capability becomes usable.

TypeScript
enum PdfCapabilityRequirement {  SOURCE_BYTES = 'source-bytes',  DECODED_STREAM = 'decoded-stream',  EMBEDDED_FONT = 'embedded-font',  LOCAL_FONT = 'local-font',  MANAGED_RESOURCE = 'managed-resource',  UNIT_PERMISSION = 'unit-permission',  EXCHANGE_SUPPORT = 'exchange-support',}

PdfCapabilityScope

import { PdfCapabilityScope } from '@univerjs-pro/pdfs' · Used by IPdfCapabilityDecision

Model scope to which a capability decision applies.

TypeScript
enum PdfCapabilityScope {  DOCUMENT = 'document',  PAGE = 'page',  OBJECT = 'object',  ASSET = 'asset',  FEATURE = 'feature',}

PdfCapabilitySupport

import { PdfCapabilitySupport } from '@univerjs-pro/pdfs' · Used by IPdfCapabilityDecision

Effective support level for one capability decision.

TypeScript
enum PdfCapabilitySupport {  SUPPORTED = 'supported',  DEGRADED = 'degraded',  READ_ONLY = 'read-only',  BLOCKED = 'blocked',  UNKNOWN = 'unknown',}

PdfDisplayOperation

import type { PdfDisplayOperation } from '@univerjs-pro/pdfs' · Used by IPdfDisplayList

TypeScript
type PdfDisplayOperation =  | { id: PdfDisplayOperationId; type: PdfDisplayOpType.SAVE_STATE; source?: IPdfSourceMapping }  | { id: PdfDisplayOperationId; type: PdfDisplayOpType.RESTORE_STATE; source?: IPdfSourceMapping }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.TRANSFORM      matrix: PdfMatrix      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.SET_GRAPHICS_STATE      state: IPdfGraphicsState      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.CLIP      path: IPdfPathCommand[]      fillRule?: PdfFillRule      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.PATH      commands: IPdfPathCommand[]      paint: IPdfPathPaint      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.TEXT      runs: IPdfTextRun[]      transform?: PdfMatrix      textState?: IPdfTextState      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.IMAGE      assetId: PdfAssetId      resourceName?: string      intrinsicSize?: IPdfNativeSize      imageSpaceMatrix?: PdfMatrix      transform?: PdfMatrix      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.SHADING      assetId: PdfAssetId      transform?: PdfMatrix      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.FORM_XOBJECT      assetId?: PdfAssetId      objectRef: PdfObjectRef      resourceName?: string      displayListId?: PdfDisplayListId      bbox?: PdfRectPt      matrix?: PdfMatrix      transform?: PdfMatrix      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.MARKED_CONTENT_BEGIN      tag: string      mcid?: number      source?: IPdfSourceMapping    }  | {      id: PdfDisplayOperationId      type: PdfDisplayOpType.MARKED_CONTENT_END      source?: IPdfSourceMapping    }

Related types: PdfDisplayOperationId · PdfDisplayOpType.SAVE_STATE · IPdfSourceMapping · PdfDisplayOpType.RESTORE_STATE · PdfDisplayOpType.TRANSFORM · PdfMatrix · PdfDisplayOpType.SET_GRAPHICS_STATE · IPdfGraphicsState · PdfDisplayOpType.CLIP · IPdfPathCommand · PdfFillRule · PdfDisplayOpType.PATH · IPdfPathPaint · PdfDisplayOpType.TEXT · IPdfTextRun · IPdfTextState · PdfDisplayOpType.IMAGE · PdfAssetId · IPdfNativeSize · PdfDisplayOpType.SHADING · PdfDisplayOpType.FORM_XOBJECT · PdfObjectRef · PdfDisplayListId · PdfRectPt · PdfDisplayOpType.MARKED_CONTENT_BEGIN · PdfDisplayOpType.MARKED_CONTENT_END

PdfDisplayOperationId

import type { PdfDisplayOperationId } from '@univerjs-pro/pdfs' · Used by IPdfSourceSuppression · IPdfTextCandidateObject · IPdfTableCandidateObject · IPdfChartCandidateObject · PdfDisplayOperation · IPdfSourceMapping · IPdfSourceOperationPathSegment

TypeScript
type PdfDisplayOperationId = PdfId

Related types: PdfId

PdfExportDisposition

import { PdfExportDisposition } from '@univerjs-pro/pdfs' · Used by IPdfSourceSuppression · IPdfExportSummary · IPdfExportPolicy

Export behavior for an object or source span. Additions should describe a concrete writer strategy that can be implemented deterministically.

TypeScript
enum PdfExportDisposition {  PRESERVE_NATIVE = 'preserve-native',  OVERLAY = 'overlay',  REWRITE_VECTOR = 'rewrite-vector',  FLATTEN_RASTER = 'flatten-raster',  REMOVE = 'remove',  REDACT = 'redact',}

PdfLayerId

import type { PdfLayerId } from '@univerjs-pro/pdfs' · Used by IPdfEditorOverlayObject · IPdfLayer · IPdfExportPolicy

TypeScript
type PdfLayerId = PdfId

Related types: PdfId

PdfMatrix

import type { PdfMatrix } from '@univerjs-pro/pdfs' · Used by IPdfEditorObjectPatch · PdfDisplayOperation · IPdfFontAsset · IPdfFormXObjectAsset · IPdfPatternAsset · IPdfGradient · IPdfObjectBase · IPdfGraphicsState · IPdfXObjectResourceRef

TypeScript
type PdfMatrix = [number, number, number, number, number, number]

PdfObjectRef

import type { PdfObjectRef } from '@univerjs-pro/pdfs' · Used by IPdfNativePackage · IPdfNativeResourceBinding · IPdfPageSourceMapping · IPdfAnnotationObject · IPdfFormFieldObject · PdfDisplayOperation · IPdfSourceMapping · IPdfImageAsset · IPdfFormXObjectAsset · IPdfPatternAsset · IPdfShadingAsset · IPdfStreamAsset · IPdfNativeObjectRecord · IPdfNativeStreamRecord · IPdfSourceOperationPathSegment · IPdfNativeSnapshot · IPdfPopupAnnotationState · IPdfWidgetAnnotationState · IPdfSourceResourceRef · IPdfFontCIDToGIDMap · IPdfSoftMaskState

TypeScript
type PdfObjectRef = `${number} ${number} R` | string

PdfOfficeSourceKind

import { PdfOfficeSourceKind } from '@univerjs-pro/pdfs' · Used by IPdfDocumentSource · IPdfExportPlan · IPdfImportSummary · IPdfExportSummary · IPdfOfficeInteropMetadata

Source/target document families for import and export. Add values for stable interchange formats that can own provenance and conversion reports.

TypeScript
enum PdfOfficeSourceKind {  PDF = 'pdf',  PPTX = 'pptx',  DOCX = 'docx',  XLSX = 'xlsx',  UDOC = 'udoc',}

PdfOperationId

import type { PdfOperationId } from '@univerjs-pro/pdfs' · Used by IPdfOperationEnvelope

TypeScript
type PdfOperationId = PdfId

Related types: PdfId

PdfOperationType

import { PdfOperationType } from '@univerjs-pro/pdfs' · Used by IPdfOperationEnvelope

Collaborative operation categories. Keep payload details outside the enum so future operation versions can evolve without renaming operation kinds.

TypeScript
enum PdfOperationType {  INSERT_OBJECT = 'insertObject',  UPDATE_OBJECT = 'updateObject',  DELETE_OBJECT = 'deleteObject',  REORDER_OBJECT = 'reorderObject',  INSERT_PAGE = 'insertPage',  UPDATE_PAGE = 'updatePage',  DELETE_PAGE = 'deletePage',  UPDATE_ASSET = 'updateAsset',  SET_EXPORT_POLICY = 'setExportPolicy',}

PdfRect

import type { PdfRect } from '@univerjs-pro/pdfs' · Used by IPdfEditorObjectPatch · IPdfImageObject · IPdfEditorImagePatch · IPdfObjectBase · IPdfPathCommand

TypeScript
type PdfRect = PdfRectEmu

Related types: PdfRectEmu

PdfRectPt

import type { PdfRectPt } from '@univerjs-pro/pdfs' · Used by IPdfEditorPagePatch · IPdfPageBoxes · PdfDisplayOperation · IPdfSourceMapping · IPdfFontAsset · IPdfFormXObjectAsset · IPdfPatternAsset · IPdfShadingAsset · IPdfEditorImagePatch · IPdfFontDescriptorMetrics · IPdfShadingFallbackMesh · IPdfXObjectResourceRef

TypeScript
type PdfRectPt = [PdfPt, PdfPt, PdfPt, PdfPt]

Related types: PdfPt

PdfSourceSuppressionReason

import { PdfSourceSuppressionReason } from '@univerjs-pro/pdfs' · Used by IPdfSourceSuppression

Reason a source span is hidden or removed during export. This keeps user intent auditable and leaves space for future compliance or workflow reasons.

TypeScript
enum PdfSourceSuppressionReason {  REPLACED_BY_SEMANTIC_OBJECT = 'replaced-by-semantic-object',  USER_DELETED = 'user-deleted',  REDACTED = 'redacted',  HIDDEN_FOR_EXPORT = 'hidden-for-export',}

PdfStyleId

import type { PdfStyleId } from '@univerjs-pro/pdfs' · Used by IPdfStyleStore · IPdfTableObject · IPdfEditorObjectStylePatch

TypeScript
type PdfStyleId = PdfId

Related types: PdfId

PdfTextListId

import type { PdfTextListId } from '@univerjs-pro/pdfs' · Used by IPdfTextStory · IPdfEditorTextStoryPatch · IPdfTextListDefinition · IPdfTextListItem

TypeScript
type PdfTextListId = PdfId

Related types: PdfId

PdfTextRunId

import type { PdfTextRunId } from '@univerjs-pro/pdfs' · Used by IPdfTextStory · IPdfEditorTextStoryPatch · IPdfTextBlock · IPdfTextStoryRun · IPdfEditorTextBlockPatch · IPdfEditorTextPatch

TypeScript
type PdfTextRunId = PdfId

Related types: PdfId

IPdfAssetBase

import type { IPdfAssetBase } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset · IPdfImageAsset · IPdfFormXObjectAsset · IPdfColorProfileAsset · IPdfPatternAsset · IPdfShadingAsset · IPdfAttachmentAsset · IPdfStreamAsset

Shared metadata for every asset.

Asset-specific interfaces should extend this base and keep binary storage, provenance, checksums, and MIME metadata consistent across resource kinds.

TypeScript
interface IPdfAssetBase {  id: PdfAssetId  type: PdfAssetType  source?: IPdfSourceMapping  checksum?: string  mimeType?: string  fileName?: string  byteLength?: number  metadata?: Record<string, PdfJsonValue>}

Related types: PdfAssetId · PdfAssetType · IPdfSourceMapping · PdfJsonValue

IPdfEditorLinkAnnotationPatch

import type { IPdfEditorLinkAnnotationPatch } from '@univerjs-pro/pdfs' · Used by IPdfEditorAnnotationPatch

Sparse editable fields for a Link annotation action. null clears a field.

TypeScript
interface IPdfEditorLinkAnnotationPatch {  actionType?: IPdfLinkAnnotationAction['actionType'] | null  uri?: IPdfLinkAnnotationAction['uri'] | null  dest?: IPdfLinkAnnotationAction['dest'] | null  pageId?: IPdfLinkAnnotationAction['pageId'] | null  border?: IPdfLinkAnnotationAction['border'] | null}

Related types: IPdfLinkAnnotationAction

IPdfEditorTextRange

import type { IPdfEditorTextRange } from '@univerjs-pro/pdfs' · Used by IPdfEditorTextStoryRunEdit · IPdfEditorTextPatch

Text range in an editable story, run, or simple text object.

Offsets use UTF-16 code units for compatibility with browser text editing. A future text engine may add grapheme indexes without changing this field.

TypeScript
interface IPdfEditorTextRange {  start: number  end: number}

IPdfEffect

import type { IPdfEffect } from '@univerjs-pro/pdfs' · Used by IPdfShapeObject

Visual effect descriptor.

The value is JSON so future effects can be prototyped without changing the object union; stable high-use effects can later become typed interfaces.

TypeScript
interface IPdfEffect {  type: 'shadow' | 'blur' | 'opacity' | 'blend'  value: PdfJsonValue}

Related types: PdfJsonValue

IPdfFontCIDToGIDMap

import type { IPdfFontCIDToGIDMap } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset

CID-to-GID mapping metadata from a CIDFont /CIDToGIDMap entry.

Large maps can be one binary stream entry per CID. The PDF model keeps those stream-backed instead of expanding them into JSON so large CJK documents do not balloon during import.

TypeScript
interface IPdfFontCIDToGIDMap {  kind: 'identity' | 'stream' | 'none'  streamAssetId?: PdfAssetId  objectRef?: PdfObjectRef}

Related types: PdfAssetId · PdfObjectRef

IPdfFontCIDVerticalMetricEntry

import type { IPdfFontCIDVerticalMetricEntry } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset

Compact vertical metric range from a CIDFont /W2 array.

Like /W, /W2 supports both CID ranges with one shared metric and explicit metric arrays starting at a first CID.

TypeScript
interface IPdfFontCIDVerticalMetricEntry {  firstCid: number  lastCid?: number  verticalDisplacementY?: number  verticalOrigin?: [number, number]  metrics?: IPdfFontCIDVerticalMetricValue[]}

Related types: IPdfFontCIDVerticalMetricValue

IPdfFontCIDWidthEntry

import type { IPdfFontCIDWidthEntry } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset

Width information from a CIDFont /W array.

PDF supports either explicit width arrays for a first CID or compact ranges with one shared width. Keeping both forms avoids expanding large CJK fonts into huge JSON payloads.

TypeScript
interface IPdfFontCIDWidthEntry {  firstCid: number  lastCid?: number  width?: number  widths?: number[]}

IPdfFontCMapCodeSpaceRange

import type { IPdfFontCMapCodeSpaceRange } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset

PDF CMap code-space range.

Variable-length CMaps decide how raw text bytes become source character codes before /ToUnicode, widths, or embedded font cmaps are consulted.

TypeScript
interface IPdfFontCMapCodeSpaceRange {  start: number  end: number  byteLength: number}

IPdfFontDefaultVerticalMetrics

import type { IPdfFontDefaultVerticalMetrics } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset

CIDFont /DW2 default vertical metrics.

PDF defines this as [verticalOriginY, verticalDisplacementY]; the X origin defaults from the horizontal width and is therefore not stored here.

TypeScript
interface IPdfFontDefaultVerticalMetrics {  verticalOriginY: number  verticalDisplacementY: number}

IPdfFontDescriptorMetrics

import type { IPdfFontDescriptorMetrics } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset

Selected metrics from a PDF FontDescriptor.

These values are kept in native PDF/font units because importers, renderers, and exporters need the original metric space to build browser font wrappers, estimate text advances, and round-trip embedded fonts.

TypeScript
interface IPdfFontDescriptorMetrics {  fontName?: string  flags?: number  fontBBox?: PdfRectPt  italicAngle?: number  ascent?: number  descent?: number  capHeight?: number  xHeight?: number  stemV?: number  avgWidth?: number  maxWidth?: number  missingWidth?: number}

Related types: PdfRectPt

IPdfFontDiagnostics

import type { IPdfFontDiagnostics } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset

Diagnostic hints for PDF font handling.

The importer fills this when it detects a font path that the current front-end renderer can only approximate. Future Rust/Go/backend decoders can consume the same hints to decide which font program or CMap to decode.

TypeScript
interface IPdfFontDiagnostics {  hasToUnicode?: boolean  requiresCMap?: boolean  requiresGlyphProgram?: boolean  requiresShaping?: boolean  fontProgramKind?: string  warnings?: string[]}

IPdfFontUnicodeMapEntry

import type { IPdfFontUnicodeMapEntry } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset

Mapping from a PDF text code or CID to Unicode text.

Composite fonts usually expose this through a /ToUnicode CMap. The code is intentionally numeric so decoders can map it back to CIDs and CFF charsets, while editors can consume the Unicode string directly.

TypeScript
interface IPdfFontUnicodeMapEntry {  code: number  unicode: string}

IPdfGlyphRun

import type { IPdfGlyphRun } from '@univerjs-pro/pdfs' · Used by IPdfTextRun

Optional low-level glyph data preserved from a PDF text run.

Importers can use this for precise visual reconstruction, while semantic text editing can ignore it when Unicode text and style are sufficient.

TypeScript
interface IPdfGlyphRun {  glyphIds?: Array<string | number>  sourceCodes?: number[]  unicode?: string  advances?: number[]  positions?: PdfPoint[]  positionSpace?: 'text-frame'  fontEncoding?: string}

Related types: PdfPoint

IPdfGradient

import type { IPdfGradient } from '@univerjs-pro/pdfs' · Used by IPdfPaint · IPdfShadingAsset

Gradient paint definition.

This is intentionally compact; complex PDF shadings should stay in assets and be referenced until the editor supports semantic gradient editing.

TypeScript
interface IPdfGradient {  type: 'linear' | 'radial'  coords?: number[]  domain?: [number, number]  extend?: [boolean, boolean]  stops: Array<{ offset: number; color: PdfColor; opacity?: number }>  transform?: PdfMatrix}

Related types: PdfColor · PdfMatrix

IPdfGraphicsState

import type { IPdfGraphicsState } from '@univerjs-pro/pdfs' · Used by PdfDisplayOperation

Normalized graphics state for display operations.

Keep low-level PDF state here when it affects rendering or export. Promote it to semantic object fields only when editors can meaningfully manipulate it.

TypeScript
interface IPdfGraphicsState {  ctm?: PdfMatrix  fill?: IPdfPaint  stroke?: IPdfStroke  alpha?: number  blendMode?: string  overprint?: boolean  softMask?: IPdfSoftMaskState  textState?: IPdfTextState}

Related types: PdfMatrix · IPdfPaint · IPdfStroke · IPdfSoftMaskState · IPdfTextState

IPdfImportPageReport

import type { IPdfImportPageReport } from '@univerjs-pro/pdfs' · Used by IPdfImportReport

Page-level import diagnostics.

This is the right place for confidence, fallback, and unsupported-feature counters because PDF import quality often varies page by page.

TypeScript
interface IPdfImportPageReport {  pageIndex: number  pageId?: PdfPageId  status: 'imported' | 'partial' | 'rasterized' | 'failed'  warnings?: IPdfConversionWarning[]  stats?: {    nativeObjectCount?: number    displayOperationCount?: number    semanticObjectCount?: number    candidateObjectCount?: number    contentOperatorCount?: number    unsupportedOperatorCount?: number    contentOperatorCounts?: Record<string, number>    unsupportedOperatorCounts?: Record<string, number>    unsupportedFeatureCounts?: Record<string, number>  }}

Related types: PdfPageId · IPdfConversionWarning

IPdfInkAnnotationGeometry

import type { IPdfInkAnnotationGeometry } from '@univerjs-pro/pdfs' · Used by IPdfAnnotationObject

Freehand ink annotation geometry.

Each path is one stroke from /InkList, already converted into model coordinates. Keeping stroke style here lets simple renderers draw annotations even when the PDF did not provide an appearance stream.

TypeScript
interface IPdfInkAnnotationGeometry {  paths: PdfPoint[][]  stroke?: IPdfStroke}

Related types: PdfPoint · IPdfStroke

IPdfLineAnnotationGeometry

import type { IPdfLineAnnotationGeometry } from '@univerjs-pro/pdfs' · Used by IPdfAnnotationObject

Geometry and style for a PDF /Line annotation.

Points use model coordinates (EMU, top-left origin). Native PDF values such as /L, /LE, and appearance streams can still be preserved through source mappings or metadata for export paths that need exact PDF patching.

TypeScript
interface IPdfLineAnnotationGeometry {  start: PdfPoint  end: PdfPoint  stroke?: IPdfStroke  lineEndings?: [string, string]}

Related types: PdfPoint · IPdfStroke

IPdfLinkAnnotationAction

import type { IPdfLinkAnnotationAction } from '@univerjs-pro/pdfs' · Used by IPdfAnnotationObject · IPdfEditorLinkAnnotationPatch

Link annotation action data.

URI and destination actions are kept separate from generic metadata because editor UI, accessibility, and export code will need stable access to them.

TypeScript
interface IPdfLinkAnnotationAction {  actionType?: string  uri?: string  dest?: PdfJsonValue  pageId?: PdfPageId  border?: IPdfStroke}

Related types: PdfJsonValue · PdfPageId · IPdfStroke

IPdfMarkupAnnotationGeometry

import type { IPdfMarkupAnnotationGeometry } from '@univerjs-pro/pdfs' · Used by IPdfAnnotationObject

Geometry for text markup annotations such as highlight and underline.

PDF stores markup as /QuadPoints in source coordinate order. The model keeps each quad as four top-left EMU points so renderers, hit testing, and future text-range promotion can use the same geometry without re-reading native PDF.

TypeScript
interface IPdfMarkupAnnotationGeometry {  quadPoints: PdfQuadPoints[]  color?: PdfColor  opacity?: number  stroke?: IPdfStroke}

Related types: PdfQuadPoints · PdfColor · IPdfStroke

IPdfNativeSize

import type { IPdfNativeSize } from '@univerjs-pro/pdfs' · Used by PdfDisplayOperation

Width and height in PDF user-space units.

Use this for intrinsic/native resource dimensions such as image pixel counts or Form XObject boxes where converting to EMU would lose PDF semantics.

TypeScript
interface IPdfNativeSize {  width: number  height: number}

IPdfNativeSnapshot

import type { IPdfNativeSnapshot } from '@univerjs-pro/pdfs' · Used by IPdfRawPdfGroupObject

Compact snapshot of native content represented by a model object.

Use this on raw groups or preserved objects to keep enough native context for copy-through export and visual debugging.

TypeScript
interface IPdfNativeSnapshot {  objectRefs?: PdfObjectRef[]  displayListId?: PdfId  qpdfJsonPointer?: string  streamUris?: string[]}

Related types: PdfObjectRef · PdfId

IPdfObjectBase

import type { IPdfObjectBase } from '@univerjs-pro/pdfs' · Used by IPdfRawPdfGroupObject · IPdfTextCandidateObject · IPdfGroupObject · IPdfTextObject · IPdfTextRunObject · IPdfShapeObject · IPdfPathObject · IPdfImageObject · IPdfTableCandidateObject · IPdfTableObject · IPdfChartCandidateObject · IPdfChartObject · IPdfFormulaObject · IPdfAnnotationObject · IPdfFormFieldObject · IPdfRedactionObject · IPdfEmbeddedPageObject

Shared fields for every page object.

Keep cross-cutting capabilities here only when they apply to most object kinds. Feature-specific state should live in the concrete object interface or metadata to avoid forcing every importer to understand it.

TypeScript
interface IPdfObjectBase {  id: PdfObjectId  type: PdfObjectType  origin?: PdfObjectOrigin  editability: PdfEditability  confidence?: number  bbox: PdfRect  transform?: PdfMatrix  clipPathId?: PdfObjectId  name?: string  visible?: boolean  locked?: boolean  source?: IPdfSourceMapping | null  semantic?: IPdfSemanticMetadata  office?: IPdfOfficeInteropMetadata  exportPolicy?: IPdfExportPolicy  revision?: number  deleted?: boolean  metadata?: Record<string, PdfJsonValue>}

Related types: PdfObjectId · PdfObjectType · PdfObjectOrigin · PdfEditability · PdfRect · PdfMatrix · IPdfSourceMapping · IPdfSemanticMetadata · IPdfOfficeInteropMetadata · IPdfExportPolicy · PdfJsonValue

IPdfOfficeInteropMetadata

import type { IPdfOfficeInteropMetadata } from '@univerjs-pro/pdfs' · Used by IPdfTableObject · IPdfObjectBase

Metadata used when an object can round-trip to an Office concept.

Keep this intentionally loose: Office formats evolve independently, so store stable source identifiers and equivalent type hints without mirroring a whole PPTX/DOCX/XLSX schema inside the PDF model.

TypeScript
interface IPdfOfficeInteropMetadata {  sourceKind?: PdfOfficeSourceKind  sourceObjectId?: string  sourcePart?: string  equivalentType?: 'slideShape' | 'docRun' | 'sheetChart' | 'sheetRange' | 'drawing' | 'unknown'  canRoundTrip?: boolean}

Related types: PdfOfficeSourceKind

IPdfParagraph

import type { IPdfParagraph } from '@univerjs-pro/pdfs' · Used by IPdfTextObject · IPdfEditorTextPatch

Paragraph layout over inline run indexes.

This lightweight shape supports simple text boxes; future rich text features should prefer IPdfTextStory blocks and extend them additively.

TypeScript
interface IPdfParagraph {  runIndexes: number[]  align?: 'left' | 'center' | 'right' | 'justify'  lineHeight?: number  baselineOffset?: PdfEmu  indent?: number  spacingBefore?: number  spacingAfter?: number  softLineBreakOffsets?: number[]}

Related types: PdfEmu

IPdfPathCommand

import type { IPdfPathCommand } from '@univerjs-pro/pdfs' · Used by IPdfPathObject · PdfDisplayOperation · IPdfShapeGeometry

TypeScript
type IPdfPathCommand =  | { type: PdfPathCommandType.MOVE_TO; point: PdfPoint }  | { type: PdfPathCommandType.LINE_TO; point: PdfPoint }  | { type: PdfPathCommandType.CUBIC_TO; c1: PdfPoint; c2: PdfPoint; point: PdfPoint }  | { type: PdfPathCommandType.QUAD_TO; c: PdfPoint; point: PdfPoint }  | { type: PdfPathCommandType.RECT; rect: PdfRect }  | { type: PdfPathCommandType.CLOSE }

Related types: PdfPathCommandType.MOVE_TO · PdfPoint · PdfPathCommandType.LINE_TO · PdfPathCommandType.CUBIC_TO · PdfPathCommandType.QUAD_TO · PdfPathCommandType.RECT · PdfRect · PdfPathCommandType.CLOSE

IPdfPathPaint

import type { IPdfPathPaint } from '@univerjs-pro/pdfs' · Used by PdfDisplayOperation

Paint instructions for a display-list or editable path.

This mirrors PDF path painting at a model-friendly level while keeping fill and stroke reusable across semantic objects.

TypeScript
interface IPdfPathPaint {  fill?: IPdfPaint  stroke?: IPdfStroke  fillRule?: PdfFillRule}

Related types: IPdfPaint · IPdfStroke · PdfFillRule

IPdfPdfResourceDictionary

import type { IPdfPdfResourceDictionary } from '@univerjs-pro/pdfs' · Used by IPdfFormXObjectAsset

Normalized view of a PDF resource dictionary.

PDF resource dictionaries are scoped by page, Form XObject, patterns, and appearance streams. This structure keeps resource names and object refs close to the native PDF while allowing importers to attach model asset ids.

TypeScript
interface IPdfPdfResourceDictionary {  fonts?: Record<string, IPdfSourceResourceRef>  xObjects?: Record<string, IPdfXObjectResourceRef>  extGStates?: Record<string, IPdfSourceResourceRef>  colorSpaces?: Record<string, IPdfSourceResourceRef>  patterns?: Record<string, IPdfSourceResourceRef>  shadings?: Record<string, IPdfSourceResourceRef>  properties?: Record<string, IPdfSourceResourceRef>}

Related types: IPdfSourceResourceRef · IPdfXObjectResourceRef

IPdfPopupAnnotationState

import type { IPdfPopupAnnotationState } from '@univerjs-pro/pdfs' · Used by IPdfAnnotationObject

State for a PDF /Popup annotation.

Popup annotations are usually companion UI for another annotation. Their rectangle is not page artwork by itself; renderers should use open and the parent relationship to decide whether to show popup chrome in an annotation interaction layer.

TypeScript
interface IPdfPopupAnnotationState {  parentRef?: PdfObjectRef  parentObjectId?: PdfObjectId  open?: boolean}

Related types: PdfObjectRef · PdfObjectId

IPdfShadingFallbackMesh

import type { IPdfShadingFallbackMesh } from '@univerjs-pro/pdfs' · Used by IPdfShadingAsset

TypeScript
interface IPdfShadingFallbackMesh {  shadingType?: string  bitsPerFlag?: number  bitsPerCoordinate?: number  bitsPerComponent?: number  verticesPerRow?: number  vertexCount: number  bbox?: PdfRectPt  averageColor?: PdfColor  degenerate?: boolean  vertices?: IPdfShadingMeshVertex[]  triangles?: IPdfShadingMeshTriangle[]}

Related types: PdfRectPt · PdfColor · IPdfShadingMeshVertex · IPdfShadingMeshTriangle

IPdfShapeAnnotationGeometry

import type { IPdfShapeAnnotationGeometry } from '@univerjs-pro/pdfs' · Used by IPdfAnnotationObject

Fallback shape style for square/circle annotations without appearance streams.

The annotation object's bbox carries geometry; this payload carries border and interior paint so renderers can draw a standards-like approximation and exporters can later regenerate annotation appearances.

TypeScript
interface IPdfShapeAnnotationGeometry {  border?: IPdfStroke  interiorFill?: IPdfPaint}

Related types: IPdfStroke · IPdfPaint

IPdfShapeGeometry

import type { IPdfShapeGeometry } from '@univerjs-pro/pdfs' · Used by IPdfShapeObject

Shape geometry payload.

Presets cover common Office-like shapes, paths cover custom geometry, and adjustments provide an additive extension point for parametric shapes.

TypeScript
interface IPdfShapeGeometry {  preset?: string  path?: IPdfPathCommand[]  adjustments?: Record<string, number>}

Related types: IPdfPathCommand

IPdfSourceResourceRef

import type { IPdfSourceResourceRef } from '@univerjs-pro/pdfs' · Used by IPdfSourceMapping · IPdfPdfResourceDictionary · IPdfXObjectResourceRef

Reference to a PDF resource used by a source span.

The shape allows a resource to be identified by PDF name, object ref, asset, or any combination of those, which keeps it usable across parser pipelines.

TypeScript
interface IPdfSourceResourceRef {  kind: PdfSourceResourceKind  name?: string  ref?: PdfObjectRef  assetId?: PdfAssetId}

Related types: PdfSourceResourceKind · PdfObjectRef · PdfAssetId

IPdfTableCell

import type { IPdfTableCell } from '@univerjs-pro/pdfs' · Used by IPdfTableObject

Cell definition for an editable table.

Cells reference child objects so text, images, formulas, or future embedded content can live inside the table without inventing separate cell payloads.

TypeScript
interface IPdfTableCell {  id: PdfId  rowId: PdfId  columnId: PdfId  rowSpan: number  columnSpan: number  contentStoryId: PdfTextStoryId  style?: IPdfTableCellStyle}

Related types: PdfId · PdfTextStoryId · IPdfTableCellStyle

IPdfTableCellStyle

import type { IPdfTableCellStyle } from '@univerjs-pro/pdfs' · Used by IPdfTableObject · IPdfTableCell

Visual and text-frame properties inherited or overridden by one cell.

TypeScript
interface IPdfTableCellStyle {  fill?: IPdfPaint  borders?: IPdfTableBorders  padding?: IPdfTablePadding  verticalAlign?: PdfTableCellVerticalAlign}

Related types: IPdfPaint · IPdfTableBorders · IPdfTablePadding · PdfTableCellVerticalAlign

IPdfTableColumn

import type { IPdfTableColumn } from '@univerjs-pro/pdfs' · Used by IPdfTableObject

Column definition for an editable table.

Column metadata is separated from cells to support future resizing, hidden-column behavior, and spreadsheet-like export decisions.

TypeScript
interface IPdfTableColumn {  id: PdfId  width: PdfEmu}

Related types: PdfId · PdfEmu

IPdfTableRow

import type { IPdfTableRow } from '@univerjs-pro/pdfs' · Used by IPdfTableObject

Row definition for an editable table.

Keep row layout independent from cells so future row styles, resizing, and Office table imports can extend rows without duplicating data per cell.

TypeScript
interface IPdfTableRow {  id: PdfId  height: PdfEmu  autoFitMinHeight?: PdfEmu}

Related types: PdfId · PdfEmu

IPdfTableStyleOptions

import type { IPdfTableStyleOptions } from '@univerjs-pro/pdfs' · Used by IPdfTableObject · IPdfEditorObjectStylePatch

Conditional regions used by table themes.

TypeScript
interface IPdfTableStyleOptions {  firstRow?: boolean  firstCol?: boolean  lastRow?: boolean  lastCol?: boolean  bandRow?: boolean  bandCol?: boolean}

IPdfTextListItem

import type { IPdfTextListItem } from '@univerjs-pro/pdfs' · Used by IPdfTextBlock · IPdfEditorTextBlockPatch

List membership attached to one text block.

Body text remains in runIds; exporters and renderers derive the label from this metadata and the referenced list definition.

TypeScript
interface IPdfTextListItem {  listId: PdfTextListId  level: number  restartAt?: number  valueOverride?: number  importedLabel?: string  sourceLabelObjectIds?: PdfObjectId[]}

Related types: PdfTextListId · PdfObjectId

IPdfTextListLevel

import type { IPdfTextListLevel } from '@univerjs-pro/pdfs' · Used by IPdfTextListDefinition

Marker and body layout rules for one zero-based list level.

Geometry uses the PDF model's EMU unit. Typography inside markerTextStyle keeps the same units as IPdfTextRun.

TypeScript
interface IPdfTextListLevel {  level: number  markerStyle: PdfListMarkerStyle  markerFormat?: string  markerGlyph?: string  markerAlignment?: PdfListMarkerAlignment  startAt?: number  markerColumnWidth?: PdfEmu  markerGap?: PdfEmu  textIndent?: PdfEmu  hangingIndent?: PdfEmu  markerTextStyle?: Partial<IPdfTextRun>}

Related types: PdfListMarkerStyle · PdfListMarkerAlignment · PdfEmu · IPdfTextRun

IPdfTextState

import type { IPdfTextState } from '@univerjs-pro/pdfs' · Used by PdfDisplayOperation · IPdfGraphicsState

Text-specific graphics state captured from PDF operators.

These fields are useful for faithful rendering and candidate extraction; rich editable text should copy stable values into IPdfTextRun.

TypeScript
interface IPdfTextState {  fontId?: PdfAssetId  fontSize?: number  charSpacing?: number  wordSpacing?: number  horizontalScale?: number  leading?: number  renderingMode?: number  rise?: number}

Related types: PdfAssetId

IPdfWidgetAnnotationState

import type { IPdfWidgetAnnotationState } from '@univerjs-pro/pdfs' · Used by IPdfAnnotationObject

Widget annotation data linking page chrome to an AcroForm field object.

Widgets are visual annotations. Form fields are semantic state. This bridge lets the same field own multiple widgets, while each widget keeps appearance state and page-level bounds.

TypeScript
interface IPdfWidgetAnnotationState {  fieldObjectId?: PdfObjectId  fieldRef?: PdfObjectRef  fieldName?: string  fieldType?: PdfFormFieldType  value?: PdfJsonValue  defaultValue?: PdfJsonValue  choices?: string[]  maxLength?: number  appearanceState?: string  onValue?: string  normalAppearanceRef?: PdfObjectRef  normalAppearanceAssetId?: PdfAssetId  normalAppearanceDisplayListId?: PdfDisplayListId  defaultAppearance?: IPdfAcroFormDefaultAppearance  needsAppearance?: boolean  flags?: number  quadding?: number  backgroundColor?: PdfColor  borderColor?: PdfColor  borderWidth?: number}

Related types: PdfObjectId · PdfObjectRef · PdfFormFieldType · PdfJsonValue · PdfAssetId · PdfDisplayListId · IPdfAcroFormDefaultAppearance · PdfColor

PdfAnnotationType

import { PdfAnnotationType } from '@univerjs-pro/pdfs' · Used by IPdfAnnotationObject

Supported PDF annotation families. Keep annotation-specific payload fields in interfaces so this enum can grow without forcing one giant union immediately.

TypeScript
enum PdfAnnotationType {  TEXT = 'text',  POPUP = 'popup',  LINK = 'link',  FREE_TEXT = 'freeText',  LINE = 'line',  SQUARE = 'square',  CIRCLE = 'circle',  POLYGON = 'polygon',  POLYLINE = 'polyline',  HIGHLIGHT = 'highlight',  UNDERLINE = 'underline',  STRIKEOUT = 'strikeout',  SQUIGGLY = 'squiggly',  STAMP = 'stamp',  INK = 'ink',  FILE_ATTACHMENT = 'fileAttachment',  WIDGET = 'widget',}

PdfAssetType

import { PdfAssetType } from '@univerjs-pro/pdfs' · Used by IPdfFontAsset · IPdfImageAsset · IPdfFormXObjectAsset · IPdfColorProfileAsset · IPdfPatternAsset · IPdfShadingAsset · IPdfAttachmentAsset · IPdfStreamAsset · IPdfAssetBase

Asset buckets stored beside the object model. New asset kinds should map to durable binary/resource concepts, not temporary cache entries.

TypeScript
enum PdfAssetType {  FONT = 'font',  IMAGE = 'image',  FORM_XOBJECT = 'formXObject',  COLOR_PROFILE = 'colorProfile',  PATTERN = 'pattern',  SHADING = 'shading',  ATTACHMENT = 'attachment',  STREAM = 'stream',}

PdfColor

import type { PdfColor } from '@univerjs-pro/pdfs' · Used by IPdfPaint · IPdfStroke · IPdfTextRun · IPdfOutlineStyle · IPdfGradient · IPdfMarkupAnnotationGeometry · IPdfWidgetAnnotationState · IPdfShadingFallbackMesh · IPdfAcroFormDefaultAppearance · IPdfShadingMeshVertex

TypeScript
type PdfColor = string | number[]

PdfDisplayOpType

import { PdfDisplayOpType } from '@univerjs-pro/pdfs' · Used by PdfDisplayOperation

Normalized display-list operation kinds. These should remain close to PDF rendering semantics so importers can preserve unknown content faithfully.

TypeScript
enum PdfDisplayOpType {  SAVE_STATE = 'saveState',  RESTORE_STATE = 'restoreState',  TRANSFORM = 'transform',  SET_GRAPHICS_STATE = 'setGraphicsState',  CLIP = 'clip',  PATH = 'path',  TEXT = 'text',  IMAGE = 'image',  SHADING = 'shading',  FORM_XOBJECT = 'formXObject',  MARKED_CONTENT_BEGIN = 'markedContentBegin',  MARKED_CONTENT_END = 'markedContentEnd',}

PdfEmu

import type { PdfEmu } from '@univerjs-pro/pdfs' · Used by IPdfSize · IPdfTextObject · IPdfTextBlock · IPdfParagraph · IPdfTableRow · IPdfTableColumn · IPdfTextListLevel · PdfRectEmu · IPdfTablePadding · PdfPointEmu

TypeScript
type PdfEmu = number

PdfExportPageStrategy

import { PdfExportPageStrategy } from '@univerjs-pro/pdfs' · Used by IPdfPageExportPlan

Page-level export strategy. Page strategies can combine many object policies, so future values should stay coarse-grained and writer-oriented.

TypeScript
enum PdfExportPageStrategy {  COPY_SOURCE_PAGE = 'copy-source-page',  COPY_AND_APPEND_OVERLAY = 'copy-and-append-overlay',  REWRITE_CONTENT_STREAM = 'rewrite-content-stream',  REBUILD_VECTOR_PAGE = 'rebuild-vector-page',  RASTERIZE_PAGE = 'rasterize-page',}

PdfFillRule

import { PdfFillRule } from '@univerjs-pro/pdfs' · Used by IPdfPathObject · PdfDisplayOperation · IPdfPathPaint

Fill rules shared by PDF paths, SVG-like geometry, and canvas rendering.

TypeScript
enum PdfFillRule {  NONZERO = 'nonzero',  EVENODD = 'evenodd',}

PdfFormFieldType

import { PdfFormFieldType } from '@univerjs-pro/pdfs' · Used by IPdfFormFieldObject · IPdfEditorFormFieldPatch · IPdfWidgetAnnotationState

Form field control families. Future widget-specific behavior should extend field metadata instead of overloading these broad control types.

TypeScript
enum PdfFormFieldType {  TEXT = 'text',  BUTTON = 'button',  CHECKBOX = 'checkbox',  RADIO = 'radio',  CHOICE = 'choice',  SIGNATURE = 'signature',}

PdfImageMaskKind

import { PdfImageMaskKind } from '@univerjs-pro/pdfs' · Used by IPdfImageAsset

PDF image mask families. Keep masks explicit so renderers and exporters can choose between native preservation, decoded alpha, or raster fallback.

TypeScript
enum PdfImageMaskKind {  NONE = 'none',  IMAGE_MASK = 'imageMask',  COLOR_KEY_MASK = 'colorKeyMask',  EXPLICIT_MASK = 'explicitMask',  SOFT_MASK = 'softMask',  SMASK_IN_DATA = 'sMaskInData',}

PdfImageSourceKind

import { PdfImageSourceKind } from '@univerjs-pro/pdfs' · Used by IPdfImageAsset

Describes where an image asset's bytes came from before any decoder creates front-end friendly derivatives.

TypeScript
enum PdfImageSourceKind {  XOBJECT = 'xObject',  INLINE = 'inline',  GENERATED = 'generated',}

PdfLayerType

import { PdfLayerType } from '@univerjs-pro/pdfs' · Used by IPdfLayer

Logical rendering/editing layer categories. Add new layer types when the UI or exporter needs a distinct visibility/locking/export behavior.

TypeScript
enum PdfLayerType {  NATIVE_PDF = 'nativePdf',  EDITABLE = 'editable',  ANNOTATION = 'annotation',  REDACTION = 'redaction',  GUIDE = 'guide',}

PdfListKind

import { PdfListKind } from '@univerjs-pro/pdfs' · Used by IPdfTextListDefinition

Semantic family of a generated text-list marker.

Values are persisted in PDF JSON. New list families must be introduced as additive values so collaborative mutations can continue to replay old data.

TypeScript
enum PdfListKind {  UNORDERED = 'unordered',  ORDERED = 'ordered',}

PdfObjectType

import { PdfObjectType } from '@univerjs-pro/pdfs' · Used by IPdfRawPdfGroupObject · IPdfTextCandidateObject · IPdfGroupObject · IPdfTextObject · IPdfTextRunObject · IPdfShapeObject · IPdfPathObject · IPdfImageObject · IPdfTableCandidateObject · IPdfTableObject · IPdfChartCandidateObject · IPdfChartObject · IPdfFormulaObject · IPdfAnnotationObject · IPdfFormFieldObject · IPdfRedactionObject · IPdfEmbeddedPageObject · IPdfObjectBase

Object kinds stored in the page object graph. Treat values as persisted JSON protocol keys; extend by adding new values instead of changing existing ones.

TypeScript
enum PdfObjectType {  RAW_PDF_GROUP = 'rawPdfGroup',  PDF_TEXT_CANDIDATE = 'pdfTextCandidate',  GROUP = 'group',  TEXT_BOX = 'textBox',  TEXT_RUN = 'textRun',  SHAPE = 'shape',  PATH = 'path',  IMAGE = 'image',  TABLE_CANDIDATE = 'tableCandidate',  TABLE = 'table',  CHART_CANDIDATE = 'chartCandidate',  CHART = 'chart',  FORMULA = 'formula',  ANNOTATION = 'annotation',  FORM_FIELD = 'formField',  REDACTION = 'redaction',  EMBEDDED_PAGE = 'embeddedPage',}

PdfOutlineDestinationFit

import type { PdfOutlineDestinationFit } from '@univerjs-pro/pdfs' · Used by IPdfOutlineDestination

Bookmark/outline entry.

The tree shape mirrors PDF outlines while staying simple enough to map to Office navigation or future document outline panels.

TypeScript
type PdfOutlineDestinationFit =  | 'XYZ'  | 'Fit'  | 'FitH'  | 'FitV'  | 'FitR'  | 'FitB'  | 'FitBH'  | 'FitBV'

PdfPt

import type { PdfPt } from '@univerjs-pro/pdfs' · Used by IPdfTextRun · IPdfOutlineDestination · PdfRectPt

TypeScript
type PdfPt = number

PdfRectEmu

import type { PdfRectEmu } from '@univerjs-pro/pdfs' · Used by PdfRect

TypeScript
type PdfRectEmu = [PdfEmu, PdfEmu, PdfEmu, PdfEmu]

Related types: PdfEmu

PdfSemanticRole

import { PdfSemanticRole } from '@univerjs-pro/pdfs' · Used by IPdfTextBlock · IPdfStructNode · IPdfEditorTextBlockPatch · IPdfSemanticMetadata

Semantic roles used for accessibility, reading order, and Office conversion. Values should stay format-neutral so they can map to tagged PDF and Office.

TypeScript
enum PdfSemanticRole {  ARTIFACT = 'artifact',  PARAGRAPH = 'paragraph',  HEADING = 'heading',  LIST = 'list',  LIST_ITEM = 'listItem',  LIST_LABEL = 'listLabel',  LIST_BODY = 'listBody',  TABLE = 'table',  TABLE_ROW = 'tableRow',  TABLE_HEADER_CELL = 'tableHeaderCell',  TABLE_DATA_CELL = 'tableDataCell',  FIGURE = 'figure',  FORMULA = 'formula',  CHART = 'chart',  SHAPE = 'shape',  FOOTNOTE = 'footnote',  HEADER = 'header',  FOOTER = 'footer',}

PdfTextAnchor

import { PdfTextAnchor } from '@univerjs-pro/pdfs' · Used by IPdfTextObject · IPdfEditorObjectStylePatch

Horizontal anchoring for editable semantic text boxes.

Values intentionally mirror common text layout anchors instead of PDF operator details, so editor UI, collaboration payloads, and Office conversion can share one stable model enum.

TypeScript
enum PdfTextAnchor {  START = 'start',  MIDDLE = 'middle',  END = 'end',}

PdfXObjectSubtype

import { PdfXObjectSubtype } from '@univerjs-pro/pdfs' · Used by IPdfImageAsset · IPdfFormXObjectAsset · IPdfXObjectResourceRef

PDF XObject subtypes defined by the source resource dictionary. Keep these values close to PDF names while using model-friendly persisted keys.

TypeScript
enum PdfXObjectSubtype {  IMAGE = 'image',  FORM = 'form',  POSTSCRIPT = 'postScript',  UNKNOWN = 'unknown',}

IPdfAcroFormDefaultAppearance

import type { IPdfAcroFormDefaultAppearance } from '@univerjs-pro/pdfs' · Used by IPdfWidgetAnnotationState

Parsed AcroForm default appearance (/DA) text state.

/DA is a compact PDF content snippet, usually containing font selection and fill color for widget text. Keeping both the raw string and parsed fields lets renderers draw a useful synthetic fallback while exporters can preserve the original appearance command.

TypeScript
interface IPdfAcroFormDefaultAppearance {  raw?: string  fontResourceName?: string  fontAssetId?: PdfAssetId  fontSize?: number  fillColor?: PdfColor}

Related types: PdfAssetId · PdfColor

IPdfFontCIDVerticalMetricValue

import type { IPdfFontCIDVerticalMetricValue } from '@univerjs-pro/pdfs' · Used by IPdfFontCIDVerticalMetricEntry

One vertical metric tuple from a CIDFont /W2 array.

PDF stores the vertical displacement as a signed Y value, commonly negative. Renderers can convert it to a positive cursor advance, while exporters can still round-trip the PDF-native value.

TypeScript
interface IPdfFontCIDVerticalMetricValue {  verticalDisplacementY: number  verticalOrigin?: [number, number]}

IPdfSemanticMetadata

import type { IPdfSemanticMetadata } from '@univerjs-pro/pdfs' · Used by IPdfObjectBase

Format-neutral semantic information for accessibility and conversion.

This should map to tagged PDF, Office structure, and future semantic engines without depending on one renderer's internal representation.

TypeScript
interface IPdfSemanticMetadata {  role?: PdfSemanticRole  language?: string  altText?: string  actualText?: string  readingOrder?: number  taggedPdfPath?: PdfId[]}

Related types: PdfSemanticRole · PdfId

IPdfShadingMeshTriangle

import type { IPdfShadingMeshTriangle } from '@univerjs-pro/pdfs' · Used by IPdfShadingFallbackMesh

Triangle topology for a decoded shading mesh.

Indices reference IPdfShadingFallbackMesh.vertices. Keeping topology separate from vertex data avoids duplicating colors and positions.

TypeScript
interface IPdfShadingMeshTriangle {  vertices: [number, number, number]}

IPdfShadingMeshVertex

import type { IPdfShadingMeshVertex } from '@univerjs-pro/pdfs' · Used by IPdfShadingFallbackMesh

Decoded vertex for a Gouraud mesh shading.

Coordinates are preserved in decoded PDF user units, not EMUs or CSS pixels, so renderers can apply the active CTM and page transform consistently.

TypeScript
interface IPdfShadingMeshVertex {  x: number  y: number  color: PdfColor  flag?: number}

Related types: PdfColor

IPdfSoftMaskState

import type { IPdfSoftMaskState } from '@univerjs-pro/pdfs' · Used by IPdfGraphicsState

Structured PDF /SMask graphics state.

The group reference points to the Form XObject that defines the mask. Early renderers may use backdropColor as a fallback alpha, while precise renderers can rasterize the group and apply it as an alpha or luminosity mask.

TypeScript
interface IPdfSoftMaskState {  subtype?: string  groupRef?: PdfObjectRef  backdropColor?: number[]  transferFunctionRef?: PdfObjectRef  raw?: PdfJsonValue}

Related types: PdfObjectRef · PdfJsonValue

IPdfTableBorders

import type { IPdfTableBorders } from '@univerjs-pro/pdfs' · Used by IPdfTableCellStyle

Independent strokes for the four visible edges of a table cell.

TypeScript
interface IPdfTableBorders {  top?: IPdfStroke  right?: IPdfStroke  bottom?: IPdfStroke  left?: IPdfStroke}

Related types: IPdfStroke

IPdfTablePadding

import type { IPdfTablePadding } from '@univerjs-pro/pdfs' · Used by IPdfTableCellStyle

Cell content insets in EMU.

TypeScript
interface IPdfTablePadding {  top: PdfEmu  right: PdfEmu  bottom: PdfEmu  left: PdfEmu}

Related types: PdfEmu

IPdfXObjectResourceRef

import type { IPdfXObjectResourceRef } from '@univerjs-pro/pdfs' · Used by IPdfPdfResourceDictionary

Resource-dictionary entry for a PDF XObject.

XObjects are invoked by the Do operator and can be images, forms, or rarer PostScript objects. The subtype is kept separate from the asset id because a decoder may choose to preserve unsupported XObjects as native resources.

TypeScript
interface IPdfXObjectResourceRef extends IPdfSourceResourceRef {  kind: 'XObject'  subtype: PdfXObjectSubtype  width?: number  height?: number  bbox?: PdfRectPt  matrix?: PdfMatrix}

Related types: IPdfSourceResourceRef · PdfXObjectSubtype · PdfRectPt · PdfMatrix

PdfEditability

import { PdfEditability } from '@univerjs-pro/pdfs' · Used by IPdfObjectBase

High-level editing contract for an object. Exporters and UI should use this as a capability hint, while feature-specific permissions can be added later.

TypeScript
enum PdfEditability {  RAW = 'raw',  VISUAL_ONLY = 'visual-only',  SEMANTIC = 'semantic',  NATIVE_PATCHABLE = 'native-patchable',}

PdfListMarkerAlignment

import { PdfListMarkerAlignment } from '@univerjs-pro/pdfs' · Used by IPdfTextListLevel

Horizontal alignment of a generated label inside its marker column.

This controls layout only; it does not change list numbering semantics.

TypeScript
enum PdfListMarkerAlignment {  START = 'start',  CENTER = 'center',  END = 'end',}

PdfListMarkerStyle

import { PdfListMarkerStyle } from '@univerjs-pro/pdfs' · Used by IPdfTextListLevel

Marker semantics for one PDF text-list level.

Ordered values align with Tagged PDF ListNumbering names where possible. DECIMAL_ZERO and CUSTOM are additive editor extensions that exporters can lower to visible label text while preserving list structure.

TypeScript
enum PdfListMarkerStyle {  NONE = 'none',  DISC = 'disc',  CIRCLE = 'circle',  SQUARE = 'square',  DECIMAL = 'decimal',  DECIMAL_ZERO = 'decimalZero',  LOWER_ROMAN = 'lowerRoman',  UPPER_ROMAN = 'upperRoman',  LOWER_ALPHA = 'lowerAlpha',  UPPER_ALPHA = 'upperAlpha',  CUSTOM = 'custom',}

PdfObjectOrigin

import { PdfObjectOrigin } from '@univerjs-pro/pdfs' · Used by IPdfObjectBase

Describes where an object came from. New origins should explain provenance, not editability; editability belongs in PdfEditability.

TypeScript
enum PdfObjectOrigin {  IMPORTED_NATIVE = 'imported-native',  INFERRED = 'inferred',  USER_CREATED = 'user-created',  OFFICE_IMPORTED = 'office-imported',}

PdfPathCommandType

import { PdfPathCommandType } from '@univerjs-pro/pdfs' · Used by IPdfPathCommand

Vector path command kinds used by shapes, clipping paths, and display lists. Add commands only when they represent reusable model geometry.

TypeScript
enum PdfPathCommandType {  MOVE_TO = 'moveTo',  LINE_TO = 'lineTo',  CUBIC_TO = 'cubicTo',  QUAD_TO = 'quadTo',  RECT = 'rect',  CLOSE = 'close',}

PdfPoint

import type { PdfPoint } from '@univerjs-pro/pdfs' · Used by IPdfPathCommand · IPdfLineAnnotationGeometry · IPdfInkAnnotationGeometry · IPdfGlyphRun · PdfQuadPoints

TypeScript
type PdfPoint = PdfPointEmu

Related types: PdfPointEmu

PdfQuadPoints

import type { PdfQuadPoints } from '@univerjs-pro/pdfs' · Used by IPdfMarkupAnnotationGeometry

TypeScript
type PdfQuadPoints = [PdfPoint, PdfPoint, PdfPoint, PdfPoint]

Related types: PdfPoint

PdfSourceResourceKind

import type { PdfSourceResourceKind } from '@univerjs-pro/pdfs' · Used by IPdfSourceResourceRef

TypeScript
type PdfSourceResourceKind =  | 'Font'  | 'XObject'  | 'ExtGState'  | 'Pattern'  | 'Shading'  | 'ColorSpace'  | 'Properties'

PdfTableCellVerticalAlign

import { PdfTableCellVerticalAlign } from '@univerjs-pro/pdfs' · Used by IPdfTableCellStyle

Vertical placement of a text story inside a structured table cell.

Horizontal alignment remains a paragraph property because different paragraphs in the same cell can use different alignment values.

TypeScript
enum PdfTableCellVerticalAlign {  TOP = 'top',  MIDDLE = 'middle',  BOTTOM = 'bottom',}

PdfPointEmu

import type { PdfPointEmu } from '@univerjs-pro/pdfs' · Used by PdfPoint

TypeScript
type PdfPointEmu = [PdfEmu, PdfEmu]

Related types: PdfEmu

Насколько полезно это руководство?

© 2026 DreamNum Co., Ltd.