@pollium/vyva-convert 0.5.0 → 0.5.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/dist/import/pdf.js +1 -1
- package/package.json +2 -2
package/dist/import/pdf.js
CHANGED
|
@@ -45,7 +45,7 @@ const slideSizeOf = (width, height) => {
|
|
|
45
45
|
height: Math.max(1, Math.round(height * scale))
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
const opened = (buffer, filename) => getDocumentProxy(new Uint8Array(buffer)).catch((error) => {
|
|
48
|
+
const opened = (buffer, filename) => getDocumentProxy(new Uint8Array(buffer), { fontExtraProperties: true }).catch((error) => {
|
|
49
49
|
throw new ConvertError("unsupported", `${filename} is a PDF Vyva cannot open`, { cause: error });
|
|
50
50
|
});
|
|
51
51
|
const importPdf = async (buffer, filename, saveImage) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pollium/vyva-convert",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Server-side tools for Vyva content: clean what clients send, import Word, PowerPoint, PDF, OpenDocument, Markdown and image files, and export to PDF, Word, PowerPoint and HTML.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"pdf-lib": "1.17.1",
|
|
38
38
|
"pptxgenjs": "^4.0.1",
|
|
39
39
|
"sanitize-html": "^2.18.0",
|
|
40
|
-
"unpdf": "^1.
|
|
40
|
+
"unpdf": "^1.9.1",
|
|
41
41
|
"@pollium/vyva-core": "0.3.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|