/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
pdf-lib
/
cjs
/
api
/
/var/www/greso.tech/server/nsm/node_modules/pdf-lib/cjs/api
mkdir
upload
Name
Size
Mode
Actions
form/
-
0755
rm
image/
-
0755
rm
text/
-
0755
rm
colors.d.ts
1142
0644
edit
dl
rm
colors.d.ts.map
954
0644
edit
dl
rm
colors.js
3243
0644
edit
dl
rm
colors.js.map
3449
0644
edit
dl
rm
Embeddable.d.ts
222
0644
edit
dl
rm
Embeddable.d.ts.map
214
0644
edit
dl
rm
Embeddable.js
115
0644
edit
dl
rm
Embeddable.js.map
119
0644
edit
dl
rm
errors.d.ts
1439
0644
edit
dl
rm
errors.d.ts.map
952
0644
edit
dl
rm
errors.js
8363
0644
edit
dl
rm
errors.js.map
3012
0644
edit
dl
rm
index.d.ts
785
0644
edit
dl
rm
index.d.ts.map
799
0644
edit
dl
rm
index.js
1832
0644
edit
dl
rm
index.js.map
491
0644
edit
dl
rm
objects.d.ts
294
0644
edit
dl
rm
objects.d.ts.map
309
0644
edit
dl
rm
objects.js
556
0644
edit
dl
rm
objects.js.map
540
0644
edit
dl
rm
operations.d.ts
6553
0644
edit
dl
rm
operations.d.ts.map
5613
0644
edit
dl
rm
operations.js
21418
0644
edit
dl
rm
operations.js.map
18068
0644
edit
dl
rm
operators.d.ts
6050
0644
edit
dl
rm
operators.d.ts.map
3987
0644
edit
dl
rm
operators.js
13565
0644
edit
dl
rm
operators.js.map
9463
0644
edit
dl
rm
PDFDocument.d.ts
32827
0644
edit
dl
rm
PDFDocument.d.ts.map
4636
0644
edit
dl
rm
PDFDocument.js
62271
0644
edit
dl
rm
PDFDocument.js.map
22386
0644
edit
dl
rm
PDFDocumentOptions.d.ts
1035
0644
edit
dl
rm
PDFDocumentOptions.d.ts.map
977
0644
edit
dl
rm
PDFDocumentOptions.js
493
0644
edit
dl
rm
PDFDocumentOptions.js.map
282
0644
edit
dl
rm
PDFEmbeddedFile.d.ts
1629
0644
edit
dl
rm
PDFEmbeddedFile.d.ts.map
592
0644
edit
dl
rm
PDFEmbeddedFile.js
4107
0644
edit
dl
rm
PDFEmbeddedFile.js.map
2251
0644
edit
dl
rm
PDFEmbeddedPage.d.ts
2773
0644
edit
dl
rm
PDFEmbeddedPage.d.ts.map
764
0644
edit
dl
rm
PDFEmbeddedPage.js
3823
0644
edit
dl
rm
PDFEmbeddedPage.js.map
1451
0644
edit
dl
rm
PDFFont.d.ts
3738
0644
edit
dl
rm
PDFFont.d.ts.map
1034
0644
edit
dl
rm
PDFFont.js
5746
0644
edit
dl
rm
PDFFont.js.map
2306
0644
edit
dl
rm
PDFImage.d.ts
3543
0644
edit
dl
rm
PDFImage.d.ts.map
872
0644
edit
dl
rm
PDFImage.js
5443
0644
edit
dl
rm
PDFImage.js.map
2046
0644
edit
dl
rm
PDFJavaScript.d.ts
1646
0644
edit
dl
rm
PDFJavaScript.d.ts.map
592
0644
edit
dl
rm
PDFJavaScript.js
3365
0644
edit
dl
rm
PDFJavaScript.js.map
1782
0644
edit
dl
rm
PDFPage.d.ts
31035
0644
edit
dl
rm
PDFPage.d.ts.map
5068
0644
edit
dl
rm
PDFPage.js
61873
0644
edit
dl
rm
PDFPage.js.map
30615
0644
edit
dl
rm
PDFPageOptions.d.ts
3641
0644
edit
dl
rm
PDFPageOptions.d.ts.map
4282
0644
edit
dl
rm
PDFPageOptions.js
729
0644
edit
dl
rm
PDFPageOptions.js.map
424
0644
edit
dl
rm
rotations.d.ts
1220
0644
edit
dl
rm
rotations.d.ts.map
850
0644
edit
dl
rm
rotations.js
3224
0644
edit
dl
rm
rotations.js.map
3205
0644
edit
dl
rm
sizes.d.ts
1418
0644
edit
dl
rm
sizes.d.ts.map
192
0644
edit
dl
rm
sizes.js
1530
0644
edit
dl
rm
sizes.js.map
2242
0644
edit
dl
rm
StandardFonts.d.ts
601
0644
edit
dl
rm
StandardFonts.d.ts.map
402
0644
edit
dl
rm
StandardFonts.js
1031
0644
edit
dl
rm
StandardFonts.js.map
458
0644
edit
dl
rm
svgPath.d.ts
150
0644
edit
dl
rm
svgPath.d.ts.map
192
0644
edit
dl
rm
svgPath.js
10645
0644
edit
dl
rm
svgPath.js.map
14777
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/node_modules/pdf-lib/cjs/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<void>; } //# sourceMappingURL=PDFFont.d.ts.map
Save
cmd:
run