/var/www/greso.tech/server/nsm/node_modules/pdf-lib/es/api
NameSizeModeActions
form/-0755rm
image/-0755rm
text/-0755rm
colors.d.ts11420644editdlrm
colors.d.ts.map9540644editdlrm
colors.js29320644editdlrm
colors.js.map36270644editdlrm
Embeddable.d.ts2220644editdlrm
Embeddable.d.ts.map2140644editdlrm
Embeddable.js380644editdlrm
Embeddable.js.map1190644editdlrm
errors.d.ts14390644editdlrm
errors.d.ts.map9520644editdlrm
errors.js73810644editdlrm
errors.js.map28410644editdlrm
index.d.ts7850644editdlrm
index.d.ts.map7990644editdlrm
index.js7290644editdlrm
index.js.map7380644editdlrm
objects.d.ts2940644editdlrm
objects.d.ts.map3090644editdlrm
objects.js3970644editdlrm
objects.js.map5940644editdlrm
operations.d.ts65530644editdlrm
operations.d.ts.map56130644editdlrm
operations.js184790644editdlrm
operations.js.map184810644editdlrm
operators.d.ts60500644editdlrm
operators.d.ts.map39870644editdlrm
operators.js101430644editdlrm
operators.js.map99070644editdlrm
PDFDocument.d.ts328270644editdlrm
PDFDocument.d.ts.map46360644editdlrm
PDFDocument.js612280644editdlrm
PDFDocument.js.map228580644editdlrm
PDFDocumentOptions.d.ts10350644editdlrm
PDFDocumentOptions.d.ts.map9770644editdlrm
PDFDocumentOptions.js3630644editdlrm
PDFDocumentOptions.js.map2770644editdlrm
PDFEmbeddedFile.d.ts16290644editdlrm
PDFEmbeddedFile.d.ts.map5920644editdlrm
PDFEmbeddedFile.js39430644editdlrm
PDFEmbeddedFile.js.map22970644editdlrm
PDFEmbeddedPage.d.ts27730644editdlrm
PDFEmbeddedPage.d.ts.map7640644editdlrm
PDFEmbeddedPage.js36770644editdlrm
PDFEmbeddedPage.js.map15020644editdlrm
PDFFont.d.ts37380644editdlrm
PDFFont.d.ts.map10340644editdlrm
PDFFont.js55910644editdlrm
PDFFont.js.map23820644editdlrm
PDFImage.d.ts35430644editdlrm
PDFImage.d.ts.map8720644editdlrm
PDFImage.js52840644editdlrm
PDFImage.js.map21040644editdlrm
PDFJavaScript.d.ts16460644editdlrm
PDFJavaScript.d.ts.map5920644editdlrm
PDFJavaScript.js32290644editdlrm
PDFJavaScript.js.map18280644editdlrm
PDFPage.d.ts310350644editdlrm
PDFPage.d.ts.map50680644editdlrm
PDFPage.js600570644editdlrm
PDFPage.js.map309910644editdlrm
PDFPageOptions.d.ts36410644editdlrm
PDFPageOptions.d.ts.map42820644editdlrm
PDFPageOptions.js6030644editdlrm
PDFPageOptions.js.map4190644editdlrm
rotations.d.ts12200644editdlrm
rotations.d.ts.map8500644editdlrm
rotations.js28490644editdlrm
rotations.js.map33180644editdlrm
sizes.d.ts14180644editdlrm
sizes.d.ts.map1920644editdlrm
sizes.js14280644editdlrm
sizes.js.map22490644editdlrm
StandardFonts.d.ts6010644editdlrm
StandardFonts.d.ts.map4020644editdlrm
StandardFonts.js8970644editdlrm
StandardFonts.js.map4530644editdlrm
svgPath.d.ts1500644editdlrm
svgPath.d.ts.map1920644editdlrm
svgPath.js103630644editdlrm
svgPath.js.map148400644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/pdf-lib/es/api/PDFFont.d.ts (3738B)
import Embeddable from "./Embeddable"; import PDFDocument from "./PDFDocument"; import { CustomFontEmbedder, PDFHexString, PDFRef, StandardFontEmbedder } from "../core"; export declare type FontEmbedder = CustomFontEmbedder | StandardFontEmbedder; /** * Represents a font that has been embedded in a [[PDFDocument]]. */ export default class PDFFont implements Embeddable { /** * > **NOTE:** You probably don't want to call this method directly. Instead, * > consider using the [[PDFDocument.embedFont]] and * > [[PDFDocument.embedStandardFont]] methods, which will create instances * > of [[PDFFont]] for you. * * Create an instance of [[PDFFont]] from an existing ref and embedder * * @param ref The unique reference for this font. * @param doc The document to which the font will belong. * @param embedder The embedder that will be used to embed the font. */ static of: (ref: PDFRef, doc: PDFDocument, embedder: FontEmbedder) => PDFFont; /** The unique reference assigned to this font within the document. */ readonly ref: PDFRef; /** The document to which this font belongs. */ readonly doc: PDFDocument; /** The name of this font. */ readonly name: string; private modified; private readonly embedder; private constructor(); /** * > **NOTE:** You probably don't need to call this method directly. The * > [[PDFPage.drawText]] method will automatically encode the text it is * > given. * * Encodes a string of text in this font. * * @param text The text to be encoded. * @returns The encoded text as a hex string. */ encodeText(text: string): PDFHexString; /** * Measure the width of a string of text drawn in this font at a given size. * For example: * ```js * const width = font.widthOfTextAtSize('Foo Bar Qux Baz', 36) * ``` * @param text The string of text to be measured. * @param size The font size to be used for this measurement. * @returns The width of the string of text when drawn in this font at the * given size. */ widthOfTextAtSize(text: string, size: number): number; /** * Measure the height of this font at a given size. For example: * ```js * const height = font.heightAtSize(24) * ``` * * The `options.descender` value controls whether or not the font's * descender is included in the height calculation. * * @param size The font size to be used for this measurement. * @param options The options to be used when computing this measurement. * @returns The height of this font at the given size. */ heightAtSize(size: number, options?: { descender?: boolean; }): number; /** * Compute the font size at which this font is a given height. For example: * ```js * const fontSize = font.sizeAtHeight(12) * ``` * @param height The height to be used for this calculation. * @returns The font size at which this font is the given height. */ sizeAtHeight(height: number): number; /** * Get the set of unicode code points that can be represented by this font. * @returns The set of unicode code points supported by this font. */ getCharacterSet(): number[]; /** * > **NOTE:** You probably don't need to call this method directly. The * > [[PDFDocument.save]] and [[PDFDocument.saveAsBase64]] methods will * > automatically ensure all fonts get embedded. * * Embed this font in its document. * * @returns Resolves when the embedding is complete. */ embed(): Promise; } //# sourceMappingURL=PDFFont.d.ts.map