@s8fy/emf2svg 1.0.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.
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Convert an EMF (Enhanced Metafile) buffer to SVG string.
3
+ *
4
+ * @param buffer - EMF file data as ArrayBuffer or Uint8Array
5
+ * @returns Complete SVG XML string
6
+ * @throws Error if the buffer is not a valid EMF file
7
+ */
8
+ export declare function emf2svg(buffer: ArrayBuffer | Uint8Array): string
9
+
10
+ /**
11
+ * Convert a WMF (Windows Metafile) buffer to SVG string.
12
+ */
13
+ export declare function wmf2svg(buffer: ArrayBuffer | Uint8Array): string
14
+
15
+ /**
16
+ * Check if a buffer is a valid EMF file by verifying the magic number.
17
+ *
18
+ * @param buffer - Data to check
19
+ * @returns true if the buffer starts with a valid EMF header
20
+ */
21
+ export declare function isEmf(buffer: ArrayBuffer | Uint8Array): boolean
22
+
23
+ /**
24
+ * Check if a buffer looks like a WMF file.
25
+ */
26
+ export declare function isWmf(buffer: ArrayBuffer | Uint8Array): boolean
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Convert an EMF (Enhanced Metafile) buffer to SVG string.
3
+ *
4
+ * @param buffer - EMF file data as ArrayBuffer or Uint8Array
5
+ * @returns Complete SVG XML string
6
+ * @throws Error if the buffer is not a valid EMF file
7
+ */
8
+ export declare function emf2svg(buffer: ArrayBuffer | Uint8Array): string
9
+
10
+ /**
11
+ * Convert a WMF (Windows Metafile) buffer to SVG string.
12
+ */
13
+ export declare function wmf2svg(buffer: ArrayBuffer | Uint8Array): string
14
+
15
+ /**
16
+ * Check if a buffer is a valid EMF file by verifying the magic number.
17
+ *
18
+ * @param buffer - Data to check
19
+ * @returns true if the buffer starts with a valid EMF header
20
+ */
21
+ export declare function isEmf(buffer: ArrayBuffer | Uint8Array): boolean
22
+
23
+ /**
24
+ * Check if a buffer looks like a WMF file.
25
+ */
26
+ export declare function isWmf(buffer: ArrayBuffer | Uint8Array): boolean