@formepdf/preact 0.28.0 → 0.29.0
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/serialize.js +4 -0
- package/dist/types.d.ts +2 -0
- package/package.json +3 -3
package/dist/serialize.js
CHANGED
|
@@ -258,6 +258,8 @@ function serializeDocument(element) {
|
|
|
258
258
|
result.pdfUa = true;
|
|
259
259
|
if (props.pdfUa2)
|
|
260
260
|
result.pdfUa2 = true;
|
|
261
|
+
if (props.embedStandardFonts)
|
|
262
|
+
result.embedStandardFonts = true;
|
|
261
263
|
const cert = props.certification ?? props.signature;
|
|
262
264
|
if (cert) {
|
|
263
265
|
if (props.signature && !props.certification) {
|
|
@@ -1207,6 +1209,8 @@ export function serializeTemplate(element) {
|
|
|
1207
1209
|
result.pdfUa = true;
|
|
1208
1210
|
if (props.pdfUa2)
|
|
1209
1211
|
result.pdfUa2 = true;
|
|
1212
|
+
if (props.embedStandardFonts)
|
|
1213
|
+
result.embedStandardFonts = true;
|
|
1210
1214
|
const cert = props.certification ?? props.signature;
|
|
1211
1215
|
if (cert) {
|
|
1212
1216
|
if (props.signature && !props.certification) {
|
package/dist/types.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export interface DocumentProps {
|
|
|
22
22
|
pdfUa?: boolean;
|
|
23
23
|
/** PDF/UA-2 accessibility (ISO 14289-2:2024) — the PDF 2.0 successor to pdfUa. Implies pdfVersion "2.0" (every font embedded); composes with pdfa "4"/"4f". */
|
|
24
24
|
pdfUa2?: boolean;
|
|
25
|
+
/** Embed Helvetica, Times and Courier as their metric-compatible substitutes (register `@formepdf/fonts-standard`) with no PDF/UA or PDF/A claim, so the PDF looks the same in every viewer. Subset; layout unchanged. */
|
|
26
|
+
embedStandardFonts?: boolean;
|
|
25
27
|
/** Digital certification configuration. Certifies the PDF with an X.509 certificate. */
|
|
26
28
|
certification?: CertificationConfig;
|
|
27
29
|
/** @deprecated Use certification */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formepdf/preact",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Preact-native adapter for Forme PDF engine. Same components, same props as @formepdf/react, without the React runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"test:watch": "vitest"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@formepdf/shared": "0.
|
|
21
|
+
"@formepdf/shared": "0.29.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"preact": "^10.19.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@formepdf/react": "0.
|
|
27
|
+
"@formepdf/react": "0.29.0",
|
|
28
28
|
"@types/react": "^19.0.0",
|
|
29
29
|
"preact": "^10.19.0",
|
|
30
30
|
"react": "^19.0.0",
|