Added download functionality.

Needs to be tested in native builds (ios/android)
This commit is contained in:
Felix Kaspar
2023-10-26 23:52:47 +02:00
parent 29b633d7b4
commit 99ca6b6a26
4 changed files with 185 additions and 10 deletions

View File

@@ -4,6 +4,8 @@ import { rotatePages } from '../utils/pdf-operations.js';
import { FilePicker } from '@capawesome/capacitor-file-picker';
import download from 'downloadjs';
console.log(rotatePages);
async function rotate90() {
console.log("Test rotate 90 with Button Click");
@@ -19,7 +21,7 @@ async function rotate90() {
const rotated = await rotatePages(buffer, 90)
console.log(rotated);
download(rotated, "Rotated.pdf", "application/pdf");
}