UNPKG

firma-gob

Version:

Firma documentos con plataforma Firma.Gob del gobierno Chile

30 lines (29 loc) 721 B
import { PDFName } from "pdf-lib-incremental-save"; import type { PDFFont, PDFOperator, RGB, Rotation } from "pdf-lib-incremental-save"; type Segment = { texto: string; font?: PDFFont; fontName?: string | PDFName; size?: number; color?: RGB; rotate?: Rotation; xSkew?: Rotation; ySkew?: Rotation; }; type SegmentedLine = { segments: Segment[]; }; type BaseOpts = { x: number; y: number; font: PDFFont; fontName: string | PDFName; size: number; color?: RGB; rotate?: Rotation; xSkew?: Rotation; ySkew?: Rotation; lineHeight?: number; }; export declare const drawTextSegments: (lines: SegmentedLine[], base: BaseOpts) => PDFOperator[]; export {};