result) { resolve(e.target.result); } }; fileReader.onerror = (e) => { reject(new Error('[@pdfme/schemas] File reading failed')); }; let file: File | null = null; if (input instanceof FileList && input.length > 0) { file = input[0]; } else if (input instanceof File)...