@libpdf/core 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -98,8 +98,9 @@ declare class PdfArray implements PdfPrimitive {
98
98
  get length(): number;
99
99
  /**
100
100
  * Get item at index. Returns undefined if out of bounds.
101
+ * If resolver is provided, resolves indirect references.
101
102
  */
102
- at(index: number): PdfObject | undefined;
103
+ at(index: number, resolver?: RefResolver): PdfObject | undefined;
103
104
  /**
104
105
  * Set item at index. Extends array if needed.
105
106
  */
@@ -8096,14 +8097,6 @@ declare class PDF {
8096
8097
  * Returns null if index out of bounds.
8097
8098
  */
8098
8099
  getPage(index: number): PDFPage | null;
8099
- /**
8100
- * Ensure page resources are resolved (not a reference).
8101
- *
8102
- * Pages may have Resources as a PdfRef pointing to a shared resources dict.
8103
- * The sync getResources() method on PDFPage needs the actual dict, not a ref.
8104
- * This resolves the reference and replaces it in the page dict.
8105
- */
8106
- private ensurePageResourcesResolved;
8107
8100
  /**
8108
8101
  * Add a new blank page.
8109
8102
  *
@@ -9261,11 +9254,11 @@ declare function createAnnotation(dict: PdfDict, ref: PdfRef | null, registry: O
9261
9254
  /**
9262
9255
  * Check if an annotation is a Widget (form field).
9263
9256
  */
9264
- declare function isWidgetAnnotation(dict: PdfDict): boolean;
9257
+ declare function isWidgetAnnotation(dict: PdfDict, registry?: ObjectRegistry): boolean;
9265
9258
  /**
9266
9259
  * Check if an annotation is a Popup.
9267
9260
  */
9268
- declare function isPopupAnnotation(dict: PdfDict): boolean;
9261
+ declare function isPopupAnnotation(dict: PdfDict, registry?: ObjectRegistry): boolean;
9269
9262
  //#endregion
9270
9263
  export { AnnotationFlags, type AnnotationSubtype, type AuthenticationResult, type BorderStyle, type BorderStyleType, type ButtonField, type CMYK, type CaretAnnotationOptions, type CaretSymbol, CertificateChainError, type CheckboxField, type CheckboxOptions, type CheckboxSymbol, type CircleAnnotationOptions, type Color, type CopyPagesOptions, CryptoKeySigner, type Degrees, type DestinationType, type DigestAlgorithm, type DocumentMetadata, type DrawCircleOptions, type DrawEllipseOptions, type DrawFieldOptions, type DrawImageOptions, type DrawLineOptions, type DrawPageOptions, type DrawRectangleOptions, type DrawTextOptions, type DropdownField, type DropdownOptions, type EmbedFontOptions, type EmbeddedFont, type EncryptionAlgorithmOption, type ExtractPagesOptions, type FieldOptions, type FieldType, type FieldValue, type FileAttachmentIcon, type FlattenAllOptions, type FlattenAllResult, type FlattenAnnotationsOptions, type FlattenLayersResult, type FlattenOptions, type FontInput, type FormField, type FormProperties, type FreeTextAnnotationOptions, type FreeTextJustification, GoogleKmsSigner, type Grayscale, type HighlightMode, HttpTimestampAuthority, type HttpTimestampAuthorityOptions, type InkAnnotationOptions, type KeyType, KmsSignerError, type LayerInfo, type LayoutResult, type LineAnnotationOptions, type LineCap, type LineEndingStyle, type LineJoin, type LinkAction, type LinkAnnotationOptions, type LinkDestination, type ListBoxField, type ListboxOptions, type LoadOptions, type MergeOptions, P12Signer, type PAdESLevel, PDF, PDFAnnotation, PDFCaretAnnotation, PDFCircleAnnotation, PDFEmbeddedPage, PDFFileAttachmentAnnotation, PDFForm, PDFFreeTextAnnotation, PDFHighlightAnnotation, PDFImage, PDFInkAnnotation, PDFLineAnnotation, PDFLinkAnnotation, PDFMarkupAnnotation, PDFPage, PDFPolygonAnnotation, PDFPolylineAnnotation, PDFPopupAnnotation, PDFSquareAnnotation, PDFSquigglyAnnotation, PDFStampAnnotation, PDFStrikeOutAnnotation, PDFTextAnnotation, PDFTextMarkupAnnotation, PDFUnderlineAnnotation, PDFUnknownAnnotation, PathBuilder, type PathOptions, PdfArray, PdfBool, PdfDict, PdfName, PdfNull, PdfNumber, type PdfObject, PdfRef, PdfStream, PdfString, type PemBlock, PermissionDeniedError, type PermissionOptions, type Permissions, PlaceholderError, type Point, type PolygonAnnotationOptions, type PolylineAnnotationOptions, type PopupOptions, type PositionedWord, type ProtectionOptions, type RGB, type RadioField, type RadioGroupOptions, type RadioSymbol, type Rect, type Rectangle, type RemoveAnnotationsOptions, RevocationError, type RevocationProvider, type Rotation, type RotationOrigin, type RotationOriginName, STANDARD_STAMPS, type SaveOptions, SecurityError, type SecurityInfo, type SetTitleOptions, type SignOptions, type SignResult, type SignWarning, type SignatureAlgorithm, SignatureError, type SignatureField, type SignatureFieldOptions, type Signer, SignerError, type SquareAnnotationOptions, type StampAnnotationOptions, type StampName, Standard14Font, type Standard14FontName, StandardFonts, type SubFilter, type TextAlignment, type TextAnnotationIcon, type TextAnnotationOptions, type TextAnnotationState, type TextAnnotationStateModel, type TextField, type TextFieldOptions, type TextLine, type TextMarkupAnnotationOptions, type TimestampAuthority, TimestampError, type TrappedStatus, black, blue, cmyk, createAnnotation, degrees, grayscale, green, isPopupAnnotation, isWidgetAnnotation, layoutJustifiedLine, layoutText, lineCapToNumber, lineJoinToNumber, measureText, parsePem, rectToQuadPoints, rectsToQuadPoints, red, rgb, version, white };
9271
9264
  //# sourceMappingURL=index.d.mts.map