moveItemInArray,
} from '@angular/cdk/drag-drop'
import { CommonModule } from '@angular/common'
-import { Component, OnInit, inject } from '@angular/core'
+import { Component, inject } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
import { PDFDocumentProxy, PdfViewerModule } from 'ng2-pdf-viewer'
NgxBootstrapIconsModule,
],
})
-export class PDFEditorComponent
- extends ConfirmDialogComponent
- implements OnInit
-{
+export class PDFEditorComponent extends ConfirmDialogComponent {
private documentService = inject(DocumentService)
activeModal = inject(NgbActiveModal)
return this.documentService.getPreviewUrl(this.documentID)
}
- ngOnInit() {}
-
pdfLoaded(pdf: PDFDocumentProxy) {
this.totalPages = pdf.numPages
this.pages = Array.from({ length: this.totalPages }, (_, i) => ({