@pdfme/converter 5.3.8-dev.57 → 5.3.8-dev.58

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/converter",
3
- "version": "5.3.8-dev.57",
3
+ "version": "5.3.8-dev.58",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
package/src/img2pdf.ts CHANGED
@@ -8,7 +8,7 @@ export interface Img2PdfOptions {
8
8
 
9
9
  export async function img2pdf(
10
10
  imgs: ArrayBuffer[],
11
- options: Img2PdfOptions = {}
11
+ options: Img2PdfOptions = {},
12
12
  ): Promise<ArrayBuffer> {
13
13
  try {
14
14
  const { scale = 1 } = options;
@@ -27,7 +27,7 @@ function dataURLToArrayBuffer(dataURL: string): ArrayBuffer {
27
27
 
28
28
  export const pdf2img = async (
29
29
  pdf: ArrayBuffer,
30
- options: Pdf2ImgOptions = {}
30
+ options: Pdf2ImgOptions = {},
31
31
  ): Promise<ArrayBuffer[]> =>
32
32
  _pdf2img(pdf, options, {
33
33
  getDocument: (pdf) => pdfjsLib.getDocument(pdf).promise,
package/src/index.node.ts CHANGED
@@ -6,7 +6,7 @@ import * as pdfjsLib from 'pdfjs-dist/legacy/build/pdf';
6
6
 
7
7
  export const pdf2img = async (
8
8
  pdf: ArrayBuffer,
9
- options: Pdf2ImgOptions = {}
9
+ options: Pdf2ImgOptions = {},
10
10
  ): Promise<ArrayBuffer[]> =>
11
11
  _pdf2img(pdf, options, {
12
12
  getDocument: (pdf) => pdfjsLib.getDocument(pdf).promise,
package/src/pdf2img.ts CHANGED
@@ -6,7 +6,7 @@ interface Environment {
6
6
  createCanvas: (width: number, height: number) => HTMLCanvasElement | OffscreenCanvas;
7
7
  canvasToArrayBuffer: (
8
8
  canvas: HTMLCanvasElement | OffscreenCanvas,
9
- imageType: ImageType
9
+ imageType: ImageType,
10
10
  ) => ArrayBuffer;
11
11
  }
12
12
 
@@ -22,7 +22,7 @@ export interface Pdf2ImgOptions {
22
22
  export async function pdf2img(
23
23
  pdf: ArrayBuffer,
24
24
  options: Pdf2ImgOptions = {},
25
- env: Environment
25
+ env: Environment,
26
26
  ): Promise<ArrayBuffer[]> {
27
27
  try {
28
28
  const { scale = 1, imageType = 'jpeg', range = {} } = options;
package/src/pdf2size.ts CHANGED
@@ -12,7 +12,7 @@ export interface Pdf2SizeOptions {
12
12
  export async function pdf2size(
13
13
  pdf: ArrayBuffer,
14
14
  options: Pdf2SizeOptions = {},
15
- env: Environment
15
+ env: Environment,
16
16
  ): Promise<Size[]> {
17
17
  const { scale = 1 } = options;
18
18
  const { getDocument } = env;
@@ -26,7 +26,7 @@ export async function pdf2size(
26
26
 
27
27
  return { height: pt2mm(height), width: pt2mm(width) };
28
28
  });
29
- })
29
+ }),
30
30
  );
31
31
 
32
32
  return promises;