pdf-oxide-wasm 0.3.40 → 0.3.42

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.
@@ -722,6 +722,13 @@ export class WasmPdfDocument {
722
722
  * Clear all pending erase operations for a page.
723
723
  */
724
724
  clearEraseRegions(page_index: number): void;
725
+ /**
726
+ * Convert the document to PDF/A compliance.
727
+ *
728
+ * Level must be one of: `"1a"`, `"1b"`, `"2a"`, `"2b"`, `"2u"`, `"3a"`, `"3b"`, `"3u"`.
729
+ * Returns a JS object with `success`, `level`, `actions`, and `errors` fields.
730
+ */
731
+ convertToPdfA(level: string): any;
725
732
  /**
726
733
  * Crop margins from all pages.
727
734
  */
@@ -1412,6 +1419,20 @@ export class WasmTimestamp {
1412
1419
  */
1413
1420
  export function disableLogging(): void;
1414
1421
 
1422
+ /**
1423
+ * Generate a 1D barcode as an SVG string.
1424
+ *
1425
+ * `barcodeType`: 0=Code128, 1=Code39, 2=EAN13, 3=EAN8, 4=UPCA, 5=ITF, 6=Code93, 7=Codabar.
1426
+ */
1427
+ export function generateBarcodeSvg(barcode_type: number, data: string): string;
1428
+
1429
+ /**
1430
+ * Generate a QR code as an SVG string.
1431
+ *
1432
+ * `errorCorrection`: 0=Low, 1=Medium, 2=Quartile, 3=High. `size`: advisory pixel size.
1433
+ */
1434
+ export function generateQrSvg(data: string, error_correction: number, size: number): string;
1435
+
1415
1436
  /**
1416
1437
  * Set the maximum log level for pdf_oxide messages.
1417
1438
  *
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./pdf_oxide_bg.js";
5
5
  __wbg_set_wasm(wasm);
6
6
 
7
7
  export {
8
- Align, ArtifactStyle, StreamingTable, WasmArtifact, WasmCertificate, WasmDocumentBuilder, WasmEmbeddedFont, WasmFluentPageBuilder, WasmFooter, WasmHeader, WasmOcrConfig, WasmOcrEngine, WasmPageTemplate, WasmPdf, WasmPdfDocument, WasmPdfPageRegion, WasmSignature, WasmTimestamp, disableLogging, setLogLevel, signPdfBytes
8
+ Align, ArtifactStyle, StreamingTable, WasmArtifact, WasmCertificate, WasmDocumentBuilder, WasmEmbeddedFont, WasmFluentPageBuilder, WasmFooter, WasmHeader, WasmOcrConfig, WasmOcrEngine, WasmPageTemplate, WasmPdf, WasmPdfDocument, WasmPdfPageRegion, WasmSignature, WasmTimestamp, disableLogging, generateBarcodeSvg, generateQrSvg, setLogLevel, signPdfBytes
9
9
  } from "./pdf_oxide_bg.js";