@pdfme/pdf-lib 5.4.6-dev.29 → 5.4.6-dev.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -751,7 +751,7 @@ export default class PDFDocument {
751
751
  * @param options The options to be used when saving the document.
752
752
  * @returns Resolves with the bytes of the serialized document.
753
753
  */
754
- save(options?: SaveOptions): Promise<Uint8Array>;
754
+ save(options?: SaveOptions): Promise<Uint8Array<ArrayBuffer>>;
755
755
  /**
756
756
  * Serialize this document to a base64 encoded string or data URI making up a
757
757
  * PDF file. For example:
@@ -20,7 +20,7 @@ declare class PDFWriter {
20
20
  protected readonly objectsPerTick: number;
21
21
  private parsedObjects;
22
22
  protected constructor(context: PDFContext, objectsPerTick: number);
23
- serializeToBuffer(): Promise<Uint8Array>;
23
+ serializeToBuffer(): Promise<Uint8Array<ArrayBuffer>>;
24
24
  protected computeIndirectObjectSize([ref, object]: [PDFRef, PDFObject]): number;
25
25
  protected createTrailerDict(): PDFDict;
26
26
  protected computeBufferSize(): Promise<SerializationInfo>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/pdf-lib",
3
- "version": "5.4.6-dev.29",
3
+ "version": "5.4.6-dev.30",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
@@ -1261,7 +1261,7 @@ export default class PDFDocument {
1261
1261
  * @param options The options to be used when saving the document.
1262
1262
  * @returns Resolves with the bytes of the serialized document.
1263
1263
  */
1264
- async save(options: SaveOptions = {}): Promise<Uint8Array> {
1264
+ async save(options: SaveOptions = {}): Promise<Uint8Array<ArrayBuffer>> {
1265
1265
  const {
1266
1266
  useObjectStreams = true,
1267
1267
  addDefaultPage = true,
@@ -33,7 +33,7 @@ class PDFWriter {
33
33
  this.objectsPerTick = objectsPerTick;
34
34
  }
35
35
 
36
- async serializeToBuffer(): Promise<Uint8Array> {
36
+ async serializeToBuffer(): Promise<Uint8Array<ArrayBuffer>> {
37
37
  const { size, header, indirectObjects, xref, trailerDict, trailer } =
38
38
  await this.computeBufferSize();
39
39