# PDFs sub-types

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

> Language fallback: requested `ru-RU`; content is `en-US`.

- Human documentation: [https://docs.univer.ai/ru-RU/reference/types/pdfs-types](https://docs.univer.ai/ru-RU/reference/types/pdfs-types)

- Agent Markdown: [https://docs.univer.ai/ru-RU/reference/types/pdfs-types.md](https://docs.univer.ai/ru-RU/reference/types/pdfs-types.md)

- Requested language: `ru-RU`

- Content language: `en-US`

- Documentation version: `1.6.2`

- Source: [types/pdfs-types.mdx](https://github.com/dream-num/documentation/blob/dev/content/reference/types/pdfs-types.mdx)

---

Composite types referenced by PDF unit snapshots, document shells, pages, elements, and edit state. Supporting [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md). Types are ordered from direct top-level fields to deeper nested structures and enums.

## Overview [#overview]

| Type | Kind | Used by |
| --- | --- | --- |
| [`IPdfCapabilityReport`](#ipdfcapabilityreport) | `interface` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) |
| [`IPdfDocument`](#ipdfdocument) | `interface` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) |
| [`IPdfDocumentShell`](#ipdfdocumentshell) | `interface` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) |
| [`IPdfDurableEditState`](#ipdfdurableeditstate) | `interface` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) |
| [`IPdfFragmentArtifactBinding`](#ipdffragmentartifactbinding) | `interface` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) |
| [`IPdfSourceDocumentRef`](#ipdfsourcedocumentref) | `interface` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) |
| [`IPdfUnitFragmentIndex`](#ipdfunitfragmentindex) | `interface` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) |
| [`PdfAssetId`](#pdfassetid) | `type` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md), [`IPdfSourceDocumentRef`](#ipdfsourcedocumentref), [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfDocumentSource`](#ipdfdocumentsource) |
| [`PdfDurableResourceBinding`](#pdfdurableresourcebinding) | `type` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) |
| [`PdfJsonValue`](#pdfjsonvalue) | `type` | [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md), [`IPdfDocument`](#ipdfdocument), [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfCapabilityReport`](#ipdfcapabilityreport) |
| [`IPdfAssetStore`](#ipdfassetstore) | `interface` | [`IPdfDocument`](#ipdfdocument) |
| [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) | `interface` | [`IPdfCapabilityReport`](#ipdfcapabilityreport) |
| [`IPdfCollaborationState`](#ipdfcollaborationstate) | `interface` | [`IPdfDocument`](#ipdfdocument) |
| [`IPdfConversionState`](#ipdfconversionstate) | `interface` | [`IPdfDocument`](#ipdfdocument), [`IPdfDocumentShell`](#ipdfdocumentshell) |
| [`IPdfDisplayList`](#ipdfdisplaylist) | `interface` | [`IPdfDocument`](#ipdfdocument), [`IPdfDurableEditState`](#ipdfdurableeditstate) |
| [`IPdfDocumentCoordinate`](#ipdfdocumentcoordinate) | `interface` | [`IPdfDocument`](#ipdfdocument), [`IPdfDocumentShell`](#ipdfdocumentshell) |
| [`IPdfDocumentSource`](#ipdfdocumentsource) | `interface` | [`IPdfDocument`](#ipdfdocument), [`IPdfDocumentShell`](#ipdfdocumentshell) |
| [`IPdfEditorManagedImageResource`](#ipdfeditormanagedimageresource) | `interface` | [`IPdfDurableEditState`](#ipdfdurableeditstate) |
| [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) | `interface` | [`IPdfDurableEditState`](#ipdfdurableeditstate) |
| [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject) | `interface` | [`IPdfDurableEditState`](#ipdfdurableeditstate) |
| [`IPdfEditorPagePatch`](#ipdfeditorpagepatch) | `interface` | [`IPdfDurableEditState`](#ipdfdurableeditstate) |
| [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) | `interface` | [`IPdfDurableEditState`](#ipdfdurableeditstate) |
| [`IPdfEditState`](#ipdfeditstate) | `interface` | [`IPdfDocument`](#ipdfdocument) |
| [`IPdfExportPlan`](#ipdfexportplan) | `interface` | [`IPdfDocument`](#ipdfdocument) |
| [`IPdfLogicalStructure`](#ipdflogicalstructure) | `interface` | [`IPdfDocument`](#ipdfdocument) |
| [`IPdfNativePackage`](#ipdfnativepackage) | `interface` | [`IPdfDocument`](#ipdfdocument) |
| [`IPdfNativeResourceBinding`](#ipdfnativeresourcebinding) | `interface` | [`PdfDurableResourceBinding`](#pdfdurableresourcebinding) |
| [`IPdfOperationEnvelope`](#ipdfoperationenvelope) | `interface` | [`IPdfDocument`](#ipdfdocument) |
| [`IPdfOutlineItem`](#ipdfoutlineitem) | `interface` | [`IPdfDocument`](#ipdfdocument), [`IPdfDocumentShell`](#ipdfdocumentshell) |
| [`IPdfPage`](#ipdfpage) | `interface` | [`IPdfDocument`](#ipdfdocument), [`IPdfEditorPagePatch`](#ipdfeditorpagepatch) |
| [`IPdfPageBlockIndexEntry`](#ipdfpageblockindexentry) | `interface` | [`IPdfDocumentShell`](#ipdfdocumentshell) |
| [`IPdfPageDirectoryEntry`](#ipdfpagedirectoryentry) | `interface` | [`IPdfDocumentShell`](#ipdfdocumentshell) |
| [`IPdfReplacementLink`](#ipdfreplacementlink) | `interface` | [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfEditState`](#ipdfeditstate) |
| [`IPdfSharedFragmentIndexEntry`](#ipdfsharedfragmentindexentry) | `interface` | [`IPdfDocumentShell`](#ipdfdocumentshell) |
| [`IPdfSourceSuppression`](#ipdfsourcesuppression) | `interface` | [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfEditState`](#ipdfeditstate) |
| [`IPdfStyleStore`](#ipdfstylestore) | `interface` | [`IPdfDocument`](#ipdfdocument) |
| [`IPdfTextStory`](#ipdftextstory) | `interface` | [`IPdfDocument`](#ipdfdocument), [`IPdfDurableEditState`](#ipdfdurableeditstate) |
| [`IPdfUniverserResourceBinding`](#ipdfuniverserresourcebinding) | `interface` | [`PdfDurableResourceBinding`](#pdfdurableresourcebinding) |
| [`PdfDisplayListId`](#pdfdisplaylistid) | `type` | [`IPdfDocument`](#ipdfdocument), [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfDisplayList`](#ipdfdisplaylist), [`IPdfSourceSuppression`](#ipdfsourcesuppression) |
| [`PdfDocumentId`](#pdfdocumentid) | `type` | [`IPdfDocument`](#ipdfdocument), [`IPdfDurableEditState`](#ipdfdurableeditstate) |
| [`PdfEditId`](#pdfeditid) | `type` | [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfEditState`](#ipdfeditstate), [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject), [`IPdfSourceSuppression`](#ipdfsourcesuppression) |
| [`PdfFragmentArtifactKind`](#pdffragmentartifactkind) | `type` | [`IPdfFragmentArtifactBinding`](#ipdffragmentartifactbinding) |
| [`PdfId`](#pdfid) | `type` | [`PdfAssetId`](#pdfassetid), [`PdfSourceId`](#pdfsourceid), [`PdfDocumentId`](#pdfdocumentid), [`IPdfDocumentSource`](#ipdfdocumentsource) |
| [`PdfJsonPrimitive`](#pdfjsonprimitive) | `type` | [`PdfJsonValue`](#pdfjsonvalue) |
| [`PdfObject`](#pdfobject) | `type` | [`IPdfDocument`](#ipdfdocument), [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject) |
| [`PdfObjectId`](#pdfobjectid) | `type` | [`IPdfDocument`](#ipdfdocument), [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfTextStory`](#ipdftextstory), [`IPdfCollaborationState`](#ipdfcollaborationstate) |
| [`PdfPageId`](#pdfpageid) | `type` | [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfUnitFragmentIndex`](#ipdfunitfragmentindex), [`IPdfPage`](#ipdfpage), [`IPdfDisplayList`](#ipdfdisplaylist) |
| [`PdfSourceId`](#pdfsourceid) | `type` | [`IPdfSourceDocumentRef`](#ipdfsourcedocumentref), [`IPdfDocument`](#ipdfdocument), [`IPdfDocumentShell`](#ipdfdocumentshell), [`IPdfDocumentSource`](#ipdfdocumentsource) |
| [`PdfTextStoryId`](#pdftextstoryid) | `type` | [`IPdfDocument`](#ipdfdocument), [`IPdfDurableEditState`](#ipdfdurableeditstate), [`IPdfTextStory`](#ipdftextstory), [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) |
| [`IPdfAnnotationObject`](#ipdfannotationobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfAttachmentAsset`](#ipdfattachmentasset) | `interface` | [`IPdfAssetStore`](#ipdfassetstore) |
| [`IPdfChartCandidateObject`](#ipdfchartcandidateobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfChartObject`](#ipdfchartobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfColorProfileAsset`](#ipdfcolorprofileasset) | `interface` | [`IPdfAssetStore`](#ipdfassetstore) |
| [`IPdfConversionWarning`](#ipdfconversionwarning) | `interface` | [`IPdfConversionState`](#ipdfconversionstate), [`IPdfImportPageReport`](#ipdfimportpagereport) |
| [`IPdfEditorAnnotationPatch`](#ipdfeditorannotationpatch) | `interface` | [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) |
| [`IPdfEditorFormFieldPatch`](#ipdfeditorformfieldpatch) | `interface` | [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) |
| [`IPdfEditorImagePatch`](#ipdfeditorimagepatch) | `interface` | [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) |
| [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch) | `interface` | [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) |
| [`IPdfEditorTextBlockPatch`](#ipdfeditortextblockpatch) | `interface` | [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) |
| [`IPdfEditorTextPatch`](#ipdfeditortextpatch) | `interface` | [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) |
| [`IPdfEditorTextStoryBlockInsertion`](#ipdfeditortextstoryblockinsertion) | `interface` | [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) |
| [`IPdfEditorTextStoryRunEdit`](#ipdfeditortextstoryrunedit) | `interface` | [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) |
| [`IPdfEmbeddedPageObject`](#ipdfembeddedpageobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfExportPolicy`](#ipdfexportpolicy) | `interface` | [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch), [`IPdfObjectBase`](#ipdfobjectbase) |
| [`IPdfExportSummary`](#ipdfexportsummary) | `interface` | [`IPdfConversionState`](#ipdfconversionstate) |
| [`IPdfFontAsset`](#ipdffontasset) | `interface` | [`IPdfAssetStore`](#ipdfassetstore) |
| [`IPdfFormFieldObject`](#ipdfformfieldobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfFormulaObject`](#ipdfformulaobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) | `interface` | [`IPdfAssetStore`](#ipdfassetstore) |
| [`IPdfGroupObject`](#ipdfgroupobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfImageAsset`](#ipdfimageasset) | `interface` | [`IPdfAssetStore`](#ipdfassetstore), [`IPdfEditorManagedImageResource`](#ipdfeditormanagedimageresource) |
| [`IPdfImageObject`](#ipdfimageobject) | `interface` | [`PdfObject`](#pdfobject), [`IPdfEditorImagePatch`](#ipdfeditorimagepatch) |
| [`IPdfImportReport`](#ipdfimportreport) | `interface` | [`IPdfConversionState`](#ipdfconversionstate) |
| [`IPdfImportSummary`](#ipdfimportsummary) | `interface` | [`IPdfConversionState`](#ipdfconversionstate) |
| [`IPdfLayer`](#ipdflayer) | `interface` | [`IPdfPage`](#ipdfpage) |
| [`IPdfNativeObjectRecord`](#ipdfnativeobjectrecord) | `interface` | [`IPdfNativePackage`](#ipdfnativepackage) |
| [`IPdfNativeStreamRecord`](#ipdfnativestreamrecord) | `interface` | [`IPdfNativePackage`](#ipdfnativepackage) |
| [`IPdfOutlineDestination`](#ipdfoutlinedestination) | `interface` | [`IPdfOutlineItem`](#ipdfoutlineitem) |
| [`IPdfOutlineStyle`](#ipdfoutlinestyle) | `interface` | [`IPdfOutlineItem`](#ipdfoutlineitem) |
| [`IPdfPageBoxes`](#ipdfpageboxes) | `interface` | [`IPdfPage`](#ipdfpage), [`IPdfPageSourceMapping`](#ipdfpagesourcemapping) |
| [`IPdfPageEditOperation`](#ipdfpageeditoperation) | `interface` | [`IPdfEditState`](#ipdfeditstate) |
| [`IPdfPageExportPlan`](#ipdfpageexportplan) | `interface` | [`IPdfExportPlan`](#ipdfexportplan) |
| [`IPdfPageSourceMapping`](#ipdfpagesourcemapping) | `interface` | [`IPdfDocumentSource`](#ipdfdocumentsource), [`IPdfPage`](#ipdfpage) |
| [`IPdfPaint`](#ipdfpaint) | `interface` | [`IPdfPage`](#ipdfpage), [`IPdfStyleStore`](#ipdfstylestore), [`IPdfShapeObject`](#ipdfshapeobject), [`IPdfPathObject`](#ipdfpathobject) |
| [`IPdfPathObject`](#ipdfpathobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfPatternAsset`](#ipdfpatternasset) | `interface` | [`IPdfAssetStore`](#ipdfassetstore) |
| [`IPdfRawPdfGroupObject`](#ipdfrawpdfgroupobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfRedactionObject`](#ipdfredactionobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfShadingAsset`](#ipdfshadingasset) | `interface` | [`IPdfAssetStore`](#ipdfassetstore) |
| [`IPdfShapeObject`](#ipdfshapeobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfSize`](#ipdfsize) | `interface` | [`IPdfPage`](#ipdfpage), [`IPdfPageDirectoryEntry`](#ipdfpagedirectoryentry), [`IPdfEditorPagePatch`](#ipdfeditorpagepatch) |
| [`IPdfSourceMapping`](#ipdfsourcemapping) | `interface` | [`IPdfDisplayList`](#ipdfdisplaylist), [`IPdfTextStory`](#ipdftextstory), [`IPdfOutlineItem`](#ipdfoutlineitem), [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) |
| [`IPdfSourceOperationPathSegment`](#ipdfsourceoperationpathsegment) | `interface` | [`IPdfSourceSuppression`](#ipdfsourcesuppression), [`IPdfSourceMapping`](#ipdfsourcemapping) |
| [`IPdfStreamAsset`](#ipdfstreamasset) | `interface` | [`IPdfAssetStore`](#ipdfassetstore) |
| [`IPdfStroke`](#ipdfstroke) | `interface` | [`IPdfStyleStore`](#ipdfstylestore), [`IPdfShapeObject`](#ipdfshapeobject), [`IPdfPathObject`](#ipdfpathobject), [`IPdfTextRun`](#ipdftextrun) |
| [`IPdfStructNode`](#ipdfstructnode) | `interface` | [`IPdfLogicalStructure`](#ipdflogicalstructure) |
| [`IPdfTableCandidateObject`](#ipdftablecandidateobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfTableObject`](#ipdftableobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfTextBlock`](#ipdftextblock) | `interface` | [`IPdfTextStory`](#ipdftextstory), [`IPdfEditorTextStoryBlockInsertion`](#ipdfeditortextstoryblockinsertion), [`IPdfEditorTextBlockPatch`](#ipdfeditortextblockpatch) |
| [`IPdfTextCandidateObject`](#ipdftextcandidateobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfTextListDefinition`](#ipdftextlistdefinition) | `interface` | [`IPdfTextStory`](#ipdftextstory), [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) |
| [`IPdfTextObject`](#ipdftextobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfTextRun`](#ipdftextrun) | `interface` | [`IPdfStyleStore`](#ipdfstylestore), [`IPdfTextCandidateObject`](#ipdftextcandidateobject), [`IPdfTextObject`](#ipdftextobject), [`IPdfTextRunObject`](#ipdftextrunobject) |
| [`IPdfTextRunObject`](#ipdftextrunobject) | `interface` | [`PdfObject`](#pdfobject) |
| [`IPdfTextStoryRun`](#ipdftextstoryrun) | `interface` | [`IPdfTextStory`](#ipdftextstory), [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch), [`IPdfEditorTextStoryBlockInsertion`](#ipdfeditortextstoryblockinsertion) |
| [`PdfAssetStorageKind`](#pdfassetstoragekind) | `enum` | [`IPdfNativeResourceBinding`](#ipdfnativeresourcebinding), [`IPdfUniverserResourceBinding`](#ipdfuniverserresourcebinding) |
| [`PdfCapabilityAction`](#pdfcapabilityaction) | `enum` | [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) |
| [`PdfCapabilityFallback`](#pdfcapabilityfallback) | `enum` | [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) |
| [`PdfCapabilityRequirement`](#pdfcapabilityrequirement) | `enum` | [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) |
| [`PdfCapabilityScope`](#pdfcapabilityscope) | `enum` | [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) |
| [`PdfCapabilitySupport`](#pdfcapabilitysupport) | `enum` | [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) |
| [`PdfDisplayOperation`](#pdfdisplayoperation) | `type` | [`IPdfDisplayList`](#ipdfdisplaylist) |
| [`PdfDisplayOperationId`](#pdfdisplayoperationid) | `type` | [`IPdfSourceSuppression`](#ipdfsourcesuppression), [`IPdfTextCandidateObject`](#ipdftextcandidateobject), [`IPdfTableCandidateObject`](#ipdftablecandidateobject), [`IPdfChartCandidateObject`](#ipdfchartcandidateobject) |
| [`PdfExportDisposition`](#pdfexportdisposition) | `enum` | [`IPdfSourceSuppression`](#ipdfsourcesuppression), [`IPdfExportSummary`](#ipdfexportsummary), [`IPdfExportPolicy`](#ipdfexportpolicy) |
| [`PdfLayerId`](#pdflayerid) | `type` | [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject), [`IPdfLayer`](#ipdflayer), [`IPdfExportPolicy`](#ipdfexportpolicy) |
| [`PdfMatrix`](#pdfmatrix) | `type` | [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch), [`PdfDisplayOperation`](#pdfdisplayoperation), [`IPdfFontAsset`](#ipdffontasset), [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) |
| [`PdfObjectRef`](#pdfobjectref) | `type` | [`IPdfNativePackage`](#ipdfnativepackage), [`IPdfNativeResourceBinding`](#ipdfnativeresourcebinding), [`IPdfPageSourceMapping`](#ipdfpagesourcemapping), [`IPdfAnnotationObject`](#ipdfannotationobject) |
| [`PdfOfficeSourceKind`](#pdfofficesourcekind) | `enum` | [`IPdfDocumentSource`](#ipdfdocumentsource), [`IPdfExportPlan`](#ipdfexportplan), [`IPdfImportSummary`](#ipdfimportsummary), [`IPdfExportSummary`](#ipdfexportsummary) |
| [`PdfOperationId`](#pdfoperationid) | `type` | [`IPdfOperationEnvelope`](#ipdfoperationenvelope) |
| [`PdfOperationType`](#pdfoperationtype) | `enum` | [`IPdfOperationEnvelope`](#ipdfoperationenvelope) |
| [`PdfRect`](#pdfrect) | `type` | [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch), [`IPdfImageObject`](#ipdfimageobject), [`IPdfEditorImagePatch`](#ipdfeditorimagepatch), [`IPdfObjectBase`](#ipdfobjectbase) |
| [`PdfRectPt`](#pdfrectpt) | `type` | [`IPdfEditorPagePatch`](#ipdfeditorpagepatch), [`IPdfPageBoxes`](#ipdfpageboxes), [`PdfDisplayOperation`](#pdfdisplayoperation), [`IPdfSourceMapping`](#ipdfsourcemapping) |
| [`PdfSourceSuppressionReason`](#pdfsourcesuppressionreason) | `enum` | [`IPdfSourceSuppression`](#ipdfsourcesuppression) |
| [`PdfStyleId`](#pdfstyleid) | `type` | [`IPdfStyleStore`](#ipdfstylestore), [`IPdfTableObject`](#ipdftableobject), [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch) |
| [`PdfTextListId`](#pdftextlistid) | `type` | [`IPdfTextStory`](#ipdftextstory), [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch), [`IPdfTextListDefinition`](#ipdftextlistdefinition), [`IPdfTextListItem`](#ipdftextlistitem) |
| [`PdfTextRunId`](#pdftextrunid) | `type` | [`IPdfTextStory`](#ipdftextstory), [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch), [`IPdfTextBlock`](#ipdftextblock), [`IPdfTextStoryRun`](#ipdftextstoryrun) |
| [`IPdfAssetBase`](#ipdfassetbase) | `interface` | [`IPdfFontAsset`](#ipdffontasset), [`IPdfImageAsset`](#ipdfimageasset), [`IPdfFormXObjectAsset`](#ipdfformxobjectasset), [`IPdfColorProfileAsset`](#ipdfcolorprofileasset) |
| [`IPdfEditorLinkAnnotationPatch`](#ipdfeditorlinkannotationpatch) | `interface` | [`IPdfEditorAnnotationPatch`](#ipdfeditorannotationpatch) |
| [`IPdfEditorTextRange`](#ipdfeditortextrange) | `interface` | [`IPdfEditorTextStoryRunEdit`](#ipdfeditortextstoryrunedit), [`IPdfEditorTextPatch`](#ipdfeditortextpatch) |
| [`IPdfEffect`](#ipdfeffect) | `interface` | [`IPdfShapeObject`](#ipdfshapeobject) |
| [`IPdfFontCIDToGIDMap`](#ipdffontcidtogidmap) | `interface` | [`IPdfFontAsset`](#ipdffontasset) |
| [`IPdfFontCIDVerticalMetricEntry`](#ipdffontcidverticalmetricentry) | `interface` | [`IPdfFontAsset`](#ipdffontasset) |
| [`IPdfFontCIDWidthEntry`](#ipdffontcidwidthentry) | `interface` | [`IPdfFontAsset`](#ipdffontasset) |
| [`IPdfFontCMapCodeSpaceRange`](#ipdffontcmapcodespacerange) | `interface` | [`IPdfFontAsset`](#ipdffontasset) |
| [`IPdfFontDefaultVerticalMetrics`](#ipdffontdefaultverticalmetrics) | `interface` | [`IPdfFontAsset`](#ipdffontasset) |
| [`IPdfFontDescriptorMetrics`](#ipdffontdescriptormetrics) | `interface` | [`IPdfFontAsset`](#ipdffontasset) |
| [`IPdfFontDiagnostics`](#ipdffontdiagnostics) | `interface` | [`IPdfFontAsset`](#ipdffontasset) |
| [`IPdfFontUnicodeMapEntry`](#ipdffontunicodemapentry) | `interface` | [`IPdfFontAsset`](#ipdffontasset) |
| [`IPdfGlyphRun`](#ipdfglyphrun) | `interface` | [`IPdfTextRun`](#ipdftextrun) |
| [`IPdfGradient`](#ipdfgradient) | `interface` | [`IPdfPaint`](#ipdfpaint), [`IPdfShadingAsset`](#ipdfshadingasset) |
| [`IPdfGraphicsState`](#ipdfgraphicsstate) | `interface` | [`PdfDisplayOperation`](#pdfdisplayoperation) |
| [`IPdfImportPageReport`](#ipdfimportpagereport) | `interface` | [`IPdfImportReport`](#ipdfimportreport) |
| [`IPdfInkAnnotationGeometry`](#ipdfinkannotationgeometry) | `interface` | [`IPdfAnnotationObject`](#ipdfannotationobject) |
| [`IPdfLineAnnotationGeometry`](#ipdflineannotationgeometry) | `interface` | [`IPdfAnnotationObject`](#ipdfannotationobject) |
| [`IPdfLinkAnnotationAction`](#ipdflinkannotationaction) | `interface` | [`IPdfAnnotationObject`](#ipdfannotationobject), [`IPdfEditorLinkAnnotationPatch`](#ipdfeditorlinkannotationpatch) |
| [`IPdfMarkupAnnotationGeometry`](#ipdfmarkupannotationgeometry) | `interface` | [`IPdfAnnotationObject`](#ipdfannotationobject) |
| [`IPdfNativeSize`](#ipdfnativesize) | `interface` | [`PdfDisplayOperation`](#pdfdisplayoperation) |
| [`IPdfNativeSnapshot`](#ipdfnativesnapshot) | `interface` | [`IPdfRawPdfGroupObject`](#ipdfrawpdfgroupobject) |
| [`IPdfObjectBase`](#ipdfobjectbase) | `interface` | [`IPdfRawPdfGroupObject`](#ipdfrawpdfgroupobject), [`IPdfTextCandidateObject`](#ipdftextcandidateobject), [`IPdfGroupObject`](#ipdfgroupobject), [`IPdfTextObject`](#ipdftextobject) |
| [`IPdfOfficeInteropMetadata`](#ipdfofficeinteropmetadata) | `interface` | [`IPdfTableObject`](#ipdftableobject), [`IPdfObjectBase`](#ipdfobjectbase) |
| [`IPdfParagraph`](#ipdfparagraph) | `interface` | [`IPdfTextObject`](#ipdftextobject), [`IPdfEditorTextPatch`](#ipdfeditortextpatch) |
| [`IPdfPathCommand`](#ipdfpathcommand) | `type` | [`IPdfPathObject`](#ipdfpathobject), [`PdfDisplayOperation`](#pdfdisplayoperation), [`IPdfShapeGeometry`](#ipdfshapegeometry) |
| [`IPdfPathPaint`](#ipdfpathpaint) | `interface` | [`PdfDisplayOperation`](#pdfdisplayoperation) |
| [`IPdfPdfResourceDictionary`](#ipdfpdfresourcedictionary) | `interface` | [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) |
| [`IPdfPopupAnnotationState`](#ipdfpopupannotationstate) | `interface` | [`IPdfAnnotationObject`](#ipdfannotationobject) |
| [`IPdfShadingFallbackMesh`](#ipdfshadingfallbackmesh) | `interface` | [`IPdfShadingAsset`](#ipdfshadingasset) |
| [`IPdfShapeAnnotationGeometry`](#ipdfshapeannotationgeometry) | `interface` | [`IPdfAnnotationObject`](#ipdfannotationobject) |
| [`IPdfShapeGeometry`](#ipdfshapegeometry) | `interface` | [`IPdfShapeObject`](#ipdfshapeobject) |
| [`IPdfSourceResourceRef`](#ipdfsourceresourceref) | `interface` | [`IPdfSourceMapping`](#ipdfsourcemapping), [`IPdfPdfResourceDictionary`](#ipdfpdfresourcedictionary), [`IPdfXObjectResourceRef`](#ipdfxobjectresourceref) |
| [`IPdfTableCell`](#ipdftablecell) | `interface` | [`IPdfTableObject`](#ipdftableobject) |
| [`IPdfTableCellStyle`](#ipdftablecellstyle) | `interface` | [`IPdfTableObject`](#ipdftableobject), [`IPdfTableCell`](#ipdftablecell) |
| [`IPdfTableColumn`](#ipdftablecolumn) | `interface` | [`IPdfTableObject`](#ipdftableobject) |
| [`IPdfTableRow`](#ipdftablerow) | `interface` | [`IPdfTableObject`](#ipdftableobject) |
| [`IPdfTableStyleOptions`](#ipdftablestyleoptions) | `interface` | [`IPdfTableObject`](#ipdftableobject), [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch) |
| [`IPdfTextListItem`](#ipdftextlistitem) | `interface` | [`IPdfTextBlock`](#ipdftextblock), [`IPdfEditorTextBlockPatch`](#ipdfeditortextblockpatch) |
| [`IPdfTextListLevel`](#ipdftextlistlevel) | `interface` | [`IPdfTextListDefinition`](#ipdftextlistdefinition) |
| [`IPdfTextState`](#ipdftextstate) | `interface` | [`PdfDisplayOperation`](#pdfdisplayoperation), [`IPdfGraphicsState`](#ipdfgraphicsstate) |
| [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate) | `interface` | [`IPdfAnnotationObject`](#ipdfannotationobject) |
| [`PdfAnnotationType`](#pdfannotationtype) | `enum` | [`IPdfAnnotationObject`](#ipdfannotationobject) |
| [`PdfAssetType`](#pdfassettype) | `enum` | [`IPdfFontAsset`](#ipdffontasset), [`IPdfImageAsset`](#ipdfimageasset), [`IPdfFormXObjectAsset`](#ipdfformxobjectasset), [`IPdfColorProfileAsset`](#ipdfcolorprofileasset) |
| [`PdfColor`](#pdfcolor) | `type` | [`IPdfPaint`](#ipdfpaint), [`IPdfStroke`](#ipdfstroke), [`IPdfTextRun`](#ipdftextrun), [`IPdfOutlineStyle`](#ipdfoutlinestyle) |
| [`PdfDisplayOpType`](#pdfdisplayoptype) | `enum` | [`PdfDisplayOperation`](#pdfdisplayoperation) |
| [`PdfEmu`](#pdfemu) | `type` | [`IPdfSize`](#ipdfsize), [`IPdfTextObject`](#ipdftextobject), [`IPdfTextBlock`](#ipdftextblock), [`IPdfParagraph`](#ipdfparagraph) |
| [`PdfExportPageStrategy`](#pdfexportpagestrategy) | `enum` | [`IPdfPageExportPlan`](#ipdfpageexportplan) |
| [`PdfFillRule`](#pdffillrule) | `enum` | [`IPdfPathObject`](#ipdfpathobject), [`PdfDisplayOperation`](#pdfdisplayoperation), [`IPdfPathPaint`](#ipdfpathpaint) |
| [`PdfFormFieldType`](#pdfformfieldtype) | `enum` | [`IPdfFormFieldObject`](#ipdfformfieldobject), [`IPdfEditorFormFieldPatch`](#ipdfeditorformfieldpatch), [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate) |
| [`PdfImageMaskKind`](#pdfimagemaskkind) | `enum` | [`IPdfImageAsset`](#ipdfimageasset) |
| [`PdfImageSourceKind`](#pdfimagesourcekind) | `enum` | [`IPdfImageAsset`](#ipdfimageasset) |
| [`PdfLayerType`](#pdflayertype) | `enum` | [`IPdfLayer`](#ipdflayer) |
| [`PdfListKind`](#pdflistkind) | `enum` | [`IPdfTextListDefinition`](#ipdftextlistdefinition) |
| [`PdfObjectType`](#pdfobjecttype) | `enum` | [`IPdfRawPdfGroupObject`](#ipdfrawpdfgroupobject), [`IPdfTextCandidateObject`](#ipdftextcandidateobject), [`IPdfGroupObject`](#ipdfgroupobject), [`IPdfTextObject`](#ipdftextobject) |
| [`PdfOutlineDestinationFit`](#pdfoutlinedestinationfit) | `type` | [`IPdfOutlineDestination`](#ipdfoutlinedestination) |
| [`PdfPt`](#pdfpt) | `type` | [`IPdfTextRun`](#ipdftextrun), [`IPdfOutlineDestination`](#ipdfoutlinedestination), [`PdfRectPt`](#pdfrectpt) |
| [`PdfRectEmu`](#pdfrectemu) | `type` | [`PdfRect`](#pdfrect) |
| [`PdfSemanticRole`](#pdfsemanticrole) | `enum` | [`IPdfTextBlock`](#ipdftextblock), [`IPdfStructNode`](#ipdfstructnode), [`IPdfEditorTextBlockPatch`](#ipdfeditortextblockpatch), [`IPdfSemanticMetadata`](#ipdfsemanticmetadata) |
| [`PdfTextAnchor`](#pdftextanchor) | `enum` | [`IPdfTextObject`](#ipdftextobject), [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch) |
| [`PdfXObjectSubtype`](#pdfxobjectsubtype) | `enum` | [`IPdfImageAsset`](#ipdfimageasset), [`IPdfFormXObjectAsset`](#ipdfformxobjectasset), [`IPdfXObjectResourceRef`](#ipdfxobjectresourceref) |
| [`IPdfAcroFormDefaultAppearance`](#ipdfacroformdefaultappearance) | `interface` | [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate) |
| [`IPdfFontCIDVerticalMetricValue`](#ipdffontcidverticalmetricvalue) | `interface` | [`IPdfFontCIDVerticalMetricEntry`](#ipdffontcidverticalmetricentry) |
| [`IPdfSemanticMetadata`](#ipdfsemanticmetadata) | `interface` | [`IPdfObjectBase`](#ipdfobjectbase) |
| [`IPdfShadingMeshTriangle`](#ipdfshadingmeshtriangle) | `interface` | [`IPdfShadingFallbackMesh`](#ipdfshadingfallbackmesh) |
| [`IPdfShadingMeshVertex`](#ipdfshadingmeshvertex) | `interface` | [`IPdfShadingFallbackMesh`](#ipdfshadingfallbackmesh) |
| [`IPdfSoftMaskState`](#ipdfsoftmaskstate) | `interface` | [`IPdfGraphicsState`](#ipdfgraphicsstate) |
| [`IPdfTableBorders`](#ipdftableborders) | `interface` | [`IPdfTableCellStyle`](#ipdftablecellstyle) |
| [`IPdfTablePadding`](#ipdftablepadding) | `interface` | [`IPdfTableCellStyle`](#ipdftablecellstyle) |
| [`IPdfXObjectResourceRef`](#ipdfxobjectresourceref) | `interface` | [`IPdfPdfResourceDictionary`](#ipdfpdfresourcedictionary) |
| [`PdfEditability`](#pdfeditability) | `enum` | [`IPdfObjectBase`](#ipdfobjectbase) |
| [`PdfListMarkerAlignment`](#pdflistmarkeralignment) | `enum` | [`IPdfTextListLevel`](#ipdftextlistlevel) |
| [`PdfListMarkerStyle`](#pdflistmarkerstyle) | `enum` | [`IPdfTextListLevel`](#ipdftextlistlevel) |
| [`PdfObjectOrigin`](#pdfobjectorigin) | `enum` | [`IPdfObjectBase`](#ipdfobjectbase) |
| [`PdfPathCommandType`](#pdfpathcommandtype) | `enum` | [`IPdfPathCommand`](#ipdfpathcommand) |
| [`PdfPoint`](#pdfpoint) | `type` | [`IPdfPathCommand`](#ipdfpathcommand), [`IPdfLineAnnotationGeometry`](#ipdflineannotationgeometry), [`IPdfInkAnnotationGeometry`](#ipdfinkannotationgeometry), [`IPdfGlyphRun`](#ipdfglyphrun) |
| [`PdfQuadPoints`](#pdfquadpoints) | `type` | [`IPdfMarkupAnnotationGeometry`](#ipdfmarkupannotationgeometry) |
| [`PdfSourceResourceKind`](#pdfsourceresourcekind) | `type` | [`IPdfSourceResourceRef`](#ipdfsourceresourceref) |
| [`PdfTableCellVerticalAlign`](#pdftablecellverticalalign) | `enum` | [`IPdfTableCellStyle`](#ipdftablecellstyle) |
| [`PdfPointEmu`](#pdfpointemu) | `type` | [`PdfPoint`](#pdfpoint) |

## `IPdfCapabilityReport` [#ipdfcapabilityreport]

`import type { IPdfCapabilityReport } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md)

Import/runtime capability inventory attached to a PDF Unit.

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

**Related types:** [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfDocument` [#ipdfdocument]

`import type { IPdfDocument } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md)

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.

```ts
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`](#pdfdocumentid) · [`IPdfDocumentCoordinate`](#ipdfdocumentcoordinate) · [`IPdfDocumentSource`](#ipdfdocumentsource) · [`PdfSourceId`](#pdfsourceid) · [`IPdfPage`](#ipdfpage) · [`PdfObjectId`](#pdfobjectid) · [`PdfObject`](#pdfobject) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`IPdfDisplayList`](#ipdfdisplaylist) · [`PdfTextStoryId`](#pdftextstoryid) · [`IPdfTextStory`](#ipdftextstory) · [`IPdfEditState`](#ipdfeditstate) · [`IPdfExportPlan`](#ipdfexportplan) · [`IPdfAssetStore`](#ipdfassetstore) · [`IPdfStyleStore`](#ipdfstylestore) · [`IPdfNativePackage`](#ipdfnativepackage) · [`IPdfOutlineItem`](#ipdfoutlineitem) · [`IPdfLogicalStructure`](#ipdflogicalstructure) · [`IPdfOperationEnvelope`](#ipdfoperationenvelope) · [`IPdfConversionState`](#ipdfconversionstate) · [`IPdfCollaborationState`](#ipdfcollaborationstate) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfDocumentShell` [#ipdfdocumentshell]

`import type { IPdfDocumentShell } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md)

Small document metadata loaded before any page block.

```ts
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`](#ipdfdocumentcoordinate) · [`IPdfDocumentSource`](#ipdfdocumentsource) · [`PdfSourceId`](#pdfsourceid) · [`IPdfPageDirectoryEntry`](#ipdfpagedirectoryentry) · [`IPdfOutlineItem`](#ipdfoutlineitem) · [`IPdfPageBlockIndexEntry`](#ipdfpageblockindexentry) · [`IPdfSharedFragmentIndexEntry`](#ipdfsharedfragmentindexentry) · [`IPdfConversionState`](#ipdfconversionstate)

## `IPdfDurableEditState` [#ipdfdurableeditstate]

`import type { IPdfDurableEditState } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md)

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.

```ts
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`](#pdfdocumentid) · [`PdfTextStoryId`](#pdftextstoryid) · [`IPdfTextStory`](#ipdftextstory) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`IPdfDisplayList`](#ipdfdisplaylist) · [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) · [`PdfObjectId`](#pdfobjectid) · [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject) · [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) · [`PdfPageId`](#pdfpageid) · [`IPdfEditorPagePatch`](#ipdfeditorpagepatch) · [`PdfEditId`](#pdfeditid) · [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfReplacementLink`](#ipdfreplacementlink) · [`PdfAssetId`](#pdfassetid) · [`IPdfEditorManagedImageResource`](#ipdfeditormanagedimageresource) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfFragmentArtifactBinding` [#ipdffragmentartifactbinding]

`import type { IPdfFragmentArtifactBinding } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md)

Protocol file binding for one independently fetched PDF fragment.

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

**Related types:** [`PdfFragmentArtifactKind`](#pdffragmentartifactkind)

## `IPdfSourceDocumentRef` [#ipdfsourcedocumentref]

`import type { IPdfSourceDocumentRef } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md)

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

```ts
interface IPdfSourceDocumentRef {
  sourceId?: PdfSourceId

  assetId?: PdfAssetId

  fingerprint?: string

  fileName?: string

  immutable: true
}
```

**Related types:** [`PdfSourceId`](#pdfsourceid) · [`PdfAssetId`](#pdfassetid)

## `IPdfUnitFragmentIndex` [#ipdfunitfragmentindex]

`import type { IPdfUnitFragmentIndex } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md)

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

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

**Related types:** [`PdfPageId`](#pdfpageid)

## `PdfAssetId` [#pdfassetid]

`import type { PdfAssetId } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) · [`IPdfSourceDocumentRef`](#ipdfsourcedocumentref) · [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfDocumentSource`](#ipdfdocumentsource) · [`IPdfPage`](#ipdfpage) · [`IPdfAssetStore`](#ipdfassetstore) · [`IPdfPageDirectoryEntry`](#ipdfpagedirectoryentry) · [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) · [`IPdfPaint`](#ipdfpaint) · [`IPdfImageObject`](#ipdfimageobject) · [`IPdfAnnotationObject`](#ipdfannotationobject) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfFontAsset`](#ipdffontasset) · [`IPdfImageAsset`](#ipdfimageasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfStroke`](#ipdfstroke) · [`IPdfTextRun`](#ipdftextrun) · [`IPdfEditorImagePatch`](#ipdfeditorimagepatch) · [`IPdfSourceOperationPathSegment`](#ipdfsourceoperationpathsegment) · [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate) · [`IPdfTextState`](#ipdftextstate) · [`IPdfSourceResourceRef`](#ipdfsourceresourceref) · [`IPdfAssetBase`](#ipdfassetbase) · [`IPdfFontCIDToGIDMap`](#ipdffontcidtogidmap) · [`IPdfAcroFormDefaultAppearance`](#ipdfacroformdefaultappearance)

```ts
type PdfAssetId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfDurableResourceBinding` [#pdfdurableresourcebinding]

`import type { PdfDurableResourceBinding } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md)

Resource bindings allowed in a durable PDF Unit snapshot.

```ts
type PdfDurableResourceBinding = IPdfNativeResourceBinding | IPdfUniverserResourceBinding
```

**Related types:** [`IPdfNativeResourceBinding`](#ipdfnativeresourcebinding) · [`IPdfUniverserResourceBinding`](#ipdfuniverserresourcebinding)

## `PdfJsonValue` [#pdfjsonvalue]

`import type { PdfJsonValue } from '@univerjs-pro/pdfs'` · Used by [`IPdfUnitData`](https://docs.univer.ai/ru-RU/reference/types/pdf-unit-data.md) · [`IPdfDocument`](#ipdfdocument) · [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfCapabilityReport`](#ipdfcapabilityreport) · [`IPdfPage`](#ipdfpage) · [`IPdfTextStory`](#ipdftextstory) · [`IPdfNativePackage`](#ipdfnativepackage) · [`IPdfOperationEnvelope`](#ipdfoperationenvelope) · [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject) · [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) · [`IPdfEditorPagePatch`](#ipdfeditorpagepatch) · [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) · [`IPdfChartObject`](#ipdfchartobject) · [`IPdfFormFieldObject`](#ipdfformfieldobject) · [`IPdfTextListDefinition`](#ipdftextlistdefinition) · [`IPdfPageEditOperation`](#ipdfpageeditoperation) · [`IPdfImageAsset`](#ipdfimageasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfEditorTextPatch`](#ipdfeditortextpatch) · [`IPdfEditorFormFieldPatch`](#ipdfeditorformfieldpatch) · [`IPdfObjectBase`](#ipdfobjectbase) · [`IPdfEffect`](#ipdfeffect) · [`IPdfLinkAnnotationAction`](#ipdflinkannotationaction) · [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate) · [`IPdfAssetBase`](#ipdfassetbase) · [`IPdfSoftMaskState`](#ipdfsoftmaskstate)

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

**Related types:** [`PdfJsonPrimitive`](#pdfjsonprimitive)

## `IPdfAssetStore` [#ipdfassetstore]

`import type { IPdfAssetStore } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#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.

```ts
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`](#pdfassetid) · [`IPdfFontAsset`](#ipdffontasset) · [`IPdfImageAsset`](#ipdfimageasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfColorProfileAsset`](#ipdfcolorprofileasset) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfShadingAsset`](#ipdfshadingasset) · [`IPdfAttachmentAsset`](#ipdfattachmentasset) · [`IPdfStreamAsset`](#ipdfstreamasset)

## `IPdfCapabilityDecision` [#ipdfcapabilitydecision]

`import type { IPdfCapabilityDecision } from '@univerjs-pro/pdfs'` · Used by [`IPdfCapabilityReport`](#ipdfcapabilityreport)

Effective capability decision for one PDF action and model scope.

```ts
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`](#pdfcapabilityaction) · [`PdfCapabilitySupport`](#pdfcapabilitysupport) · [`PdfCapabilityFallback`](#pdfcapabilityfallback) · [`PdfCapabilityScope`](#pdfcapabilityscope) · [`PdfPageId`](#pdfpageid) · [`PdfObjectId`](#pdfobjectid) · [`PdfAssetId`](#pdfassetid) · [`PdfCapabilityRequirement`](#pdfcapabilityrequirement) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfCollaborationState` [#ipdfcollaborationstate]

`import type { IPdfCollaborationState } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#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.

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

**Related types:** [`PdfObjectId`](#pdfobjectid)

## `IPdfConversionState` [#ipdfconversionstate]

`import type { IPdfConversionState } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDocumentShell`](#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.

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

**Related types:** [`IPdfImportSummary`](#ipdfimportsummary) · [`IPdfImportReport`](#ipdfimportreport) · [`IPdfExportSummary`](#ipdfexportsummary) · [`IPdfConversionWarning`](#ipdfconversionwarning)

## `IPdfDisplayList` [#ipdfdisplaylist]

`import type { IPdfDisplayList } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDurableEditState`](#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.

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

**Related types:** [`PdfDisplayListId`](#pdfdisplaylistid) · [`PdfSourceId`](#pdfsourceid) · [`PdfPageId`](#pdfpageid) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfSourceMapping`](#ipdfsourcemapping)

## `IPdfDocumentCoordinate` [#ipdfdocumentcoordinate]

`import type { IPdfDocumentCoordinate } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDocumentShell`](#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.

```ts
interface IPdfDocumentCoordinate {
  modelUnit: 'emu'
  modelOrigin: 'top-left'

  pdfUnit: 'pdf-user-space'
  pdfOrigin: 'bottom-left'
  emuPerPt: number
  emuPerCssPx: number
}
```

## `IPdfDocumentSource` [#ipdfdocumentsource]

`import type { IPdfDocumentSource } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDocumentShell`](#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.

```ts
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`](#pdfsourceid) · [`PdfOfficeSourceKind`](#pdfofficesourcekind) · [`PdfAssetId`](#pdfassetid) · [`PdfId`](#pdfid) · [`IPdfPageSourceMapping`](#ipdfpagesourcemapping)

## `IPdfEditorManagedImageResource` [#ipdfeditormanagedimageresource]

`import type { IPdfEditorManagedImageResource } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#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.

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

**Related types:** [`IPdfImageAsset`](#ipdfimageasset) · [`ImageSourceType`](https://docs.univer.ai/ru-RU/reference/types/common-types.md#imagesourcetype)

## `IPdfEditorObjectPatch` [#ipdfeditorobjectpatch]

`import type { IPdfEditorObjectPatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#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.

```ts
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`](#pdfobjectid) · [`PdfPageId`](#pdfpageid) · [`PdfRect`](#pdfrect) · [`PdfMatrix`](#pdfmatrix) · [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch) · [`IPdfEditorTextPatch`](#ipdfeditortextpatch) · [`IPdfEditorImagePatch`](#ipdfeditorimagepatch) · [`IPdfEditorFormFieldPatch`](#ipdfeditorformfieldpatch) · [`IPdfEditorAnnotationPatch`](#ipdfeditorannotationpatch) · [`IPdfExportPolicy`](#ipdfexportpolicy) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfEditorOverlayObject` [#ipdfeditoroverlayobject]

`import type { IPdfEditorOverlayObject } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#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.

```ts
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`](#pdfobject) · [`PdfPageId`](#pdfpageid) · [`PdfLayerId`](#pdflayerid) · [`PdfEditId`](#pdfeditid) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfEditorPagePatch` [#ipdfeditorpagepatch]

`import type { IPdfEditorPagePatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#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.

```ts
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`](#pdfpageid) · [`IPdfPage`](#ipdfpage) · [`IPdfSize`](#ipdfsize) · [`PdfRectPt`](#pdfrectpt) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfEditorTextStoryPatch` [#ipdfeditortextstorypatch]

`import type { IPdfEditorTextStoryPatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#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.

```ts
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`](#pdftextstoryid) · [`IPdfEditorTextStoryBlockInsertion`](#ipdfeditortextstoryblockinsertion) · [`PdfId`](#pdfid) · [`IPdfEditorTextBlockPatch`](#ipdfeditortextblockpatch) · [`PdfTextRunId`](#pdftextrunid) · [`IPdfEditorTextStoryRunEdit`](#ipdfeditortextstoryrunedit) · [`PdfTextListId`](#pdftextlistid) · [`IPdfTextListDefinition`](#ipdftextlistdefinition)

## `IPdfEditState` [#ipdfeditstate]

`import type { IPdfEditState } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#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.

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

**Related types:** [`PdfEditId`](#pdfeditid) · [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfReplacementLink`](#ipdfreplacementlink) · [`IPdfPageEditOperation`](#ipdfpageeditoperation)

## `IPdfExportPlan` [#ipdfexportplan]

`import type { IPdfExportPlan } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#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.

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

**Related types:** [`PdfId`](#pdfid) · [`PdfOfficeSourceKind`](#pdfofficesourcekind) · [`IPdfPageExportPlan`](#ipdfpageexportplan)

## `IPdfLogicalStructure` [#ipdflogicalstructure]

`import type { IPdfLogicalStructure } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#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.

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

**Related types:** [`PdfId`](#pdfid) · [`IPdfStructNode`](#ipdfstructnode)

## `IPdfNativePackage` [#ipdfnativepackage]

`import type { IPdfNativePackage } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#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.

```ts
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`](#pdfobjectref) · [`IPdfNativeObjectRecord`](#ipdfnativeobjectrecord) · [`IPdfNativeStreamRecord`](#ipdfnativestreamrecord) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfNativeResourceBinding` [#ipdfnativeresourcebinding]

`import type { IPdfNativeResourceBinding } from '@univerjs-pro/pdfs'` · Used by [`PdfDurableResourceBinding`](#pdfdurableresourcebinding)

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

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

**Related types:** [`PdfAssetStorageKind.NATIVE_PDF`](#pdfassetstoragekind) · [`PdfSourceId`](#pdfsourceid) · [`PdfObjectRef`](#pdfobjectref)

## `IPdfOperationEnvelope` [#ipdfoperationenvelope]

`import type { IPdfOperationEnvelope } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#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.

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

**Related types:** [`PdfOperationId`](#pdfoperationid) · [`PdfOperationType`](#pdfoperationtype) · [`PdfId`](#pdfid) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfOutlineItem` [#ipdfoutlineitem]

`import type { IPdfOutlineItem } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDocumentShell`](#ipdfdocumentshell)

```ts
interface IPdfOutlineItem {
  id: PdfId
  title: string

  pageId?: PdfPageId
  destination?: IPdfOutlineDestination
  open?: boolean
  style?: IPdfOutlineStyle
  children?: IPdfOutlineItem[]
  source?: IPdfSourceMapping
}
```

**Related types:** [`PdfId`](#pdfid) · [`PdfPageId`](#pdfpageid) · [`IPdfOutlineDestination`](#ipdfoutlinedestination) · [`IPdfOutlineStyle`](#ipdfoutlinestyle) · [`IPdfSourceMapping`](#ipdfsourcemapping)

## `IPdfPage` [#ipdfpage]

`import type { IPdfPage } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfEditorPagePatch`](#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.

```ts
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`](#pdfpageid) · [`IPdfSize`](#ipdfsize) · [`IPdfPageBoxes`](#ipdfpageboxes) · [`IPdfLayer`](#ipdflayer) · [`IPdfPageSourceMapping`](#ipdfpagesourcemapping) · [`PdfAssetId`](#pdfassetid) · [`IPdfPaint`](#ipdfpaint) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfPageBlockIndexEntry` [#ipdfpageblockindexentry]

`import type { IPdfPageBlockIndexEntry } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocumentShell`](#ipdfdocumentshell)

Immutable index metadata for one persisted page block.

```ts
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`](#pdfpageid)

## `IPdfPageDirectoryEntry` [#ipdfpagedirectoryentry]

`import type { IPdfPageDirectoryEntry } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocumentShell`](#ipdfdocumentshell)

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

```ts
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`](#pdfpageid) · [`PdfSourceId`](#pdfsourceid) · [`IPdfSize`](#ipdfsize) · [`PdfAssetId`](#pdfassetid)

## `IPdfReplacementLink` [#ipdfreplacementlink]

`import type { IPdfReplacementLink } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfEditState`](#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.

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

**Related types:** [`PdfEditId`](#pdfeditid) · [`PdfObjectId`](#pdfobjectid)

## `IPdfSharedFragmentIndexEntry` [#ipdfsharedfragmentindexentry]

`import type { IPdfSharedFragmentIndexEntry } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocumentShell`](#ipdfdocumentshell)

Immutable index metadata for one shared PDF fragment.

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

## `IPdfSourceSuppression` [#ipdfsourcesuppression]

`import type { IPdfSourceSuppression } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfEditState`](#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.

```ts
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`](#pdfeditid) · [`PdfSourceId`](#pdfsourceid) · [`PdfPageId`](#pdfpageid) · [`PdfObjectId`](#pdfobjectid) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`PdfDisplayOperationId`](#pdfdisplayoperationid) · [`IPdfSourceOperationPathSegment`](#ipdfsourceoperationpathsegment) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`PdfSourceSuppressionReason`](#pdfsourcesuppressionreason) · [`PdfExportDisposition`](#pdfexportdisposition)

## `IPdfStyleStore` [#ipdfstylestore]

`import type { IPdfStyleStore } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#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.

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

**Related types:** [`PdfStyleId`](#pdfstyleid) · [`IPdfPaint`](#ipdfpaint) · [`IPdfStroke`](#ipdfstroke)

## `IPdfTextStory` [#ipdftextstory]

`import type { IPdfTextStory } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDurableEditState`](#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.

```ts
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`](#pdftextstoryid) · [`PdfObjectId`](#pdfobjectid) · [`IPdfTextBlock`](#ipdftextblock) · [`PdfTextRunId`](#pdftextrunid) · [`IPdfTextStoryRun`](#ipdftextstoryrun) · [`PdfTextListId`](#pdftextlistid) · [`IPdfTextListDefinition`](#ipdftextlistdefinition) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfUniverserResourceBinding` [#ipdfuniverserresourcebinding]

`import type { IPdfUniverserResourceBinding } from '@univerjs-pro/pdfs'` · Used by [`PdfDurableResourceBinding`](#pdfdurableresourcebinding)

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

```ts
interface IPdfUniverserResourceBinding {
  kind: PdfAssetStorageKind.UNIVERSER_RESOURCE

  source: string

  imageSourceType: ImageSourceType.UUID
  mimeType?: string
  checksum?: string
  byteLength?: number
}
```

**Related types:** [`PdfAssetStorageKind.UNIVERSER_RESOURCE`](#pdfassetstoragekind) · [`ImageSourceType.UUID`](https://docs.univer.ai/ru-RU/reference/types/common-types.md#imagesourcetype)

## `PdfDisplayListId` [#pdfdisplaylistid]

`import type { PdfDisplayListId } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfDisplayList`](#ipdfdisplaylist) · [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfAnnotationObject`](#ipdfannotationobject) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfSourceOperationPathSegment`](#ipdfsourceoperationpathsegment) · [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate)

```ts
type PdfDisplayListId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfDocumentId` [#pdfdocumentid]

`import type { PdfDocumentId } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDurableEditState`](#ipdfdurableeditstate)

```ts
type PdfDocumentId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfEditId` [#pdfeditid]

`import type { PdfEditId } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfEditState`](#ipdfeditstate) · [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject) · [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfReplacementLink`](#ipdfreplacementlink) · [`IPdfPageEditOperation`](#ipdfpageeditoperation) · [`IPdfPageExportPlan`](#ipdfpageexportplan)

```ts
type PdfEditId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfFragmentArtifactKind` [#pdffragmentartifactkind]

`import type { PdfFragmentArtifactKind } from '@univerjs-pro/pdfs'` · Used by [`IPdfFragmentArtifactBinding`](#ipdffragmentartifactbinding)

Artifact kinds persisted independently from the Unit shell.

```ts
type PdfFragmentArtifactKind = 'page-block' | 'shared-fragment' | 'search-block'
```

## `PdfId` [#pdfid]

`import type { PdfId } from '@univerjs-pro/pdfs'` · Used by [`PdfAssetId`](#pdfassetid) · [`PdfSourceId`](#pdfsourceid) · [`PdfDocumentId`](#pdfdocumentid) · [`IPdfDocumentSource`](#ipdfdocumentsource) · [`PdfObjectId`](#pdfobjectid) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`PdfTextStoryId`](#pdftextstoryid) · [`IPdfExportPlan`](#ipdfexportplan) · [`IPdfOutlineItem`](#ipdfoutlineitem) · [`IPdfLogicalStructure`](#ipdflogicalstructure) · [`IPdfOperationEnvelope`](#ipdfoperationenvelope) · [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) · [`PdfPageId`](#pdfpageid) · [`PdfEditId`](#pdfeditid) · [`IPdfRawPdfGroupObject`](#ipdfrawpdfgroupobject) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfTextBlock`](#ipdftextblock) · [`PdfTextRunId`](#pdftextrunid) · [`PdfTextListId`](#pdftextlistid) · [`PdfStyleId`](#pdfstyleid) · [`IPdfStructNode`](#ipdfstructnode) · [`PdfOperationId`](#pdfoperationid) · [`PdfLayerId`](#pdflayerid) · [`IPdfEditorTextPatch`](#ipdfeditortextpatch) · [`PdfDisplayOperationId`](#pdfdisplayoperationid) · [`IPdfNativeSnapshot`](#ipdfnativesnapshot) · [`IPdfTableRow`](#ipdftablerow) · [`IPdfTableColumn`](#ipdftablecolumn) · [`IPdfTableCell`](#ipdftablecell) · [`IPdfSemanticMetadata`](#ipdfsemanticmetadata)

```ts
type PdfId = string
```

## `PdfJsonPrimitive` [#pdfjsonprimitive]

`import type { PdfJsonPrimitive } from '@univerjs-pro/pdfs'` · Used by [`PdfJsonValue`](#pdfjsonvalue)

```ts
type PdfJsonPrimitive = string | number | boolean | null
```

## `PdfObject` [#pdfobject]

`import type { PdfObject } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject)

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

**Related types:** [`IPdfRawPdfGroupObject`](#ipdfrawpdfgroupobject) · [`IPdfTextCandidateObject`](#ipdftextcandidateobject) · [`IPdfGroupObject`](#ipdfgroupobject) · [`IPdfTextObject`](#ipdftextobject) · [`IPdfTextRunObject`](#ipdftextrunobject) · [`IPdfShapeObject`](#ipdfshapeobject) · [`IPdfPathObject`](#ipdfpathobject) · [`IPdfImageObject`](#ipdfimageobject) · [`IPdfTableCandidateObject`](#ipdftablecandidateobject) · [`IPdfTableObject`](#ipdftableobject) · [`IPdfChartCandidateObject`](#ipdfchartcandidateobject) · [`IPdfChartObject`](#ipdfchartobject) · [`IPdfFormulaObject`](#ipdfformulaobject) · [`IPdfAnnotationObject`](#ipdfannotationobject) · [`IPdfFormFieldObject`](#ipdfformfieldobject) · [`IPdfRedactionObject`](#ipdfredactionobject) · [`IPdfEmbeddedPageObject`](#ipdfembeddedpageobject)

## `PdfObjectId` [#pdfobjectid]

`import type { PdfObjectId } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfTextStory`](#ipdftextstory) · [`IPdfCollaborationState`](#ipdfcollaborationstate) · [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) · [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfReplacementLink`](#ipdfreplacementlink) · [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) · [`IPdfLayer`](#ipdflayer) · [`IPdfGroupObject`](#ipdfgroupobject) · [`IPdfTableCandidateObject`](#ipdftablecandidateobject) · [`IPdfChartCandidateObject`](#ipdfchartcandidateobject) · [`IPdfChartObject`](#ipdfchartobject) · [`IPdfFormulaObject`](#ipdfformulaobject) · [`IPdfAnnotationObject`](#ipdfannotationobject) · [`IPdfFormFieldObject`](#ipdfformfieldobject) · [`IPdfPageExportPlan`](#ipdfpageexportplan) · [`IPdfStructNode`](#ipdfstructnode) · [`IPdfConversionWarning`](#ipdfconversionwarning) · [`IPdfEditorFormFieldPatch`](#ipdfeditorformfieldpatch) · [`IPdfObjectBase`](#ipdfobjectbase) · [`IPdfPopupAnnotationState`](#ipdfpopupannotationstate) · [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate) · [`IPdfTextListItem`](#ipdftextlistitem)

```ts
type PdfObjectId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfPageId` [#pdfpageid]

`import type { PdfPageId } from '@univerjs-pro/pdfs'` · Used by [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfUnitFragmentIndex`](#ipdfunitfragmentindex) · [`IPdfPage`](#ipdfpage) · [`IPdfDisplayList`](#ipdfdisplaylist) · [`IPdfOutlineItem`](#ipdfoutlineitem) · [`IPdfPageDirectoryEntry`](#ipdfpagedirectoryentry) · [`IPdfPageBlockIndexEntry`](#ipdfpageblockindexentry) · [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject) · [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) · [`IPdfEditorPagePatch`](#ipdfeditorpagepatch) · [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfCapabilityDecision`](#ipdfcapabilitydecision) · [`IPdfEmbeddedPageObject`](#ipdfembeddedpageobject) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfPageEditOperation`](#ipdfpageeditoperation) · [`IPdfPageExportPlan`](#ipdfpageexportplan) · [`IPdfOutlineDestination`](#ipdfoutlinedestination) · [`IPdfConversionWarning`](#ipdfconversionwarning) · [`IPdfLinkAnnotationAction`](#ipdflinkannotationaction) · [`IPdfImportPageReport`](#ipdfimportpagereport)

```ts
type PdfPageId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfSourceId` [#pdfsourceid]

`import type { PdfSourceId } from '@univerjs-pro/pdfs'` · Used by [`IPdfSourceDocumentRef`](#ipdfsourcedocumentref) · [`IPdfDocument`](#ipdfdocument) · [`IPdfDocumentShell`](#ipdfdocumentshell) · [`IPdfDocumentSource`](#ipdfdocumentsource) · [`IPdfDisplayList`](#ipdfdisplaylist) · [`IPdfPageDirectoryEntry`](#ipdfpagedirectoryentry) · [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfNativeResourceBinding`](#ipdfnativeresourcebinding) · [`IPdfPageSourceMapping`](#ipdfpagesourcemapping) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfPageExportPlan`](#ipdfpageexportplan) · [`IPdfImportReport`](#ipdfimportreport)

```ts
type PdfSourceId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfTextStoryId` [#pdftextstoryid]

`import type { PdfTextStoryId } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocument`](#ipdfdocument) · [`IPdfDurableEditState`](#ipdfdurableeditstate) · [`IPdfTextStory`](#ipdftextstory) · [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) · [`IPdfTextCandidateObject`](#ipdftextcandidateobject) · [`IPdfTextObject`](#ipdftextobject) · [`IPdfEditorTextPatch`](#ipdfeditortextpatch) · [`IPdfTableCell`](#ipdftablecell)

```ts
type PdfTextStoryId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `IPdfAnnotationObject` [#ipdfannotationobject]

`import type { IPdfAnnotationObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

```ts
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`](#ipdfobjectbase) · [`PdfObjectType.ANNOTATION`](#pdfobjecttype) · [`PdfAnnotationType`](#pdfannotationtype) · [`PdfObjectRef`](#pdfobjectref) · [`PdfAssetId`](#pdfassetid) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`PdfObjectId`](#pdfobjectid) · [`IPdfLineAnnotationGeometry`](#ipdflineannotationgeometry) · [`IPdfPopupAnnotationState`](#ipdfpopupannotationstate) · [`IPdfMarkupAnnotationGeometry`](#ipdfmarkupannotationgeometry) · [`IPdfInkAnnotationGeometry`](#ipdfinkannotationgeometry) · [`IPdfShapeAnnotationGeometry`](#ipdfshapeannotationgeometry) · [`IPdfLinkAnnotationAction`](#ipdflinkannotationaction) · [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate)

## `IPdfAttachmentAsset` [#ipdfattachmentasset]

`import type { IPdfAttachmentAsset } from '@univerjs-pro/pdfs'` · Used by [`IPdfAssetStore`](#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.

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

**Related types:** [`IPdfAssetBase`](#ipdfassetbase) · [`PdfAssetType.ATTACHMENT`](#pdfassettype)

## `IPdfChartCandidateObject` [#ipdfchartcandidateobject]

`import type { IPdfChartCandidateObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

```ts
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`](#ipdfobjectbase) · [`PdfObjectType.CHART_CANDIDATE`](#pdfobjecttype) · [`PdfObjectId`](#pdfobjectid) · [`PdfDisplayOperationId`](#pdfdisplayoperationid)

## `IPdfChartObject` [#ipdfchartobject]

`import type { IPdfChartObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#pdfobject)

Editable chart object.

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

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.CHART`](#pdfobjecttype) · [`PdfJsonValue`](#pdfjsonvalue) · [`PdfObjectId`](#pdfobjectid)

## `IPdfColorProfileAsset` [#ipdfcolorprofileasset]

`import type { IPdfColorProfileAsset } from '@univerjs-pro/pdfs'` · Used by [`IPdfAssetStore`](#ipdfassetstore)

Color profile asset metadata.

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

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

**Related types:** [`IPdfAssetBase`](#ipdfassetbase) · [`PdfAssetType.COLOR_PROFILE`](#pdfassettype)

## `IPdfConversionWarning` [#ipdfconversionwarning]

`import type { IPdfConversionWarning } from '@univerjs-pro/pdfs'` · Used by [`IPdfConversionState`](#ipdfconversionstate) · [`IPdfImportPageReport`](#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.

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

**Related types:** [`PdfPageId`](#pdfpageid) · [`PdfObjectId`](#pdfobjectid) · [`IPdfSourceMapping`](#ipdfsourcemapping)

## `IPdfEditorAnnotationPatch` [#ipdfeditorannotationpatch]

`import type { IPdfEditorAnnotationPatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch)

Sparse semantic fields for annotation-specific edits.

```ts
interface IPdfEditorAnnotationPatch {
  link?: IPdfEditorLinkAnnotationPatch
}
```

**Related types:** [`IPdfEditorLinkAnnotationPatch`](#ipdfeditorlinkannotationpatch)

## `IPdfEditorFormFieldPatch` [#ipdfeditorformfieldpatch]

`import type { IPdfEditorFormFieldPatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorObjectPatch`](#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.

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

**Related types:** [`PdfObjectId`](#pdfobjectid) · [`PdfFormFieldType`](#pdfformfieldtype) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfEditorImagePatch` [#ipdfeditorimagepatch]

`import type { IPdfEditorImagePatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorObjectPatch`](#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.

```ts
interface IPdfEditorImagePatch {
  assetId?: PdfAssetId

  cropRect?: PdfRect | null

  sourceRect?: PdfRectPt | null
  intrinsic?: Pick<IPdfImageObject, 'assetId' | 'crop' | 'softMaskAssetId'>
}
```

**Related types:** [`PdfAssetId`](#pdfassetid) · [`PdfRect`](#pdfrect) · [`PdfRectPt`](#pdfrectpt) · [`IPdfImageObject`](#ipdfimageobject)

## `IPdfEditorObjectStylePatch` [#ipdfeditorobjectstylepatch]

`import type { IPdfEditorObjectStylePatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorObjectPatch`](#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.

```ts
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`](#ipdfpaint) · [`IPdfStroke`](#ipdfstroke) · [`IPdfTextRun`](#ipdftextrun) · [`PdfTextAnchor`](#pdftextanchor) · [`PdfStyleId`](#pdfstyleid) · [`IPdfTableStyleOptions`](#ipdftablestyleoptions)

## `IPdfEditorTextBlockPatch` [#ipdfeditortextblockpatch]

`import type { IPdfEditorTextBlockPatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch)

Serializable block patch with explicit nullable clearing semantics.

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

```ts
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`](#pdftextrunid) · [`PdfSemanticRole`](#pdfsemanticrole) · [`IPdfTextListItem`](#ipdftextlistitem) · [`IPdfTextBlock`](#ipdftextblock)

## `IPdfEditorTextPatch` [#ipdfeditortextpatch]

`import type { IPdfEditorTextPatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorObjectPatch`](#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.

```ts
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`](#pdftextstoryid) · [`PdfId`](#pdfid) · [`PdfTextRunId`](#pdftextrunid) · [`IPdfEditorTextRange`](#ipdfeditortextrange) · [`IPdfTextRun`](#ipdftextrun) · [`IPdfParagraph`](#ipdfparagraph) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfEditorTextStoryBlockInsertion` [#ipdfeditortextstoryblockinsertion]

`import type { IPdfEditorTextStoryBlockInsertion } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch)

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

```ts
interface IPdfEditorTextStoryBlockInsertion {
  index: number

  block: IPdfTextBlock

  runs: IPdfTextStoryRun[]
}
```

**Related types:** [`IPdfTextBlock`](#ipdftextblock) · [`IPdfTextStoryRun`](#ipdftextstoryrun)

## `IPdfEditorTextStoryRunEdit` [#ipdfeditortextstoryrunedit]

`import type { IPdfEditorTextStoryRunEdit } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch)

Text edit retained for materialization of an imported story run.

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

**Related types:** [`IPdfEditorTextRange`](#ipdfeditortextrange) · [`IPdfTextRun`](#ipdftextrun)

## `IPdfEmbeddedPageObject` [#ipdfembeddedpageobject]

`import type { IPdfEmbeddedPageObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.EMBEDDED_PAGE`](#pdfobjecttype) · [`PdfPageId`](#pdfpageid)

## `IPdfExportPolicy` [#ipdfexportpolicy]

`import type { IPdfExportPolicy } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) · [`IPdfObjectBase`](#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.

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

**Related types:** [`PdfExportDisposition`](#pdfexportdisposition) · [`PdfLayerId`](#pdflayerid)

## `IPdfExportSummary` [#ipdfexportsummary]

`import type { IPdfExportSummary } from '@univerjs-pro/pdfs'` · Used by [`IPdfConversionState`](#ipdfconversionstate)

Document-level export summary.

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

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

**Related types:** [`PdfOfficeSourceKind`](#pdfofficesourcekind)

## `IPdfFontAsset` [#ipdffontasset]

`import type { IPdfFontAsset } from '@univerjs-pro/pdfs'` · Used by [`IPdfAssetStore`](#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.

```ts
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`](#ipdfassetbase) · [`PdfAssetType.FONT`](#pdfassettype) · [`PdfAssetId`](#pdfassetid) · [`IPdfFontUnicodeMapEntry`](#ipdffontunicodemapentry) · [`IPdfFontCMapCodeSpaceRange`](#ipdffontcmapcodespacerange) · [`PdfRectPt`](#pdfrectpt) · [`PdfMatrix`](#pdfmatrix) · [`IPdfFontDescriptorMetrics`](#ipdffontdescriptormetrics) · [`IPdfFontDiagnostics`](#ipdffontdiagnostics) · [`IPdfFontCIDWidthEntry`](#ipdffontcidwidthentry) · [`IPdfFontCIDToGIDMap`](#ipdffontcidtogidmap) · [`IPdfFontCIDVerticalMetricEntry`](#ipdffontcidverticalmetricentry) · [`IPdfFontDefaultVerticalMetrics`](#ipdffontdefaultverticalmetrics)

## `IPdfFormFieldObject` [#ipdfformfieldobject]

`import type { IPdfFormFieldObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

```ts
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`](#ipdfobjectbase) · [`PdfObjectType.FORM_FIELD`](#pdfobjecttype) · [`PdfFormFieldType`](#pdfformfieldtype) · [`PdfJsonValue`](#pdfjsonvalue) · [`PdfObjectRef`](#pdfobjectref) · [`PdfObjectId`](#pdfobjectid)

## `IPdfFormulaObject` [#ipdfformulaobject]

`import type { IPdfFormulaObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

```ts
interface IPdfFormulaObject extends IPdfObjectBase {
  type: PdfObjectType.FORMULA

  latex?: string
  mathMl?: string
  omml?: string
  plainText?: string
  fallbackObjectIds?: PdfObjectId[]
}
```

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.FORMULA`](#pdfobjecttype) · [`PdfObjectId`](#pdfobjectid)

## `IPdfFormXObjectAsset` [#ipdfformxobjectasset]

`import type { IPdfFormXObjectAsset } from '@univerjs-pro/pdfs'` · Used by [`IPdfAssetStore`](#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.

```ts
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`](#ipdfassetbase) · [`PdfAssetType.FORM_XOBJECT`](#pdfassettype) · [`PdfObjectRef`](#pdfobjectref) · [`PdfAssetId`](#pdfassetid) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`PdfRectPt`](#pdfrectpt) · [`PdfMatrix`](#pdfmatrix) · [`IPdfPdfResourceDictionary`](#ipdfpdfresourcedictionary) · [`PdfJsonValue`](#pdfjsonvalue) · [`PdfXObjectSubtype.FORM`](#pdfxobjectsubtype)

## `IPdfGroupObject` [#ipdfgroupobject]

`import type { IPdfGroupObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.GROUP`](#pdfobjecttype) · [`PdfObjectId`](#pdfobjectid)

## `IPdfImageAsset` [#ipdfimageasset]

`import type { IPdfImageAsset } from '@univerjs-pro/pdfs'` · Used by [`IPdfAssetStore`](#ipdfassetstore) · [`IPdfEditorManagedImageResource`](#ipdfeditormanagedimageresource)

Image asset metadata.

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

```ts
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`](#ipdfassetbase) · [`PdfAssetType.IMAGE`](#pdfassettype) · [`PdfImageSourceKind`](#pdfimagesourcekind) · [`PdfXObjectSubtype.IMAGE`](#pdfxobjectsubtype) · [`PdfAssetId`](#pdfassetid) · [`PdfObjectRef`](#pdfobjectref) · [`PdfJsonValue`](#pdfjsonvalue) · [`PdfImageMaskKind`](#pdfimagemaskkind)

## `IPdfImageObject` [#ipdfimageobject]

`import type { IPdfImageObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#pdfobject) · [`IPdfEditorImagePatch`](#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.

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.IMAGE`](#pdfobjecttype) · [`PdfAssetId`](#pdfassetid) · [`PdfRect`](#pdfrect)

## `IPdfImportReport` [#ipdfimportreport]

`import type { IPdfImportReport } from '@univerjs-pro/pdfs'` · Used by [`IPdfConversionState`](#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.

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

**Related types:** [`PdfSourceId`](#pdfsourceid) · [`IPdfImportPageReport`](#ipdfimportpagereport)

## `IPdfImportSummary` [#ipdfimportsummary]

`import type { IPdfImportSummary } from '@univerjs-pro/pdfs'` · Used by [`IPdfConversionState`](#ipdfconversionstate)

Document-level import summary.

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

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

**Related types:** [`PdfOfficeSourceKind`](#pdfofficesourcekind)

## `IPdfLayer` [#ipdflayer]

`import type { IPdfLayer } from '@univerjs-pro/pdfs'` · Used by [`IPdfPage`](#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.

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

**Related types:** [`PdfLayerId`](#pdflayerid) · [`PdfLayerType`](#pdflayertype) · [`PdfObjectId`](#pdfobjectid)

## `IPdfNativeObjectRecord` [#ipdfnativeobjectrecord]

`import type { IPdfNativeObjectRecord } from '@univerjs-pro/pdfs'` · Used by [`IPdfNativePackage`](#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.

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

**Related types:** [`PdfObjectRef`](#pdfobjectref)

## `IPdfNativeStreamRecord` [#ipdfnativestreamrecord]

`import type { IPdfNativeStreamRecord } from '@univerjs-pro/pdfs'` · Used by [`IPdfNativePackage`](#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.

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

**Related types:** [`PdfObjectRef`](#pdfobjectref)

## `IPdfOutlineDestination` [#ipdfoutlinedestination]

`import type { IPdfOutlineDestination } from '@univerjs-pro/pdfs'` · Used by [`IPdfOutlineItem`](#ipdfoutlineitem)

PDF-native destination preserved for bookmark navigation and export.

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

**Related types:** [`PdfPageId`](#pdfpageid) · [`PdfOutlineDestinationFit`](#pdfoutlinedestinationfit) · [`PdfPt`](#pdfpt)

## `IPdfOutlineStyle` [#ipdfoutlinestyle]

`import type { IPdfOutlineStyle } from '@univerjs-pro/pdfs'` · Used by [`IPdfOutlineItem`](#ipdfoutlineitem)

Optional visual treatment stored by PDF outline dictionaries.

```ts
interface IPdfOutlineStyle {
  color?: PdfColor
  bold?: boolean
  italic?: boolean
}
```

**Related types:** [`PdfColor`](#pdfcolor)

## `IPdfPageBoxes` [#ipdfpageboxes]

`import type { IPdfPageBoxes } from '@univerjs-pro/pdfs'` · Used by [`IPdfPage`](#ipdfpage) · [`IPdfPageSourceMapping`](#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.

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

**Related types:** [`PdfRectPt`](#pdfrectpt)

## `IPdfPageEditOperation` [#ipdfpageeditoperation]

`import type { IPdfPageEditOperation } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditState`](#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.

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

**Related types:** [`PdfEditId`](#pdfeditid) · [`PdfPageId`](#pdfpageid) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfPageExportPlan` [#ipdfpageexportplan]

`import type { IPdfPageExportPlan } from '@univerjs-pro/pdfs'` · Used by [`IPdfExportPlan`](#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.

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

**Related types:** [`PdfPageId`](#pdfpageid) · [`PdfSourceId`](#pdfsourceid) · [`PdfExportPageStrategy`](#pdfexportpagestrategy) · [`PdfEditId`](#pdfeditid) · [`PdfObjectId`](#pdfobjectid)

## `IPdfPageSourceMapping` [#ipdfpagesourcemapping]

`import type { IPdfPageSourceMapping } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocumentSource`](#ipdfdocumentsource) · [`IPdfPage`](#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.

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

**Related types:** [`PdfSourceId`](#pdfsourceid) · [`PdfObjectRef`](#pdfobjectref) · [`IPdfPageBoxes`](#ipdfpageboxes)

## `IPdfPaint` [#ipdfpaint]

`import type { IPdfPaint } from '@univerjs-pro/pdfs'` · Used by [`IPdfPage`](#ipdfpage) · [`IPdfStyleStore`](#ipdfstylestore) · [`IPdfShapeObject`](#ipdfshapeobject) · [`IPdfPathObject`](#ipdfpathobject) · [`IPdfRedactionObject`](#ipdfredactionobject) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfShadingAsset`](#ipdfshadingasset) · [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch) · [`IPdfTableCellStyle`](#ipdftablecellstyle) · [`IPdfShapeAnnotationGeometry`](#ipdfshapeannotationgeometry) · [`IPdfGraphicsState`](#ipdfgraphicsstate) · [`IPdfPathPaint`](#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.

```ts
interface IPdfPaint {
  color?: PdfColor

  sourceColorSpace?: string
  sourceColorComponents?: number[]
  opacity?: number
  assetId?: PdfAssetId
  patternId?: PdfAssetId
  gradient?: IPdfGradient
}
```

**Related types:** [`PdfColor`](#pdfcolor) · [`PdfAssetId`](#pdfassetid) · [`IPdfGradient`](#ipdfgradient)

## `IPdfPathObject` [#ipdfpathobject]

`import type { IPdfPathObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.PATH`](#pdfobjecttype) · [`IPdfPathCommand`](#ipdfpathcommand) · [`IPdfPaint`](#ipdfpaint) · [`IPdfStroke`](#ipdfstroke) · [`PdfFillRule`](#pdffillrule)

## `IPdfPatternAsset` [#ipdfpatternasset]

`import type { IPdfPatternAsset } from '@univerjs-pro/pdfs'` · Used by [`IPdfAssetStore`](#ipdfassetstore)

PDF or model pattern asset metadata.

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

```ts
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`](#ipdfassetbase) · [`PdfAssetType.PATTERN`](#pdfassettype) · [`PdfAssetId`](#pdfassetid) · [`PdfObjectRef`](#pdfobjectref) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`PdfRectPt`](#pdfrectpt) · [`PdfMatrix`](#pdfmatrix) · [`IPdfPaint`](#ipdfpaint)

## `IPdfRawPdfGroupObject` [#ipdfrawpdfgroupobject]

`import type { IPdfRawPdfGroupObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.RAW_PDF_GROUP`](#pdfobjecttype) · [`PdfId`](#pdfid) · [`IPdfNativeSnapshot`](#ipdfnativesnapshot)

## `IPdfRedactionObject` [#ipdfredactionobject]

`import type { IPdfRedactionObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.REDACTION`](#pdfobjecttype) · [`IPdfPaint`](#ipdfpaint)

## `IPdfShadingAsset` [#ipdfshadingasset]

`import type { IPdfShadingAsset } from '@univerjs-pro/pdfs'` · Used by [`IPdfAssetStore`](#ipdfassetstore)

PDF shading asset metadata.

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

```ts
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`](#ipdfassetbase) · [`PdfAssetType.SHADING`](#pdfassettype) · [`PdfObjectRef`](#pdfobjectref) · [`PdfRectPt`](#pdfrectpt) · [`IPdfGradient`](#ipdfgradient) · [`IPdfPaint`](#ipdfpaint) · [`IPdfShadingFallbackMesh`](#ipdfshadingfallbackmesh)

## `IPdfShapeObject` [#ipdfshapeobject]

`import type { IPdfShapeObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.SHAPE`](#pdfobjecttype) · [`IPdfShapeGeometry`](#ipdfshapegeometry) · [`IPdfPaint`](#ipdfpaint) · [`IPdfStroke`](#ipdfstroke) · [`IPdfEffect`](#ipdfeffect)

## `IPdfSize` [#ipdfsize]

`import type { IPdfSize } from '@univerjs-pro/pdfs'` · Used by [`IPdfPage`](#ipdfpage) · [`IPdfPageDirectoryEntry`](#ipdfpagedirectoryentry) · [`IPdfEditorPagePatch`](#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.

```ts
interface IPdfSize {
  width: PdfEmu
  height: PdfEmu
}
```

**Related types:** [`PdfEmu`](#pdfemu)

## `IPdfSourceMapping` [#ipdfsourcemapping]

`import type { IPdfSourceMapping } from '@univerjs-pro/pdfs'` · Used by [`IPdfDisplayList`](#ipdfdisplaylist) · [`IPdfTextStory`](#ipdftextstory) · [`IPdfOutlineItem`](#ipdfoutlineitem) · [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) · [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfTextBlock`](#ipdftextblock) · [`IPdfTextStoryRun`](#ipdftextstoryrun) · [`IPdfTextListDefinition`](#ipdftextlistdefinition) · [`IPdfTextRun`](#ipdftextrun) · [`IPdfStructNode`](#ipdfstructnode) · [`IPdfConversionWarning`](#ipdfconversionwarning) · [`IPdfObjectBase`](#ipdfobjectbase) · [`IPdfAssetBase`](#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.

```ts
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`](#pdfsourceid) · [`PdfPageId`](#pdfpageid) · [`PdfObjectRef`](#pdfobjectref) · [`PdfDisplayOperationId`](#pdfdisplayoperationid) · [`IPdfSourceOperationPathSegment`](#ipdfsourceoperationpathsegment) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`IPdfSourceResourceRef`](#ipdfsourceresourceref) · [`PdfRectPt`](#pdfrectpt) · [`PdfId`](#pdfid)

## `IPdfSourceOperationPathSegment` [#ipdfsourceoperationpathsegment]

`import type { IPdfSourceOperationPathSegment } from '@univerjs-pro/pdfs'` · Used by [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfSourceMapping`](#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.

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

**Related types:** [`PdfDisplayListId`](#pdfdisplaylistid) · [`PdfDisplayOperationId`](#pdfdisplayoperationid) · [`PdfObjectRef`](#pdfobjectref) · [`PdfAssetId`](#pdfassetid)

## `IPdfStreamAsset` [#ipdfstreamasset]

`import type { IPdfStreamAsset } from '@univerjs-pro/pdfs'` · Used by [`IPdfAssetStore`](#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.

```ts
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`](#ipdfassetbase) · [`PdfAssetType.STREAM`](#pdfassettype) · [`PdfObjectRef`](#pdfobjectref)

## `IPdfStroke` [#ipdfstroke]

`import type { IPdfStroke } from '@univerjs-pro/pdfs'` · Used by [`IPdfStyleStore`](#ipdfstylestore) · [`IPdfShapeObject`](#ipdfshapeobject) · [`IPdfPathObject`](#ipdfpathobject) · [`IPdfTextRun`](#ipdftextrun) · [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch) · [`IPdfLineAnnotationGeometry`](#ipdflineannotationgeometry) · [`IPdfMarkupAnnotationGeometry`](#ipdfmarkupannotationgeometry) · [`IPdfInkAnnotationGeometry`](#ipdfinkannotationgeometry) · [`IPdfShapeAnnotationGeometry`](#ipdfshapeannotationgeometry) · [`IPdfLinkAnnotationAction`](#ipdflinkannotationaction) · [`IPdfGraphicsState`](#ipdfgraphicsstate) · [`IPdfPathPaint`](#ipdfpathpaint) · [`IPdfTableBorders`](#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.

```ts
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`](#pdfcolor) · [`PdfAssetId`](#pdfassetid)

## `IPdfStructNode` [#ipdfstructnode]

`import type { IPdfStructNode } from '@univerjs-pro/pdfs'` · Used by [`IPdfLogicalStructure`](#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.

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

**Related types:** [`PdfId`](#pdfid) · [`PdfSemanticRole`](#pdfsemanticrole) · [`PdfObjectId`](#pdfobjectid) · [`IPdfSourceMapping`](#ipdfsourcemapping)

## `IPdfTableCandidateObject` [#ipdftablecandidateobject]

`import type { IPdfTableCandidateObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

```ts
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`](#ipdfobjectbase) · [`PdfObjectType.TABLE_CANDIDATE`](#pdfobjecttype) · [`PdfObjectId`](#pdfobjectid) · [`PdfDisplayOperationId`](#pdfdisplayoperationid)

## `IPdfTableObject` [#ipdftableobject]

`import type { IPdfTableObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

```ts
interface IPdfTableObject extends IPdfObjectBase {
  type: PdfObjectType.TABLE
  rows: IPdfTableRow[]
  columns: IPdfTableColumn[]
  cells: IPdfTableCell[]

  styleId?: PdfStyleId

  options?: IPdfTableStyleOptions

  defaultCellStyle?: IPdfTableCellStyle
  gridSource?: IPdfOfficeInteropMetadata
}
```

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.TABLE`](#pdfobjecttype) · [`IPdfTableRow`](#ipdftablerow) · [`IPdfTableColumn`](#ipdftablecolumn) · [`IPdfTableCell`](#ipdftablecell) · [`PdfStyleId`](#pdfstyleid) · [`IPdfTableStyleOptions`](#ipdftablestyleoptions) · [`IPdfTableCellStyle`](#ipdftablecellstyle) · [`IPdfOfficeInteropMetadata`](#ipdfofficeinteropmetadata)

## `IPdfTextBlock` [#ipdftextblock]

`import type { IPdfTextBlock } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextStory`](#ipdftextstory) · [`IPdfEditorTextStoryBlockInsertion`](#ipdfeditortextstoryblockinsertion) · [`IPdfEditorTextBlockPatch`](#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.

```ts
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`](#pdfid) · [`PdfTextRunId`](#pdftextrunid) · [`PdfSemanticRole`](#pdfsemanticrole) · [`IPdfTextListItem`](#ipdftextlistitem) · [`PdfEmu`](#pdfemu) · [`IPdfSourceMapping`](#ipdfsourcemapping)

## `IPdfTextCandidateObject` [#ipdftextcandidateobject]

`import type { IPdfTextCandidateObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

```ts
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`](#ipdfobjectbase) · [`PdfObjectType.PDF_TEXT_CANDIDATE`](#pdfobjecttype) · [`PdfDisplayOperationId`](#pdfdisplayoperationid) · [`PdfTextStoryId`](#pdftextstoryid)

## `IPdfTextListDefinition` [#ipdftextlistdefinition]

`import type { IPdfTextListDefinition } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextStory`](#ipdftextstory) · [`IPdfEditorTextStoryPatch`](#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.

```ts
interface IPdfTextListDefinition {
  id: PdfTextListId

  kind: PdfListKind

  levels: IPdfTextListLevel[]

  source?: IPdfSourceMapping

  metadata?: Record<string, PdfJsonValue>
}
```

**Related types:** [`PdfTextListId`](#pdftextlistid) · [`PdfListKind`](#pdflistkind) · [`IPdfTextListLevel`](#ipdftextlistlevel) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfTextObject` [#ipdftextobject]

`import type { IPdfTextObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#pdfobject)

Editable text box object.

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

```ts
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`](#ipdfobjectbase) · [`PdfObjectType.TEXT_BOX`](#pdfobjecttype) · [`PdfTextStoryId`](#pdftextstoryid) · [`IPdfTextRun`](#ipdftextrun) · [`IPdfParagraph`](#ipdfparagraph) · [`PdfTextAnchor`](#pdftextanchor) · [`PdfEmu`](#pdfemu)

## `IPdfTextRun` [#ipdftextrun]

`import type { IPdfTextRun } from '@univerjs-pro/pdfs'` · Used by [`IPdfStyleStore`](#ipdfstylestore) · [`IPdfTextCandidateObject`](#ipdftextcandidateobject) · [`IPdfTextObject`](#ipdftextobject) · [`IPdfTextRunObject`](#ipdftextrunobject) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfTextStoryRun`](#ipdftextstoryrun) · [`IPdfEditorTextStoryRunEdit`](#ipdfeditortextstoryrunedit) · [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch) · [`IPdfEditorTextPatch`](#ipdfeditortextpatch) · [`IPdfTextListLevel`](#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.

```ts
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`](#pdfassetid) · [`PdfPt`](#pdfpt) · [`PdfColor`](#pdfcolor) · [`IPdfStroke`](#ipdfstroke) · [`IPdfGlyphRun`](#ipdfglyphrun) · [`IPdfSourceMapping`](#ipdfsourcemapping)

## `IPdfTextRunObject` [#ipdftextrunobject]

`import type { IPdfTextRunObject } from '@univerjs-pro/pdfs'` · Used by [`PdfObject`](#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.

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

**Related types:** [`IPdfObjectBase`](#ipdfobjectbase) · [`PdfObjectType.TEXT_RUN`](#pdfobjecttype) · [`IPdfTextRun`](#ipdftextrun)

## `IPdfTextStoryRun` [#ipdftextstoryrun]

`import type { IPdfTextStoryRun } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextStory`](#ipdftextstory) · [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) · [`IPdfEditorTextStoryBlockInsertion`](#ipdfeditortextstoryblockinsertion)

Identified run inside a text story.

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

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

**Related types:** [`IPdfTextRun`](#ipdftextrun) · [`PdfTextRunId`](#pdftextrunid) · [`IPdfSourceMapping`](#ipdfsourcemapping)

## `PdfAssetStorageKind` [#pdfassetstoragekind]

`import { PdfAssetStorageKind } from '@univerjs-pro/pdfs'` · Used by [`IPdfNativeResourceBinding`](#ipdfnativeresourcebinding) · [`IPdfUniverserResourceBinding`](#ipdfuniverserresourcebinding)

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

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

## `PdfCapabilityAction` [#pdfcapabilityaction]

`import { PdfCapabilityAction } from '@univerjs-pro/pdfs'` · Used by [`IPdfCapabilityDecision`](#ipdfcapabilitydecision)

User or system action evaluated by the PDF capability layer.

```ts
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` [#pdfcapabilityfallback]

`import { PdfCapabilityFallback } from '@univerjs-pro/pdfs'` · Used by [`IPdfCapabilityDecision`](#ipdfcapabilitydecision)

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

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

## `PdfCapabilityRequirement` [#pdfcapabilityrequirement]

`import { PdfCapabilityRequirement } from '@univerjs-pro/pdfs'` · Used by [`IPdfCapabilityDecision`](#ipdfcapabilitydecision)

Runtime or service prerequisite needed before a capability becomes usable.

```ts
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` [#pdfcapabilityscope]

`import { PdfCapabilityScope } from '@univerjs-pro/pdfs'` · Used by [`IPdfCapabilityDecision`](#ipdfcapabilitydecision)

Model scope to which a capability decision applies.

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

## `PdfCapabilitySupport` [#pdfcapabilitysupport]

`import { PdfCapabilitySupport } from '@univerjs-pro/pdfs'` · Used by [`IPdfCapabilityDecision`](#ipdfcapabilitydecision)

Effective support level for one capability decision.

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

## `PdfDisplayOperation` [#pdfdisplayoperation]

`import type { PdfDisplayOperation } from '@univerjs-pro/pdfs'` · Used by [`IPdfDisplayList`](#ipdfdisplaylist)

```ts
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`](#pdfdisplayoperationid) · [`PdfDisplayOpType.SAVE_STATE`](#pdfdisplayoptype) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`PdfDisplayOpType.RESTORE_STATE`](#pdfdisplayoptype) · [`PdfDisplayOpType.TRANSFORM`](#pdfdisplayoptype) · [`PdfMatrix`](#pdfmatrix) · [`PdfDisplayOpType.SET_GRAPHICS_STATE`](#pdfdisplayoptype) · [`IPdfGraphicsState`](#ipdfgraphicsstate) · [`PdfDisplayOpType.CLIP`](#pdfdisplayoptype) · [`IPdfPathCommand`](#ipdfpathcommand) · [`PdfFillRule`](#pdffillrule) · [`PdfDisplayOpType.PATH`](#pdfdisplayoptype) · [`IPdfPathPaint`](#ipdfpathpaint) · [`PdfDisplayOpType.TEXT`](#pdfdisplayoptype) · [`IPdfTextRun`](#ipdftextrun) · [`IPdfTextState`](#ipdftextstate) · [`PdfDisplayOpType.IMAGE`](#pdfdisplayoptype) · [`PdfAssetId`](#pdfassetid) · [`IPdfNativeSize`](#ipdfnativesize) · [`PdfDisplayOpType.SHADING`](#pdfdisplayoptype) · [`PdfDisplayOpType.FORM_XOBJECT`](#pdfdisplayoptype) · [`PdfObjectRef`](#pdfobjectref) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`PdfRectPt`](#pdfrectpt) · [`PdfDisplayOpType.MARKED_CONTENT_BEGIN`](#pdfdisplayoptype) · [`PdfDisplayOpType.MARKED_CONTENT_END`](#pdfdisplayoptype)

## `PdfDisplayOperationId` [#pdfdisplayoperationid]

`import type { PdfDisplayOperationId } from '@univerjs-pro/pdfs'` · Used by [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfTextCandidateObject`](#ipdftextcandidateobject) · [`IPdfTableCandidateObject`](#ipdftablecandidateobject) · [`IPdfChartCandidateObject`](#ipdfchartcandidateobject) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfSourceOperationPathSegment`](#ipdfsourceoperationpathsegment)

```ts
type PdfDisplayOperationId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfExportDisposition` [#pdfexportdisposition]

`import { PdfExportDisposition } from '@univerjs-pro/pdfs'` · Used by [`IPdfSourceSuppression`](#ipdfsourcesuppression) · [`IPdfExportSummary`](#ipdfexportsummary) · [`IPdfExportPolicy`](#ipdfexportpolicy)

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

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

## `PdfLayerId` [#pdflayerid]

`import type { PdfLayerId } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorOverlayObject`](#ipdfeditoroverlayobject) · [`IPdfLayer`](#ipdflayer) · [`IPdfExportPolicy`](#ipdfexportpolicy)

```ts
type PdfLayerId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfMatrix` [#pdfmatrix]

`import type { PdfMatrix } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfFontAsset`](#ipdffontasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfGradient`](#ipdfgradient) · [`IPdfObjectBase`](#ipdfobjectbase) · [`IPdfGraphicsState`](#ipdfgraphicsstate) · [`IPdfXObjectResourceRef`](#ipdfxobjectresourceref)

```ts
type PdfMatrix = [number, number, number, number, number, number]
```

## `PdfObjectRef` [#pdfobjectref]

`import type { PdfObjectRef } from '@univerjs-pro/pdfs'` · Used by [`IPdfNativePackage`](#ipdfnativepackage) · [`IPdfNativeResourceBinding`](#ipdfnativeresourcebinding) · [`IPdfPageSourceMapping`](#ipdfpagesourcemapping) · [`IPdfAnnotationObject`](#ipdfannotationobject) · [`IPdfFormFieldObject`](#ipdfformfieldobject) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfImageAsset`](#ipdfimageasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfShadingAsset`](#ipdfshadingasset) · [`IPdfStreamAsset`](#ipdfstreamasset) · [`IPdfNativeObjectRecord`](#ipdfnativeobjectrecord) · [`IPdfNativeStreamRecord`](#ipdfnativestreamrecord) · [`IPdfSourceOperationPathSegment`](#ipdfsourceoperationpathsegment) · [`IPdfNativeSnapshot`](#ipdfnativesnapshot) · [`IPdfPopupAnnotationState`](#ipdfpopupannotationstate) · [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate) · [`IPdfSourceResourceRef`](#ipdfsourceresourceref) · [`IPdfFontCIDToGIDMap`](#ipdffontcidtogidmap) · [`IPdfSoftMaskState`](#ipdfsoftmaskstate)

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

## `PdfOfficeSourceKind` [#pdfofficesourcekind]

`import { PdfOfficeSourceKind } from '@univerjs-pro/pdfs'` · Used by [`IPdfDocumentSource`](#ipdfdocumentsource) · [`IPdfExportPlan`](#ipdfexportplan) · [`IPdfImportSummary`](#ipdfimportsummary) · [`IPdfExportSummary`](#ipdfexportsummary) · [`IPdfOfficeInteropMetadata`](#ipdfofficeinteropmetadata)

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

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

## `PdfOperationId` [#pdfoperationid]

`import type { PdfOperationId } from '@univerjs-pro/pdfs'` · Used by [`IPdfOperationEnvelope`](#ipdfoperationenvelope)

```ts
type PdfOperationId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfOperationType` [#pdfoperationtype]

`import { PdfOperationType } from '@univerjs-pro/pdfs'` · Used by [`IPdfOperationEnvelope`](#ipdfoperationenvelope)

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

```ts
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` [#pdfrect]

`import type { PdfRect } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorObjectPatch`](#ipdfeditorobjectpatch) · [`IPdfImageObject`](#ipdfimageobject) · [`IPdfEditorImagePatch`](#ipdfeditorimagepatch) · [`IPdfObjectBase`](#ipdfobjectbase) · [`IPdfPathCommand`](#ipdfpathcommand)

```ts
type PdfRect = PdfRectEmu
```

**Related types:** [`PdfRectEmu`](#pdfrectemu)

## `PdfRectPt` [#pdfrectpt]

`import type { PdfRectPt } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorPagePatch`](#ipdfeditorpagepatch) · [`IPdfPageBoxes`](#ipdfpageboxes) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfFontAsset`](#ipdffontasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfShadingAsset`](#ipdfshadingasset) · [`IPdfEditorImagePatch`](#ipdfeditorimagepatch) · [`IPdfFontDescriptorMetrics`](#ipdffontdescriptormetrics) · [`IPdfShadingFallbackMesh`](#ipdfshadingfallbackmesh) · [`IPdfXObjectResourceRef`](#ipdfxobjectresourceref)

```ts
type PdfRectPt = [PdfPt, PdfPt, PdfPt, PdfPt]
```

**Related types:** [`PdfPt`](#pdfpt)

## `PdfSourceSuppressionReason` [#pdfsourcesuppressionreason]

`import { PdfSourceSuppressionReason } from '@univerjs-pro/pdfs'` · Used by [`IPdfSourceSuppression`](#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.

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

## `PdfStyleId` [#pdfstyleid]

`import type { PdfStyleId } from '@univerjs-pro/pdfs'` · Used by [`IPdfStyleStore`](#ipdfstylestore) · [`IPdfTableObject`](#ipdftableobject) · [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch)

```ts
type PdfStyleId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfTextListId` [#pdftextlistid]

`import type { PdfTextListId } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextStory`](#ipdftextstory) · [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) · [`IPdfTextListDefinition`](#ipdftextlistdefinition) · [`IPdfTextListItem`](#ipdftextlistitem)

```ts
type PdfTextListId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `PdfTextRunId` [#pdftextrunid]

`import type { PdfTextRunId } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextStory`](#ipdftextstory) · [`IPdfEditorTextStoryPatch`](#ipdfeditortextstorypatch) · [`IPdfTextBlock`](#ipdftextblock) · [`IPdfTextStoryRun`](#ipdftextstoryrun) · [`IPdfEditorTextBlockPatch`](#ipdfeditortextblockpatch) · [`IPdfEditorTextPatch`](#ipdfeditortextpatch)

```ts
type PdfTextRunId = PdfId
```

**Related types:** [`PdfId`](#pdfid)

## `IPdfAssetBase` [#ipdfassetbase]

`import type { IPdfAssetBase } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#ipdffontasset) · [`IPdfImageAsset`](#ipdfimageasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfColorProfileAsset`](#ipdfcolorprofileasset) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfShadingAsset`](#ipdfshadingasset) · [`IPdfAttachmentAsset`](#ipdfattachmentasset) · [`IPdfStreamAsset`](#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.

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

**Related types:** [`PdfAssetId`](#pdfassetid) · [`PdfAssetType`](#pdfassettype) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfEditorLinkAnnotationPatch` [#ipdfeditorlinkannotationpatch]

`import type { IPdfEditorLinkAnnotationPatch } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorAnnotationPatch`](#ipdfeditorannotationpatch)

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

```ts
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`](#ipdflinkannotationaction)

## `IPdfEditorTextRange` [#ipdfeditortextrange]

`import type { IPdfEditorTextRange } from '@univerjs-pro/pdfs'` · Used by [`IPdfEditorTextStoryRunEdit`](#ipdfeditortextstoryrunedit) · [`IPdfEditorTextPatch`](#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.

```ts
interface IPdfEditorTextRange {
  start: number
  end: number
}
```

## `IPdfEffect` [#ipdfeffect]

`import type { IPdfEffect } from '@univerjs-pro/pdfs'` · Used by [`IPdfShapeObject`](#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.

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

**Related types:** [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfFontCIDToGIDMap` [#ipdffontcidtogidmap]

`import type { IPdfFontCIDToGIDMap } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#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.

```ts
interface IPdfFontCIDToGIDMap {
  kind: 'identity' | 'stream' | 'none'

  streamAssetId?: PdfAssetId

  objectRef?: PdfObjectRef
}
```

**Related types:** [`PdfAssetId`](#pdfassetid) · [`PdfObjectRef`](#pdfobjectref)

## `IPdfFontCIDVerticalMetricEntry` [#ipdffontcidverticalmetricentry]

`import type { IPdfFontCIDVerticalMetricEntry } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#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.

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

**Related types:** [`IPdfFontCIDVerticalMetricValue`](#ipdffontcidverticalmetricvalue)

## `IPdfFontCIDWidthEntry` [#ipdffontcidwidthentry]

`import type { IPdfFontCIDWidthEntry } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#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.

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

## `IPdfFontCMapCodeSpaceRange` [#ipdffontcmapcodespacerange]

`import type { IPdfFontCMapCodeSpaceRange } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#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.

```ts
interface IPdfFontCMapCodeSpaceRange {
  start: number
  end: number
  byteLength: number
}
```

## `IPdfFontDefaultVerticalMetrics` [#ipdffontdefaultverticalmetrics]

`import type { IPdfFontDefaultVerticalMetrics } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#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.

```ts
interface IPdfFontDefaultVerticalMetrics {
  verticalOriginY: number
  verticalDisplacementY: number
}
```

## `IPdfFontDescriptorMetrics` [#ipdffontdescriptormetrics]

`import type { IPdfFontDescriptorMetrics } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#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.

```ts
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`](#pdfrectpt)

## `IPdfFontDiagnostics` [#ipdffontdiagnostics]

`import type { IPdfFontDiagnostics } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#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.

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

## `IPdfFontUnicodeMapEntry` [#ipdffontunicodemapentry]

`import type { IPdfFontUnicodeMapEntry } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#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.

```ts
interface IPdfFontUnicodeMapEntry {
  code: number
  unicode: string
}
```

## `IPdfGlyphRun` [#ipdfglyphrun]

`import type { IPdfGlyphRun } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextRun`](#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.

```ts
interface IPdfGlyphRun {
  glyphIds?: Array<string | number>

  sourceCodes?: number[]

  unicode?: string

  advances?: number[]

  positions?: PdfPoint[]

  positionSpace?: 'text-frame'

  fontEncoding?: string
}
```

**Related types:** [`PdfPoint`](#pdfpoint)

## `IPdfGradient` [#ipdfgradient]

`import type { IPdfGradient } from '@univerjs-pro/pdfs'` · Used by [`IPdfPaint`](#ipdfpaint) · [`IPdfShadingAsset`](#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.

```ts
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`](#pdfcolor) · [`PdfMatrix`](#pdfmatrix)

## `IPdfGraphicsState` [#ipdfgraphicsstate]

`import type { IPdfGraphicsState } from '@univerjs-pro/pdfs'` · Used by [`PdfDisplayOperation`](#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.

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

**Related types:** [`PdfMatrix`](#pdfmatrix) · [`IPdfPaint`](#ipdfpaint) · [`IPdfStroke`](#ipdfstroke) · [`IPdfSoftMaskState`](#ipdfsoftmaskstate) · [`IPdfTextState`](#ipdftextstate)

## `IPdfImportPageReport` [#ipdfimportpagereport]

`import type { IPdfImportPageReport } from '@univerjs-pro/pdfs'` · Used by [`IPdfImportReport`](#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.

```ts
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`](#pdfpageid) · [`IPdfConversionWarning`](#ipdfconversionwarning)

## `IPdfInkAnnotationGeometry` [#ipdfinkannotationgeometry]

`import type { IPdfInkAnnotationGeometry } from '@univerjs-pro/pdfs'` · Used by [`IPdfAnnotationObject`](#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.

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

**Related types:** [`PdfPoint`](#pdfpoint) · [`IPdfStroke`](#ipdfstroke)

## `IPdfLineAnnotationGeometry` [#ipdflineannotationgeometry]

`import type { IPdfLineAnnotationGeometry } from '@univerjs-pro/pdfs'` · Used by [`IPdfAnnotationObject`](#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.

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

**Related types:** [`PdfPoint`](#pdfpoint) · [`IPdfStroke`](#ipdfstroke)

## `IPdfLinkAnnotationAction` [#ipdflinkannotationaction]

`import type { IPdfLinkAnnotationAction } from '@univerjs-pro/pdfs'` · Used by [`IPdfAnnotationObject`](#ipdfannotationobject) · [`IPdfEditorLinkAnnotationPatch`](#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.

```ts
interface IPdfLinkAnnotationAction {
  actionType?: string
  uri?: string
  dest?: PdfJsonValue

  pageId?: PdfPageId

  border?: IPdfStroke
}
```

**Related types:** [`PdfJsonValue`](#pdfjsonvalue) · [`PdfPageId`](#pdfpageid) · [`IPdfStroke`](#ipdfstroke)

## `IPdfMarkupAnnotationGeometry` [#ipdfmarkupannotationgeometry]

`import type { IPdfMarkupAnnotationGeometry } from '@univerjs-pro/pdfs'` · Used by [`IPdfAnnotationObject`](#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.

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

**Related types:** [`PdfQuadPoints`](#pdfquadpoints) · [`PdfColor`](#pdfcolor) · [`IPdfStroke`](#ipdfstroke)

## `IPdfNativeSize` [#ipdfnativesize]

`import type { IPdfNativeSize } from '@univerjs-pro/pdfs'` · Used by [`PdfDisplayOperation`](#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.

```ts
interface IPdfNativeSize {
  width: number
  height: number
}
```

## `IPdfNativeSnapshot` [#ipdfnativesnapshot]

`import type { IPdfNativeSnapshot } from '@univerjs-pro/pdfs'` · Used by [`IPdfRawPdfGroupObject`](#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.

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

**Related types:** [`PdfObjectRef`](#pdfobjectref) · [`PdfId`](#pdfid)

## `IPdfObjectBase` [#ipdfobjectbase]

`import type { IPdfObjectBase } from '@univerjs-pro/pdfs'` · Used by [`IPdfRawPdfGroupObject`](#ipdfrawpdfgroupobject) · [`IPdfTextCandidateObject`](#ipdftextcandidateobject) · [`IPdfGroupObject`](#ipdfgroupobject) · [`IPdfTextObject`](#ipdftextobject) · [`IPdfTextRunObject`](#ipdftextrunobject) · [`IPdfShapeObject`](#ipdfshapeobject) · [`IPdfPathObject`](#ipdfpathobject) · [`IPdfImageObject`](#ipdfimageobject) · [`IPdfTableCandidateObject`](#ipdftablecandidateobject) · [`IPdfTableObject`](#ipdftableobject) · [`IPdfChartCandidateObject`](#ipdfchartcandidateobject) · [`IPdfChartObject`](#ipdfchartobject) · [`IPdfFormulaObject`](#ipdfformulaobject) · [`IPdfAnnotationObject`](#ipdfannotationobject) · [`IPdfFormFieldObject`](#ipdfformfieldobject) · [`IPdfRedactionObject`](#ipdfredactionobject) · [`IPdfEmbeddedPageObject`](#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.

```ts
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`](#pdfobjectid) · [`PdfObjectType`](#pdfobjecttype) · [`PdfObjectOrigin`](#pdfobjectorigin) · [`PdfEditability`](#pdfeditability) · [`PdfRect`](#pdfrect) · [`PdfMatrix`](#pdfmatrix) · [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfSemanticMetadata`](#ipdfsemanticmetadata) · [`IPdfOfficeInteropMetadata`](#ipdfofficeinteropmetadata) · [`IPdfExportPolicy`](#ipdfexportpolicy) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfOfficeInteropMetadata` [#ipdfofficeinteropmetadata]

`import type { IPdfOfficeInteropMetadata } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableObject`](#ipdftableobject) · [`IPdfObjectBase`](#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.

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

**Related types:** [`PdfOfficeSourceKind`](#pdfofficesourcekind)

## `IPdfParagraph` [#ipdfparagraph]

`import type { IPdfParagraph } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextObject`](#ipdftextobject) · [`IPdfEditorTextPatch`](#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.

```ts
interface IPdfParagraph {
  runIndexes: number[]
  align?: 'left' | 'center' | 'right' | 'justify'
  lineHeight?: number

  baselineOffset?: PdfEmu
  indent?: number
  spacingBefore?: number
  spacingAfter?: number

  softLineBreakOffsets?: number[]
}
```

**Related types:** [`PdfEmu`](#pdfemu)

## `IPdfPathCommand` [#ipdfpathcommand]

`import type { IPdfPathCommand } from '@univerjs-pro/pdfs'` · Used by [`IPdfPathObject`](#ipdfpathobject) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfShapeGeometry`](#ipdfshapegeometry)

```ts
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`](#pdfpathcommandtype) · [`PdfPoint`](#pdfpoint) · [`PdfPathCommandType.LINE_TO`](#pdfpathcommandtype) · [`PdfPathCommandType.CUBIC_TO`](#pdfpathcommandtype) · [`PdfPathCommandType.QUAD_TO`](#pdfpathcommandtype) · [`PdfPathCommandType.RECT`](#pdfpathcommandtype) · [`PdfRect`](#pdfrect) · [`PdfPathCommandType.CLOSE`](#pdfpathcommandtype)

## `IPdfPathPaint` [#ipdfpathpaint]

`import type { IPdfPathPaint } from '@univerjs-pro/pdfs'` · Used by [`PdfDisplayOperation`](#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.

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

**Related types:** [`IPdfPaint`](#ipdfpaint) · [`IPdfStroke`](#ipdfstroke) · [`PdfFillRule`](#pdffillrule)

## `IPdfPdfResourceDictionary` [#ipdfpdfresourcedictionary]

`import type { IPdfPdfResourceDictionary } from '@univerjs-pro/pdfs'` · Used by [`IPdfFormXObjectAsset`](#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.

```ts
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`](#ipdfsourceresourceref) · [`IPdfXObjectResourceRef`](#ipdfxobjectresourceref)

## `IPdfPopupAnnotationState` [#ipdfpopupannotationstate]

`import type { IPdfPopupAnnotationState } from '@univerjs-pro/pdfs'` · Used by [`IPdfAnnotationObject`](#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.

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

**Related types:** [`PdfObjectRef`](#pdfobjectref) · [`PdfObjectId`](#pdfobjectid)

## `IPdfShadingFallbackMesh` [#ipdfshadingfallbackmesh]

`import type { IPdfShadingFallbackMesh } from '@univerjs-pro/pdfs'` · Used by [`IPdfShadingAsset`](#ipdfshadingasset)

```ts
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`](#pdfrectpt) · [`PdfColor`](#pdfcolor) · [`IPdfShadingMeshVertex`](#ipdfshadingmeshvertex) · [`IPdfShadingMeshTriangle`](#ipdfshadingmeshtriangle)

## `IPdfShapeAnnotationGeometry` [#ipdfshapeannotationgeometry]

`import type { IPdfShapeAnnotationGeometry } from '@univerjs-pro/pdfs'` · Used by [`IPdfAnnotationObject`](#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.

```ts
interface IPdfShapeAnnotationGeometry {
  border?: IPdfStroke
  interiorFill?: IPdfPaint
}
```

**Related types:** [`IPdfStroke`](#ipdfstroke) · [`IPdfPaint`](#ipdfpaint)

## `IPdfShapeGeometry` [#ipdfshapegeometry]

`import type { IPdfShapeGeometry } from '@univerjs-pro/pdfs'` · Used by [`IPdfShapeObject`](#ipdfshapeobject)

Shape geometry payload.

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

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

**Related types:** [`IPdfPathCommand`](#ipdfpathcommand)

## `IPdfSourceResourceRef` [#ipdfsourceresourceref]

`import type { IPdfSourceResourceRef } from '@univerjs-pro/pdfs'` · Used by [`IPdfSourceMapping`](#ipdfsourcemapping) · [`IPdfPdfResourceDictionary`](#ipdfpdfresourcedictionary) · [`IPdfXObjectResourceRef`](#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.

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

**Related types:** [`PdfSourceResourceKind`](#pdfsourceresourcekind) · [`PdfObjectRef`](#pdfobjectref) · [`PdfAssetId`](#pdfassetid)

## `IPdfTableCell` [#ipdftablecell]

`import type { IPdfTableCell } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableObject`](#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.

```ts
interface IPdfTableCell {
  id: PdfId

  rowId: PdfId

  columnId: PdfId
  rowSpan: number
  columnSpan: number

  contentStoryId: PdfTextStoryId
  style?: IPdfTableCellStyle
}
```

**Related types:** [`PdfId`](#pdfid) · [`PdfTextStoryId`](#pdftextstoryid) · [`IPdfTableCellStyle`](#ipdftablecellstyle)

## `IPdfTableCellStyle` [#ipdftablecellstyle]

`import type { IPdfTableCellStyle } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableObject`](#ipdftableobject) · [`IPdfTableCell`](#ipdftablecell)

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

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

**Related types:** [`IPdfPaint`](#ipdfpaint) · [`IPdfTableBorders`](#ipdftableborders) · [`IPdfTablePadding`](#ipdftablepadding) · [`PdfTableCellVerticalAlign`](#pdftablecellverticalalign)

## `IPdfTableColumn` [#ipdftablecolumn]

`import type { IPdfTableColumn } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableObject`](#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.

```ts
interface IPdfTableColumn {
  id: PdfId

  width: PdfEmu
}
```

**Related types:** [`PdfId`](#pdfid) · [`PdfEmu`](#pdfemu)

## `IPdfTableRow` [#ipdftablerow]

`import type { IPdfTableRow } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableObject`](#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.

```ts
interface IPdfTableRow {
  id: PdfId

  height: PdfEmu

  autoFitMinHeight?: PdfEmu
}
```

**Related types:** [`PdfId`](#pdfid) · [`PdfEmu`](#pdfemu)

## `IPdfTableStyleOptions` [#ipdftablestyleoptions]

`import type { IPdfTableStyleOptions } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableObject`](#ipdftableobject) · [`IPdfEditorObjectStylePatch`](#ipdfeditorobjectstylepatch)

Conditional regions used by table themes.

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

## `IPdfTextListItem` [#ipdftextlistitem]

`import type { IPdfTextListItem } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextBlock`](#ipdftextblock) · [`IPdfEditorTextBlockPatch`](#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.

```ts
interface IPdfTextListItem {
  listId: PdfTextListId

  level: number

  restartAt?: number

  valueOverride?: number

  importedLabel?: string

  sourceLabelObjectIds?: PdfObjectId[]
}
```

**Related types:** [`PdfTextListId`](#pdftextlistid) · [`PdfObjectId`](#pdfobjectid)

## `IPdfTextListLevel` [#ipdftextlistlevel]

`import type { IPdfTextListLevel } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextListDefinition`](#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`.

```ts
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`](#pdflistmarkerstyle) · [`PdfListMarkerAlignment`](#pdflistmarkeralignment) · [`PdfEmu`](#pdfemu) · [`IPdfTextRun`](#ipdftextrun)

## `IPdfTextState` [#ipdftextstate]

`import type { IPdfTextState } from '@univerjs-pro/pdfs'` · Used by [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfGraphicsState`](#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.

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

**Related types:** [`PdfAssetId`](#pdfassetid)

## `IPdfWidgetAnnotationState` [#ipdfwidgetannotationstate]

`import type { IPdfWidgetAnnotationState } from '@univerjs-pro/pdfs'` · Used by [`IPdfAnnotationObject`](#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.

```ts
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`](#pdfobjectid) · [`PdfObjectRef`](#pdfobjectref) · [`PdfFormFieldType`](#pdfformfieldtype) · [`PdfJsonValue`](#pdfjsonvalue) · [`PdfAssetId`](#pdfassetid) · [`PdfDisplayListId`](#pdfdisplaylistid) · [`IPdfAcroFormDefaultAppearance`](#ipdfacroformdefaultappearance) · [`PdfColor`](#pdfcolor)

## `PdfAnnotationType` [#pdfannotationtype]

`import { PdfAnnotationType } from '@univerjs-pro/pdfs'` · Used by [`IPdfAnnotationObject`](#ipdfannotationobject)

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

```ts
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` [#pdfassettype]

`import { PdfAssetType } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontAsset`](#ipdffontasset) · [`IPdfImageAsset`](#ipdfimageasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfColorProfileAsset`](#ipdfcolorprofileasset) · [`IPdfPatternAsset`](#ipdfpatternasset) · [`IPdfShadingAsset`](#ipdfshadingasset) · [`IPdfAttachmentAsset`](#ipdfattachmentasset) · [`IPdfStreamAsset`](#ipdfstreamasset) · [`IPdfAssetBase`](#ipdfassetbase)

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

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

## `PdfColor` [#pdfcolor]

`import type { PdfColor } from '@univerjs-pro/pdfs'` · Used by [`IPdfPaint`](#ipdfpaint) · [`IPdfStroke`](#ipdfstroke) · [`IPdfTextRun`](#ipdftextrun) · [`IPdfOutlineStyle`](#ipdfoutlinestyle) · [`IPdfGradient`](#ipdfgradient) · [`IPdfMarkupAnnotationGeometry`](#ipdfmarkupannotationgeometry) · [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate) · [`IPdfShadingFallbackMesh`](#ipdfshadingfallbackmesh) · [`IPdfAcroFormDefaultAppearance`](#ipdfacroformdefaultappearance) · [`IPdfShadingMeshVertex`](#ipdfshadingmeshvertex)

```ts
type PdfColor = string | number[]
```

## `PdfDisplayOpType` [#pdfdisplayoptype]

`import { PdfDisplayOpType } from '@univerjs-pro/pdfs'` · Used by [`PdfDisplayOperation`](#pdfdisplayoperation)

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

```ts
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` [#pdfemu]

`import type { PdfEmu } from '@univerjs-pro/pdfs'` · Used by [`IPdfSize`](#ipdfsize) · [`IPdfTextObject`](#ipdftextobject) · [`IPdfTextBlock`](#ipdftextblock) · [`IPdfParagraph`](#ipdfparagraph) · [`IPdfTableRow`](#ipdftablerow) · [`IPdfTableColumn`](#ipdftablecolumn) · [`IPdfTextListLevel`](#ipdftextlistlevel) · [`PdfRectEmu`](#pdfrectemu) · [`IPdfTablePadding`](#ipdftablepadding) · [`PdfPointEmu`](#pdfpointemu)

```ts
type PdfEmu = number
```

## `PdfExportPageStrategy` [#pdfexportpagestrategy]

`import { PdfExportPageStrategy } from '@univerjs-pro/pdfs'` · Used by [`IPdfPageExportPlan`](#ipdfpageexportplan)

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

```ts
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` [#pdffillrule]

`import { PdfFillRule } from '@univerjs-pro/pdfs'` · Used by [`IPdfPathObject`](#ipdfpathobject) · [`PdfDisplayOperation`](#pdfdisplayoperation) · [`IPdfPathPaint`](#ipdfpathpaint)

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

```ts
enum PdfFillRule {
  NONZERO = 'nonzero',
  EVENODD = 'evenodd',
}
```

## `PdfFormFieldType` [#pdfformfieldtype]

`import { PdfFormFieldType } from '@univerjs-pro/pdfs'` · Used by [`IPdfFormFieldObject`](#ipdfformfieldobject) · [`IPdfEditorFormFieldPatch`](#ipdfeditorformfieldpatch) · [`IPdfWidgetAnnotationState`](#ipdfwidgetannotationstate)

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

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

## `PdfImageMaskKind` [#pdfimagemaskkind]

`import { PdfImageMaskKind } from '@univerjs-pro/pdfs'` · Used by [`IPdfImageAsset`](#ipdfimageasset)

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

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

## `PdfImageSourceKind` [#pdfimagesourcekind]

`import { PdfImageSourceKind } from '@univerjs-pro/pdfs'` · Used by [`IPdfImageAsset`](#ipdfimageasset)

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

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

## `PdfLayerType` [#pdflayertype]

`import { PdfLayerType } from '@univerjs-pro/pdfs'` · Used by [`IPdfLayer`](#ipdflayer)

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

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

## `PdfListKind` [#pdflistkind]

`import { PdfListKind } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextListDefinition`](#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.

```ts
enum PdfListKind {
  UNORDERED = 'unordered',
  ORDERED = 'ordered',
}
```

## `PdfObjectType` [#pdfobjecttype]

`import { PdfObjectType } from '@univerjs-pro/pdfs'` · Used by [`IPdfRawPdfGroupObject`](#ipdfrawpdfgroupobject) · [`IPdfTextCandidateObject`](#ipdftextcandidateobject) · [`IPdfGroupObject`](#ipdfgroupobject) · [`IPdfTextObject`](#ipdftextobject) · [`IPdfTextRunObject`](#ipdftextrunobject) · [`IPdfShapeObject`](#ipdfshapeobject) · [`IPdfPathObject`](#ipdfpathobject) · [`IPdfImageObject`](#ipdfimageobject) · [`IPdfTableCandidateObject`](#ipdftablecandidateobject) · [`IPdfTableObject`](#ipdftableobject) · [`IPdfChartCandidateObject`](#ipdfchartcandidateobject) · [`IPdfChartObject`](#ipdfchartobject) · [`IPdfFormulaObject`](#ipdfformulaobject) · [`IPdfAnnotationObject`](#ipdfannotationobject) · [`IPdfFormFieldObject`](#ipdfformfieldobject) · [`IPdfRedactionObject`](#ipdfredactionobject) · [`IPdfEmbeddedPageObject`](#ipdfembeddedpageobject) · [`IPdfObjectBase`](#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.

```ts
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` [#pdfoutlinedestinationfit]

`import type { PdfOutlineDestinationFit } from '@univerjs-pro/pdfs'` · Used by [`IPdfOutlineDestination`](#ipdfoutlinedestination)

Bookmark/outline entry.

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

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

## `PdfPt` [#pdfpt]

`import type { PdfPt } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextRun`](#ipdftextrun) · [`IPdfOutlineDestination`](#ipdfoutlinedestination) · [`PdfRectPt`](#pdfrectpt)

```ts
type PdfPt = number
```

## `PdfRectEmu` [#pdfrectemu]

`import type { PdfRectEmu } from '@univerjs-pro/pdfs'` · Used by [`PdfRect`](#pdfrect)

```ts
type PdfRectEmu = [PdfEmu, PdfEmu, PdfEmu, PdfEmu]
```

**Related types:** [`PdfEmu`](#pdfemu)

## `PdfSemanticRole` [#pdfsemanticrole]

`import { PdfSemanticRole } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextBlock`](#ipdftextblock) · [`IPdfStructNode`](#ipdfstructnode) · [`IPdfEditorTextBlockPatch`](#ipdfeditortextblockpatch) · [`IPdfSemanticMetadata`](#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.

```ts
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` [#pdftextanchor]

`import { PdfTextAnchor } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextObject`](#ipdftextobject) · [`IPdfEditorObjectStylePatch`](#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.

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

## `PdfXObjectSubtype` [#pdfxobjectsubtype]

`import { PdfXObjectSubtype } from '@univerjs-pro/pdfs'` · Used by [`IPdfImageAsset`](#ipdfimageasset) · [`IPdfFormXObjectAsset`](#ipdfformxobjectasset) · [`IPdfXObjectResourceRef`](#ipdfxobjectresourceref)

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

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

## `IPdfAcroFormDefaultAppearance` [#ipdfacroformdefaultappearance]

`import type { IPdfAcroFormDefaultAppearance } from '@univerjs-pro/pdfs'` · Used by [`IPdfWidgetAnnotationState`](#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.

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

**Related types:** [`PdfAssetId`](#pdfassetid) · [`PdfColor`](#pdfcolor)

## `IPdfFontCIDVerticalMetricValue` [#ipdffontcidverticalmetricvalue]

`import type { IPdfFontCIDVerticalMetricValue } from '@univerjs-pro/pdfs'` · Used by [`IPdfFontCIDVerticalMetricEntry`](#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.

```ts
interface IPdfFontCIDVerticalMetricValue {
  verticalDisplacementY: number

  verticalOrigin?: [number, number]
}
```

## `IPdfSemanticMetadata` [#ipdfsemanticmetadata]

`import type { IPdfSemanticMetadata } from '@univerjs-pro/pdfs'` · Used by [`IPdfObjectBase`](#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.

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

**Related types:** [`PdfSemanticRole`](#pdfsemanticrole) · [`PdfId`](#pdfid)

## `IPdfShadingMeshTriangle` [#ipdfshadingmeshtriangle]

`import type { IPdfShadingMeshTriangle } from '@univerjs-pro/pdfs'` · Used by [`IPdfShadingFallbackMesh`](#ipdfshadingfallbackmesh)

Triangle topology for a decoded shading mesh.

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

```ts
interface IPdfShadingMeshTriangle {
  vertices: [number, number, number]
}
```

## `IPdfShadingMeshVertex` [#ipdfshadingmeshvertex]

`import type { IPdfShadingMeshVertex } from '@univerjs-pro/pdfs'` · Used by [`IPdfShadingFallbackMesh`](#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.

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

**Related types:** [`PdfColor`](#pdfcolor)

## `IPdfSoftMaskState` [#ipdfsoftmaskstate]

`import type { IPdfSoftMaskState } from '@univerjs-pro/pdfs'` · Used by [`IPdfGraphicsState`](#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.

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

**Related types:** [`PdfObjectRef`](#pdfobjectref) · [`PdfJsonValue`](#pdfjsonvalue)

## `IPdfTableBorders` [#ipdftableborders]

`import type { IPdfTableBorders } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableCellStyle`](#ipdftablecellstyle)

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

```ts
interface IPdfTableBorders {
  top?: IPdfStroke
  right?: IPdfStroke
  bottom?: IPdfStroke
  left?: IPdfStroke
}
```

**Related types:** [`IPdfStroke`](#ipdfstroke)

## `IPdfTablePadding` [#ipdftablepadding]

`import type { IPdfTablePadding } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableCellStyle`](#ipdftablecellstyle)

Cell content insets in EMU.

```ts
interface IPdfTablePadding {
  top: PdfEmu
  right: PdfEmu
  bottom: PdfEmu
  left: PdfEmu
}
```

**Related types:** [`PdfEmu`](#pdfemu)

## `IPdfXObjectResourceRef` [#ipdfxobjectresourceref]

`import type { IPdfXObjectResourceRef } from '@univerjs-pro/pdfs'` · Used by [`IPdfPdfResourceDictionary`](#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.

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

**Related types:** [`IPdfSourceResourceRef`](#ipdfsourceresourceref) · [`PdfXObjectSubtype`](#pdfxobjectsubtype) · [`PdfRectPt`](#pdfrectpt) · [`PdfMatrix`](#pdfmatrix)

## `PdfEditability` [#pdfeditability]

`import { PdfEditability } from '@univerjs-pro/pdfs'` · Used by [`IPdfObjectBase`](#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.

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

## `PdfListMarkerAlignment` [#pdflistmarkeralignment]

`import { PdfListMarkerAlignment } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextListLevel`](#ipdftextlistlevel)

Horizontal alignment of a generated label inside its marker column.

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

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

## `PdfListMarkerStyle` [#pdflistmarkerstyle]

`import { PdfListMarkerStyle } from '@univerjs-pro/pdfs'` · Used by [`IPdfTextListLevel`](#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.

```ts
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` [#pdfobjectorigin]

`import { PdfObjectOrigin } from '@univerjs-pro/pdfs'` · Used by [`IPdfObjectBase`](#ipdfobjectbase)

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

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

## `PdfPathCommandType` [#pdfpathcommandtype]

`import { PdfPathCommandType } from '@univerjs-pro/pdfs'` · Used by [`IPdfPathCommand`](#ipdfpathcommand)

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

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

## `PdfPoint` [#pdfpoint]

`import type { PdfPoint } from '@univerjs-pro/pdfs'` · Used by [`IPdfPathCommand`](#ipdfpathcommand) · [`IPdfLineAnnotationGeometry`](#ipdflineannotationgeometry) · [`IPdfInkAnnotationGeometry`](#ipdfinkannotationgeometry) · [`IPdfGlyphRun`](#ipdfglyphrun) · [`PdfQuadPoints`](#pdfquadpoints)

```ts
type PdfPoint = PdfPointEmu
```

**Related types:** [`PdfPointEmu`](#pdfpointemu)

## `PdfQuadPoints` [#pdfquadpoints]

`import type { PdfQuadPoints } from '@univerjs-pro/pdfs'` · Used by [`IPdfMarkupAnnotationGeometry`](#ipdfmarkupannotationgeometry)

```ts
type PdfQuadPoints = [PdfPoint, PdfPoint, PdfPoint, PdfPoint]
```

**Related types:** [`PdfPoint`](#pdfpoint)

## `PdfSourceResourceKind` [#pdfsourceresourcekind]

`import type { PdfSourceResourceKind } from '@univerjs-pro/pdfs'` · Used by [`IPdfSourceResourceRef`](#ipdfsourceresourceref)

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

## `PdfTableCellVerticalAlign` [#pdftablecellverticalalign]

`import { PdfTableCellVerticalAlign } from '@univerjs-pro/pdfs'` · Used by [`IPdfTableCellStyle`](#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.

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

## `PdfPointEmu` [#pdfpointemu]

`import type { PdfPointEmu } from '@univerjs-pro/pdfs'` · Used by [`PdfPoint`](#pdfpoint)

```ts
type PdfPointEmu = [PdfEmu, PdfEmu]
```

**Related types:** [`PdfEmu`](#pdfemu)
