mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 05:51:44 +03:00
Merge branch 'feat/pdfunlock2' into chore/all-my-stuffs
# Conflicts: # package.json # pnpm-lock.yaml
This commit is contained in:
commit
320a89790b
1 file changed
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Base64 } from 'js-base64';
|
import { Base64 } from 'js-base64';
|
||||||
import createQPDFModule from 'qpdf-wasm-esm-embedded';
|
import createQPDFModule from 'qpdf-wasm-esm-embedded';
|
||||||
import { useDownloadFileFromBase64Refs } from '@/composable/downloadBase64';
|
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||||
|
|
||||||
const status = ref<'idle' | 'done' | 'error' | 'processing'>('idle');
|
const status = ref<'idle' | 'done' | 'error' | 'processing'>('idle');
|
||||||
const file = ref<File | null>(null);
|
const file = ref<File | null>(null);
|
||||||
@@ -10,7 +10,7 @@ const base64OutputPDF = ref('');
|
|||||||
const fileName = ref('');
|
const fileName = ref('');
|
||||||
const logs = ref<string[]>([]);
|
const logs = ref<string[]>([]);
|
||||||
const fileExtension = ref('pdf');
|
const fileExtension = ref('pdf');
|
||||||
const { download } = useDownloadFileFromBase64Refs(
|
const { download } = useDownloadFileFromBase64(
|
||||||
{
|
{
|
||||||
source: base64OutputPDF,
|
source: base64OutputPDF,
|
||||||
filename: fileName,
|
filename: fileName,
|
||||||
|
|||||||
Reference in new issue
Block a user