update dependencies, improve PDF handling, and enhance printer integration

This commit is contained in:
2025-05-22 19:01:38 +03:00
parent e96db56927
commit bb8ea9a037
68 changed files with 692 additions and 493 deletions

View File

@@ -0,0 +1,15 @@
import {NativeModules} from 'react-native';
interface PdfToBitmapInterface {
convertPdfToBitmaps(pdfBase64: string): Promise<string[]>;
}
const { PdfToBitmap } = NativeModules as { PdfToBitmap: PdfToBitmapInterface };
export async function convertPdfToBitmaps(pdfBase64: string): Promise<string[]> {
try {
return await PdfToBitmap.convertPdfToBitmaps(pdfBase64);
} catch (error) {
throw new Error(`Failed to convert PDF to bitmaps: ${error}`);
}
}