Spaces:
Running
Running
Download 731ai/node_modules/pdf-lib/es/api/text/layout.d.ts from u11310019/interactive-multi-web: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/pdf-lib/es/api/text/layout.d.ts
- Command line
-
hf download hf://spaces/u11310019/interactive-multi-web/731ai/node_modules/pdf-lib/es/api/text/layout.d.ts
-
curl -L -o layout.d.ts https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/pdf-lib/es/api/text/layout.d.ts
1.63 kB
| import PDFFont from "../PDFFont"; | |
| import { TextAlignment } from "./alignment"; | |
| import { PDFHexString } from "../../core"; | |
| export interface TextPosition { | |
| text: string; | |
| encoded: PDFHexString; | |
| x: number; | |
| y: number; | |
| width: number; | |
| height: number; | |
| } | |
| export interface LayoutBounds { | |
| x: number; | |
| y: number; | |
| width: number; | |
| height: number; | |
| } | |
| export interface LayoutTextOptions { | |
| alignment: TextAlignment; | |
| fontSize?: number; | |
| font: PDFFont; | |
| bounds: LayoutBounds; | |
| } | |
| export interface MultilineTextLayout { | |
| bounds: LayoutBounds; | |
| lines: TextPosition[]; | |
| fontSize: number; | |
| lineHeight: number; | |
| } | |
| export declare const layoutMultilineText: (text: string, { alignment, fontSize, font, bounds }: LayoutTextOptions) => MultilineTextLayout; | |
| export interface LayoutCombedTextOptions { | |
| fontSize?: number; | |
| font: PDFFont; | |
| bounds: LayoutBounds; | |
| cellCount: number; | |
| } | |
| export interface CombedTextLayout { | |
| bounds: LayoutBounds; | |
| cells: TextPosition[]; | |
| fontSize: number; | |
| } | |
| export declare const layoutCombedText: (text: string, { fontSize, font, bounds, cellCount }: LayoutCombedTextOptions) => CombedTextLayout; | |
| export interface LayoutSinglelineTextOptions { | |
| alignment: TextAlignment; | |
| fontSize?: number; | |
| font: PDFFont; | |
| bounds: LayoutBounds; | |
| } | |
| export interface SinglelineTextLayout { | |
| bounds: LayoutBounds; | |
| line: TextPosition; | |
| fontSize: number; | |
| } | |
| export declare const layoutSinglelineText: (text: string, { alignment, fontSize, font, bounds }: LayoutSinglelineTextOptions) => SinglelineTextLayout; | |
| //# sourceMappingURL=layout.d.ts.map |