/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
pdf-lib
/
es
/
api
/
/var/www/greso.tech/server/nsm/node_modules/pdf-lib/es/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
2932
0644
edit
dl
rm
colors.js.map
3627
0644
edit
dl
rm
Embeddable.d.ts
222
0644
edit
dl
rm
Embeddable.d.ts.map
214
0644
edit
dl
rm
Embeddable.js
38
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
7381
0644
edit
dl
rm
errors.js.map
2841
0644
edit
dl
rm
index.d.ts
785
0644
edit
dl
rm
index.d.ts.map
799
0644
edit
dl
rm
index.js
729
0644
edit
dl
rm
index.js.map
738
0644
edit
dl
rm
objects.d.ts
294
0644
edit
dl
rm
objects.d.ts.map
309
0644
edit
dl
rm
objects.js
397
0644
edit
dl
rm
objects.js.map
594
0644
edit
dl
rm
operations.d.ts
6553
0644
edit
dl
rm
operations.d.ts.map
5613
0644
edit
dl
rm
operations.js
18479
0644
edit
dl
rm
operations.js.map
18481
0644
edit
dl
rm
operators.d.ts
6050
0644
edit
dl
rm
operators.d.ts.map
3987
0644
edit
dl
rm
operators.js
10143
0644
edit
dl
rm
operators.js.map
9907
0644
edit
dl
rm
PDFDocument.d.ts
32827
0644
edit
dl
rm
PDFDocument.d.ts.map
4636
0644
edit
dl
rm
PDFDocument.js
61228
0644
edit
dl
rm
PDFDocument.js.map
22858
0644
edit
dl
rm
PDFDocumentOptions.d.ts
1035
0644
edit
dl
rm
PDFDocumentOptions.d.ts.map
977
0644
edit
dl
rm
PDFDocumentOptions.js
363
0644
edit
dl
rm
PDFDocumentOptions.js.map
277
0644
edit
dl
rm
PDFEmbeddedFile.d.ts
1629
0644
edit
dl
rm
PDFEmbeddedFile.d.ts.map
592
0644
edit
dl
rm
PDFEmbeddedFile.js
3943
0644
edit
dl
rm
PDFEmbeddedFile.js.map
2297
0644
edit
dl
rm
PDFEmbeddedPage.d.ts
2773
0644
edit
dl
rm
PDFEmbeddedPage.d.ts.map
764
0644
edit
dl
rm
PDFEmbeddedPage.js
3677
0644
edit
dl
rm
PDFEmbeddedPage.js.map
1502
0644
edit
dl
rm
PDFFont.d.ts
3738
0644
edit
dl
rm
PDFFont.d.ts.map
1034
0644
edit
dl
rm
PDFFont.js
5591
0644
edit
dl
rm
PDFFont.js.map
2382
0644
edit
dl
rm
PDFImage.d.ts
3543
0644
edit
dl
rm
PDFImage.d.ts.map
872
0644
edit
dl
rm
PDFImage.js
5284
0644
edit
dl
rm
PDFImage.js.map
2104
0644
edit
dl
rm
PDFJavaScript.d.ts
1646
0644
edit
dl
rm
PDFJavaScript.d.ts.map
592
0644
edit
dl
rm
PDFJavaScript.js
3229
0644
edit
dl
rm
PDFJavaScript.js.map
1828
0644
edit
dl
rm
PDFPage.d.ts
31035
0644
edit
dl
rm
PDFPage.d.ts.map
5068
0644
edit
dl
rm
PDFPage.js
60057
0644
edit
dl
rm
PDFPage.js.map
30991
0644
edit
dl
rm
PDFPageOptions.d.ts
3641
0644
edit
dl
rm
PDFPageOptions.d.ts.map
4282
0644
edit
dl
rm
PDFPageOptions.js
603
0644
edit
dl
rm
PDFPageOptions.js.map
419
0644
edit
dl
rm
rotations.d.ts
1220
0644
edit
dl
rm
rotations.d.ts.map
850
0644
edit
dl
rm
rotations.js
2849
0644
edit
dl
rm
rotations.js.map
3318
0644
edit
dl
rm
sizes.d.ts
1418
0644
edit
dl
rm
sizes.d.ts.map
192
0644
edit
dl
rm
sizes.js
1428
0644
edit
dl
rm
sizes.js.map
2249
0644
edit
dl
rm
StandardFonts.d.ts
601
0644
edit
dl
rm
StandardFonts.d.ts.map
402
0644
edit
dl
rm
StandardFonts.js
897
0644
edit
dl
rm
StandardFonts.js.map
453
0644
edit
dl
rm
svgPath.d.ts
150
0644
edit
dl
rm
svgPath.d.ts.map
192
0644
edit
dl
rm
svgPath.js
10363
0644
edit
dl
rm
svgPath.js.map
14840
0644
edit
dl
rm
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<void>; } //# sourceMappingURL=PDFFont.d.ts.map
Save
cmd:
run