diff --git a/src/tools/pdf-concat/pdf-concat.vue b/src/tools/pdf-concat/pdf-concat.vue index c0975525..44732662 100644 --- a/src/tools/pdf-concat/pdf-concat.vue +++ b/src/tools/pdf-concat/pdf-concat.vue @@ -19,6 +19,7 @@ const { download } = useDownloadFileFromBase64( source: base64OutputPDF, filename: fileName, }); +const qpdfCommand = ref(''); async function onProcessClicked() { const fileInputsValue = fileInputs.value; @@ -61,6 +62,7 @@ async function onProcessClicked() { } async function callMainWithManyInOutPdf(input_files: Array, args: string[], expected_exitcode: number) { + qpdfCommand.value = args.join(' '); logs.value = []; const mod = await createQPDFModule({ print(text: string) { @@ -158,6 +160,7 @@ async function callMainWithManyInOutPdf(input_files: Array, args: s +
{{ logs.join('\n') }}
diff --git a/src/tools/pdf-encrypt/pdf-encrypt.vue b/src/tools/pdf-encrypt/pdf-encrypt.vue index 6b6e4d94..72f4eec2 100644 --- a/src/tools/pdf-encrypt/pdf-encrypt.vue +++ b/src/tools/pdf-encrypt/pdf-encrypt.vue @@ -28,6 +28,7 @@ const { download } = useDownloadFileFromBase64Refs( filename: fileName, extension: fileExtension, }); +const qpdfCommand = ref(''); function onFileUploaded(uploadedFile: File) { file.value = uploadedFile; @@ -77,6 +78,7 @@ async function onProcessClicked() { } async function callMainWithInOutPdf(data: ArrayBuffer, args: string[], expected_exitcode: number) { + qpdfCommand.value = args.join(' '); logs.value = []; const mod = await createQPDFModule({ print(text: string) { @@ -202,6 +204,7 @@ const modificationRestrictionOptions = [ +
{{ logs.join('\n') }}
diff --git a/src/tools/pdf-extract/pdf-extract.vue b/src/tools/pdf-extract/pdf-extract.vue index c4b0fc4a..0333f5ca 100644 --- a/src/tools/pdf-extract/pdf-extract.vue +++ b/src/tools/pdf-extract/pdf-extract.vue @@ -17,6 +17,7 @@ const { download } = useDownloadFileFromBase64( filename: fileName, extension: 'pdf', }); +const qpdfCommand = ref(''); function onFileUploaded(uploadedFile: File) { file.value = uploadedFile; @@ -53,6 +54,7 @@ async function onProcessClicked() { } async function callMainWithInOutPdf(data: ArrayBuffer, args: string[], expected_exitcode: number) { + qpdfCommand.value = args.join(' '); logs.value = []; const mod = await createQPDFModule({ print(text: string) { @@ -119,6 +121,7 @@ async function callMainWithInOutPdf(data: ArrayBuffer, args: string[], expected_ +
{{ logs.join('\n') }}
diff --git a/src/tools/pdf-linearize/pdf-linearize.vue b/src/tools/pdf-linearize/pdf-linearize.vue index ea5c1ae8..feb5ccb5 100644 --- a/src/tools/pdf-linearize/pdf-linearize.vue +++ b/src/tools/pdf-linearize/pdf-linearize.vue @@ -16,6 +16,7 @@ const { download } = useDownloadFileFromBase64( filename: fileName, extension: fileExtension, }); +const qpdfCommand = ref(''); async function onFileUploaded(uploadedFile: File) { file.value = uploadedFile; @@ -44,6 +45,7 @@ async function onFileUploaded(uploadedFile: File) { } async function callMainWithInOutPdf(data: ArrayBuffer, args: string[], expected_exitcode: number) { + qpdfCommand.value = args.join(' '); logs.value = []; const mod = await createQPDFModule({ print(text: string) { @@ -81,6 +83,7 @@ async function callMainWithInOutPdf(data: ArrayBuffer, args: string[], expected_ +
{{ logs.join('\n') }}
diff --git a/src/tools/pdf-unlock/pdf-unlock.vue b/src/tools/pdf-unlock/pdf-unlock.vue index d5ccf8a5..9003cbb4 100644 --- a/src/tools/pdf-unlock/pdf-unlock.vue +++ b/src/tools/pdf-unlock/pdf-unlock.vue @@ -16,6 +16,7 @@ const { download } = useDownloadFileFromBase64( filename: fileName, extension: fileExtension, }); +const qpdfCommand = ref(''); async function onPDFFileUploaded(uploadedFile: File) { file.value = uploadedFile; @@ -44,6 +45,7 @@ async function onPDFFileUploaded(uploadedFile: File) { } async function callMainWithInOutPdf(data: ArrayBuffer, args: string[], expected_exitcode: number) { + qpdfCommand.value = args.join(' '); logs.value = []; const mod = await createQPDFModule({ print(text: string) { @@ -81,6 +83,7 @@ async function callMainWithInOutPdf(data: ArrayBuffer, args: string[], expected_ +
{{ logs.join('\n') }}