@formepdf/react 0.28.0 → 0.30.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 +2 -2
package/dist/serialize.js
CHANGED
|
@@ -254,6 +254,8 @@ function serializeDocument(element) {
|
|
|
254
254
|
result.pdfUa = true;
|
|
255
255
|
if (props.pdfUa2)
|
|
256
256
|
result.pdfUa2 = true;
|
|
257
|
+
if (props.embedStandardFonts)
|
|
258
|
+
result.embedStandardFonts = true;
|
|
257
259
|
const cert = props.certification ?? props.signature;
|
|
258
260
|
if (cert) {
|
|
259
261
|
if (props.signature && !props.certification) {
|
|
@@ -1203,6 +1205,8 @@ export function serializeTemplate(element) {
|
|
|
1203
1205
|
result.pdfUa = true;
|
|
1204
1206
|
if (props.pdfUa2)
|
|
1205
1207
|
result.pdfUa2 = true;
|
|
1208
|
+
if (props.embedStandardFonts)
|
|
1209
|
+
result.embedStandardFonts = true;
|
|
1206
1210
|
const cert = props.certification ?? props.signature;
|
|
1207
1211
|
if (cert) {
|
|
1208
1212
|
if (props.signature && !props.certification) {
|
package/dist/types.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export interface DocumentProps {
|
|
|
23
23
|
pdfUa?: boolean;
|
|
24
24
|
/** 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". */
|
|
25
25
|
pdfUa2?: boolean;
|
|
26
|
+
/** 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. */
|
|
27
|
+
embedStandardFonts?: boolean;
|
|
26
28
|
/** Digital certification configuration. Certifies the PDF with an X.509 certificate. */
|
|
27
29
|
certification?: CertificationConfig;
|
|
28
30
|
/** @deprecated Use certification */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formepdf/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "JSX-to-JSON serializer for Forme PDF engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"test:watch": "vitest"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@formepdf/shared": "0.
|
|
21
|
+
"@formepdf/shared": "0.30.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^18 || ^19"
|