import { NgModule , ValueProvider } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { PdfViewerComponent } from './pdfviewer.component' ; import { PdfViewerModule } from './pdfviewer.module' ; import { LinkAnnotation , BookmarkView , Magnification , ThumbnailView , Toolbar , Navigation , Print , TextSelection , TextSearch , Annotation , FormDesigner , FormFields } from '@syncfusion/ej2-pdfviewer' ; export const LinkAnnotationService = { provide : 'PdfViewerLinkAnnotation' , useValue : LinkAnnotation } ; export const BookmarkViewService = { provide : 'PdfViewerBookmarkView' , useValue : BookmarkView } ; export const MagnificationService = { provide : 'PdfViewerMagnification' , useValue : Magnification } ; export const ThumbnailViewService = { provide : 'PdfViewerThumbnailView' , useValue : ThumbnailView } ; export const ToolbarService = { provide : 'PdfViewerToolbar' , useValue : Toolbar } ; export const NavigationService = { provide : 'PdfViewerNavigation' , useValue : Navigation } ; export const PrintService = { provide : 'PdfViewerPrint' , useValue : Print } ; export const TextSelectionService = { provide : 'PdfViewerTextSelection' , useValue : TextSelection } ; export const TextSearchService = { provide : 'PdfViewerTextSearch' , useValue : TextSearch } ; export const AnnotationService = { provide : 'PdfViewerAnnotation' , useValue : Annotation } ; export const FormDesignerService = { provide : 'PdfViewerFormDesigner' , useValue : FormDesigner } ; export const FormFieldsService = { provide : 'PdfViewerFormFields' , useValue : FormFields } ; /**
 * NgModule definition for the PdfViewer component with providers.
 */ @ NgModule ( { imports : [ CommonModule , PdfViewerModule ] , exports : [ PdfViewerModule ] , providers : [ LinkAnnotationService , BookmarkViewService , MagnificationService , ThumbnailViewService , ToolbarService , NavigationService , PrintService , TextSelectionService , TextSearchService , AnnotationService , FormDesignerService , FormFieldsService ] } ) export class PdfViewerAllModule { }