Chore(deps): Bump pdfjs-dist from 5.7.284 to 6.0.227 in /src-ui (#13080)

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2026-07-02 22:02:20 +00:00
committed by GitHub
parent 627875b1cf
commit ea1102b7f2
7 changed files with 74 additions and 72 deletions
@@ -27,7 +27,6 @@ import {
} from 'pdfjs-dist/web/pdf_viewer.mjs'
import {
PdfRenderMode,
PdfSource,
PdfZoomLevel,
PdfZoomScale,
PngxPdfDocumentProxy,
@@ -43,7 +42,8 @@ export class PngxPdfViewerComponent
{
private readonly document = inject<Document>(DOCUMENT)
@Input() src!: PdfSource
@Input() src!: string
@Input() password?: string
@Input() page?: number
@Output() pageChange = new EventEmitter<number>()
@Input() rotation?: number
@@ -93,7 +93,7 @@ export class PngxPdfViewerComponent
}
ngOnChanges(changes: SimpleChanges): void {
if (changes['src']) {
if (changes['src'] || changes['password']) {
this.resetViewerState()
if (this.src) {
this.loadDocument()
@@ -174,8 +174,12 @@ export class PngxPdfViewerComponent
'assets/js/pdf.worker.min.mjs',
this.document.baseURI
).toString()
this.loadingTask = getDocument(this.src)
let initOptions = {
url: this.src,
password: this.password,
withCredentials: true,
}
this.loadingTask = getDocument(initOptions)
try {
const pdf = await this.loadingTask.promise
this.pdf = pdf
@@ -2,8 +2,6 @@ export type PngxPdfDocumentProxy = {
numPages: number
}
export type PdfSource = string | { url: string; password?: string }
export enum PdfRenderMode {
Single = 'single',
All = 'all',