+
= {};
@@ -167,6 +169,7 @@ export class WatermarkScreenComponent {
this._instance.UI.setTheme(this._userPreferenceService.getTheme());
this._instance.Core.documentViewer.addEventListener('documentLoaded', async () => {
+ this.#loaded$.next(true);
this._loadingService.stop();
await this._drawWatermark();
});
@@ -201,11 +204,11 @@ export class WatermarkScreenComponent {
this.form.controls.orientation.value,
this.form.controls.opacity.value,
this.form.controls.hexColor.value,
- [1],
+ [1, 2],
this._licenseService.activeLicenseKey,
);
this._instance.Core.documentViewer.refreshAll();
- this._instance.Core.documentViewer.updateView([0], 0);
+ this._instance.Core.documentViewer.updateView([0, 1], 0);
}
private _getForm() {
@@ -225,4 +228,8 @@ export class WatermarkScreenComponent {
return form;
}
+
+ navigateTo($event: number) {
+ this._instance.Core.documentViewer.displayPageLocation($event, 0, 0);
+ }
}
diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts
index b33918c7f..a2169c3fb 100644
--- a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts
+++ b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts
@@ -18,6 +18,7 @@ import { RedRoleGuard } from '@users/red-role.guard';
import { WATERMARK_ID } from '@red/domain';
import { WatermarkExistsGuard } from '@guards/watermark-exists.guard';
import { TranslateModule } from '@ngx-translate/core';
+import { PaginatorComponent } from './paginator/paginator.component';
const routes = [
{
@@ -47,7 +48,7 @@ const routes = [
];
@NgModule({
- declarations: [WatermarkScreenComponent, WatermarksListingScreenComponent],
+ declarations: [WatermarkScreenComponent, WatermarksListingScreenComponent, PaginatorComponent],
imports: [
RouterModule.forChild(routes),
CommonModule,
diff --git a/apps/red-ui/src/assets/pdftron/blank.pdf b/apps/red-ui/src/assets/pdftron/blank.pdf
index 757bb1f36..03dc3db0a 100644
Binary files a/apps/red-ui/src/assets/pdftron/blank.pdf and b/apps/red-ui/src/assets/pdftron/blank.pdf differ