@digipair/skill-pdf2pic 0.85.2 → 0.86.1
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/index.cjs.js +1 -1
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -27669,7 +27669,7 @@ let PDFService = class PDFService {
|
|
|
27669
27669
|
const { width, height } = pdfPage.getSize();
|
|
27670
27670
|
const widthPx = width / 72 * density;
|
|
27671
27671
|
const heightPx = height / 72 * density;
|
|
27672
|
-
const result = await pdf2pic.
|
|
27672
|
+
const result = await pdf2pic.fromBuffer(buffer, {
|
|
27673
27673
|
density,
|
|
27674
27674
|
format,
|
|
27675
27675
|
preserveAspectRatio: true,
|
package/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fromBuffer } from '@diegoooo/pdf2pic';
|
|
2
2
|
|
|
3
3
|
/*! *****************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -27664,7 +27664,7 @@ let PDFService = class PDFService {
|
|
|
27664
27664
|
const { width, height } = pdfPage.getSize();
|
|
27665
27665
|
const widthPx = width / 72 * density;
|
|
27666
27666
|
const heightPx = height / 72 * density;
|
|
27667
|
-
const result = await
|
|
27667
|
+
const result = await fromBuffer(buffer, {
|
|
27668
27668
|
density,
|
|
27669
27669
|
format,
|
|
27670
27670
|
preserveAspectRatio: true,
|