feat(docker): add docker configuration files and update styles
refactor: convert script tags to link tags for stylesheets in HTML files fix: update PDF download to use Uint8Array for blob creation style: reformat CSS file for better readability and organization
This commit is contained in:
@@ -26,7 +26,7 @@ export async function heicToPdf() {
|
||||
page.drawImage(pngImage, { x: 0, y: 0, width: pngImage.width, height: pngImage.height });
|
||||
}
|
||||
const pdfBytes = await pdfDoc.save();
|
||||
downloadFile(new Blob([pdfBytes], { type: 'application/pdf' }), 'from_heic.pdf');
|
||||
downloadFile(new Blob([new Uint8Array(pdfBytes)], { type: 'application/pdf' }), 'from_heic.pdf');
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
showAlert('Error', 'Failed to convert HEIC to PDF. One of the files may be invalid or unsupported.');
|
||||
|
||||
Reference in New Issue
Block a user