-
-
+ @if (loading()) {
+
+ }
+
+ @if (errorMessage()) {
+
{{ errorMessage() }}
+ }
+
+ @let downloadUrl = downloadUrl$ | async;
+ @if (downloadUrl) {
+
-
Your file is uploaded and processing. Please wait for a moment.
-
- } @if(errorMessage()) {
-
{{ errorMessage() }}
- } @if(downloadUrl$ | async; as downloadUrl) {
-
-
}
@@ -129,7 +128,7 @@ export default class PdfPasswordRemovalComponent extends PdfHandlerBase {
const storageRef = ref(
this.storage,
- `${this.generateFilePath()}/${fileName}`
+ `${this.generateFilePath()}/${fileName}`,
)
const result = await uploadBytesResumable(storageRef, file)
const { uid = 'anonymous' } =
diff --git a/pdf/src/app/pages/pdf-to-images.page.ts b/pdf/src/app/pages/pdf-to-images.page.ts
index d3a4746..3d2a2a2 100644
--- a/pdf/src/app/pages/pdf-to-images.page.ts
+++ b/pdf/src/app/pages/pdf-to-images.page.ts
@@ -9,6 +9,7 @@ import { BuyMeACoffeeComponent } from '@pdfun/ui/common'
import { nanoid } from 'nanoid'
import { ButtonModule } from 'primeng/button'
import { FileUploadHandlerEvent, FileUploadModule } from 'primeng/fileupload'
+import { ProgressBarModule } from 'primeng/progressbar'
import { ToastModule } from 'primeng/toast'
import { DisclaimerComponent } from '../shared/components/disclaimer/disclaimer.component'
import { PdfHandlerBase } from '../shared/components/pdf-handler-base/pdf-handler-base.directive'
@@ -30,6 +31,7 @@ export const routeMeta: RouteMeta = {
FileUploadModule,
BuyMeACoffeeComponent,
DisclaimerComponent,
+ ProgressBarModule,
],
template: `
@@ -54,29 +56,28 @@ export const routeMeta: RouteMeta = {
class="mb-4"
/>
- @if(loading()) {
-
-
-
+ @if (loading()) {
+
+ }
+
+ @if (errorMessage()) {
+
{{ errorMessage() }}
+ }
+
+ @let downloadUrl = downloadUrl$ | async;
+ @if (downloadUrl) {
+
-
Your file is uploaded and processing. Please wait for a moment.
-
- } @if(errorMessage()) {
-
{{ errorMessage() }}
- } @if(downloadUrl$ | async; as downloadUrl) {
-
-
-
- Download Images
-
-
-
}
@@ -99,7 +100,7 @@ export default class PdfToImagesComponent extends PdfHandlerBase {
const storageRef = ref(
this.storage,
- `${this.generateFilePath()}/${fileName}`
+ `${this.generateFilePath()}/${fileName}`,
)
const result = await uploadBytesResumable(storageRef, file)
const { uid = 'anonymous' } =