diff --git a/How to/Import Annotation on Document Load/.editorconfig b/How to/Import Annotation on Document Load/.editorconfig new file mode 100644 index 0000000..59d9a3a --- /dev/null +++ b/How to/Import Annotation on Document Load/.editorconfig @@ -0,0 +1,16 @@ +# Editor configuration, see https://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.ts] +quote_type = single + +[*.md] +max_line_length = off +trim_trailing_whitespace = false diff --git a/How to/Import Annotation on Document Load/.gitignore b/How to/Import Annotation on Document Load/.gitignore new file mode 100644 index 0000000..0711527 --- /dev/null +++ b/How to/Import Annotation on Document Load/.gitignore @@ -0,0 +1,42 @@ +# See http://help.github.com/ignore-files/ for more about ignoring files. + +# Compiled output +/dist +/tmp +/out-tsc +/bazel-out + +# Node +/node_modules +npm-debug.log +yarn-error.log + +# IDEs and editors +.idea/ +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace + +# Visual Studio Code +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +.history/* + +# Miscellaneous +/.angular/cache +.sass-cache/ +/connect.lock +/coverage +/libpeerconnection.log +testem.log +/typings + +# System files +.DS_Store +Thumbs.db diff --git a/How to/Import Annotation on Document Load/README.md b/How to/Import Annotation on Document Load/README.md new file mode 100644 index 0000000..b2cbbe3 --- /dev/null +++ b/How to/Import Annotation on Document Load/README.md @@ -0,0 +1,27 @@ +# Getting started + +This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.0.4. + +## Development server + +Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files. + +## Code scaffolding + +Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. + +## Build + +Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. + +## Running unit tests + +Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). + +## Running end-to-end tests + +Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. + +## Further help + +To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. diff --git a/How to/Import Annotation on Document Load/angular.json b/How to/Import Annotation on Document Load/angular.json new file mode 100644 index 0000000..419ea66 --- /dev/null +++ b/How to/Import Annotation on Document Load/angular.json @@ -0,0 +1,101 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "my-app": { + "projectType": "application", + "schematics": {}, + "root": "", + "sourceRoot": "src", + "prefix": "app", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/my-app", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js" + ], + "tsConfig": "tsconfig.app.json", + "assets": [ + "src/favicon.ico", + "src/assets" + ], + "styles": [ + "src/styles.css" + ], + "scripts": [] + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ], + "outputHashing": "all" + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "browserTarget": "my-app:build:production" + }, + "development": { + "browserTarget": "my-app:build:development" + } + }, + "defaultConfiguration": "development" + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "my-app:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "polyfills": [ + "zone.js", + "zone.js/testing" + ], + "tsConfig": "tsconfig.spec.json", + "assets": [ + "src/favicon.ico", + "src/assets" + ], + "styles": [ + "src/styles.css" + ], + "scripts": [] + } + } + } + } + }, + "cli": { + "analytics": "8d9c65e2-01c9-4a66-bc68-685c535cc647" + } +} diff --git a/How to/Import Annotation on Document Load/package.json b/How to/Import Annotation on Document Load/package.json new file mode 100644 index 0000000..052728f --- /dev/null +++ b/How to/Import Annotation on Document Load/package.json @@ -0,0 +1,39 @@ +{ + "name": "my-app", + "version": "0.0.0", + "scripts": { + "ng": "ng", + "start": "ng serve", + "build": "ng build", + "watch": "ng build --watch --configuration development", + "test": "ng test" + }, + "private": true, + "dependencies": { + "@angular/animations": "^15.0.0", + "@angular/common": "^15.0.0", + "@angular/compiler": "^15.0.0", + "@angular/core": "^15.0.0", + "@angular/forms": "^15.0.0", + "@angular/platform-browser": "^15.0.0", + "@angular/platform-browser-dynamic": "^15.0.0", + "@angular/router": "^15.0.0", + "@syncfusion/ej2-angular-pdfviewer": "*", + "rxjs": "~7.5.0", + "tslib": "^2.3.0", + "zone.js": "~0.12.0" + }, + "devDependencies": { + "@angular-devkit/build-angular": "^15.0.4", + "@angular/cli": "~15.0.4", + "@angular/compiler-cli": "^15.0.0", + "@types/jasmine": "~4.3.0", + "jasmine-core": "~4.5.0", + "karma": "~6.4.0", + "karma-chrome-launcher": "~3.1.0", + "karma-coverage": "~2.2.0", + "karma-jasmine": "~5.1.0", + "karma-jasmine-html-reporter": "~2.0.0", + "typescript": "~4.8.2" + } +} diff --git a/How to/Import Annotation on Document Load/src/app/app.component.css b/How to/Import Annotation on Document Load/src/app/app.component.css new file mode 100644 index 0000000..e69de29 diff --git a/How to/Import Annotation on Document Load/src/app/app.component.html b/How to/Import Annotation on Document Load/src/app/app.component.html new file mode 100644 index 0000000..e69de29 diff --git a/How to/Import Annotation on Document Load/src/app/app.component.spec.ts b/How to/Import Annotation on Document Load/src/app/app.component.spec.ts new file mode 100644 index 0000000..03e0fd7 --- /dev/null +++ b/How to/Import Annotation on Document Load/src/app/app.component.spec.ts @@ -0,0 +1,31 @@ +import { TestBed } from '@angular/core/testing'; +import { AppComponent } from './app.component'; + +describe('AppComponent', () => { + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ + AppComponent + ], + }).compileComponents(); + }); + + it('should create the app', () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.componentInstance; + expect(app).toBeTruthy(); + }); + + it(`should have as title 'my-app'`, () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.componentInstance; + expect(app.title).toEqual('my-app'); + }); + + it('should render title', () => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.nativeElement as HTMLElement; + expect(compiled.querySelector('.content span')?.textContent).toContain('my-app app is running!'); + }); +}); diff --git a/How to/Import Annotation on Document Load/src/app/app.component.ts b/How to/Import Annotation on Document Load/src/app/app.component.ts new file mode 100644 index 0000000..522b0bf --- /dev/null +++ b/How to/Import Annotation on Document Load/src/app/app.component.ts @@ -0,0 +1,58 @@ +import { Component, OnInit } from '@angular/core'; +import { + LinkAnnotationService, + BookmarkViewService, + MagnificationService, + ThumbnailViewService, + ToolbarService, + NavigationService, + AnnotationService, + TextSearchService, + TextSelectionService, + FormFieldsService, + FormDesignerService, + PrintService, + LoadEventArgs +} from '@syncfusion/ej2-angular-pdfviewer'; + +@Component({ + selector: 'app-root', + template: ` +
+ + +
+ `, + providers: [ + LinkAnnotationService, + BookmarkViewService, + MagnificationService, + ThumbnailViewService, + ToolbarService, + NavigationService, + AnnotationService, + TextSearchService, + TextSelectionService, + FormFieldsService, + FormDesignerService, + PrintService + ] +}) +export class AppComponent implements OnInit { + public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf'; + public resourceUrl: string = 'https://cdn.syncfusion.com/ej2/30.1.37/dist/ej2-pdfviewer-lib'; + + ngOnInit(): void { } + public documentLoaded(e: LoadEventArgs): void { + const viewer = (document.getElementById('pdfViewer') as any).ej2_instances[0]; + viewer.importAnnotation( + {"pdfAnnotation":{ "0":{"shapeAnnotation":[{"type":"Square","page":"0","title":"Guest","name":"c925524d-d7b5-490f-0d48-c3c79002884d","subject":"Rectangle","color":"#FF0000","FillOpacity":"0","opacity":"1","border":"0,0,1","width":"1","style":"solid","dashes":"0","rotation":"0","date":"D:20250804131852+05'30'","flags":"print","AllowedInteractions":{"unicodeData":"5B224E6F6E65225D"},"rect":{"x":"96.75","y":"657.75","width":"205.5","height":"741"},"N":"","appearance":"eyJhcCI6eyJOIjp7InN0cmVhbSI6eyJUeXBlIjp7Im5hbWUiOiJYT2JqZWN0In0sIlN1YnR5cGUiOnsibmFtZSI6IkZvcm0ifSwiQkJveCI6eyJhcnJheSI6W3siaW50IjoiMCJ9LHsiaW50IjoiMCJ9LHsiZml4ZWQiOiIxMDguNzUifSx7ImZpeGVkIjoiODMuMjUifV19LCJNYXRyaXgiOnsiYXJyYXkiOlt7ImludCI6IjEifSx7ImludCI6IjAifSx7ImludCI6IjAifSx7ImludCI6IjEifSx7ImludCI6IjAifSx7ImludCI6IjAifV19LCJSZXNvdXJjZXMiOnsiZGljdCI6eyJQcm9jU2V0Ijp7ImFycmF5IjpbeyJuYW1lIjoiUERGIn1dfX19LCJMZW5ndGgiOnsiaW50IjoiMTkwIn0sImRhdGEiOnsibW9kZSI6InJhdyIsImVuY29kaW5nIjoiaGV4IiwiYnl0ZXMiOiIyNTIwNDM2ODYxNkU2NzY1MjA2MzZGMkQ2RjcyNjQ2OTZFNjE3NDY1MjA3Mzc5NzM3NDY1NkQyMDc0NkYyMDZDNjU2Njc0MkY3NDZGNzAyRTBEMEEzMTJFMzAzMDIwMkUzMDMwMjAyRTMwMzAyMDMxMkUzMDMwMjAyRTMwMzAyMDM4MzMyRTMyMzUyMDIwNjM2RDBEMEEyRjQ0NjU3NjY5NjM2NTUyNDc0MjIwNDM1MzBEMEEyRjQ0NjU3NjY5NjM2NTUyNDc0MjIwNjM3MzBEMEE1QjVEMjAzMDIwNjQwRDBBMzEyRTMwMzAzMDIwNzcwRDBBMzAyMDZBMEQwQTMwMjA0QTBEMEEzMTJFMzAzMDMwMjAzMDJFMzAzMDMwMjAzMDJFMzAzMDMwMjA1MjQ3MEQwQTMwMkUzNTMwMzAyMDJEMzAyRTM1MzAzMDIwMzEzMDM3MkUzNzM1MzAyMDJEMzgzMjJFMzIzNTMwMjA3MjY1MEQwQTUzMEQwQSJ9fX19fQ=="},{"type":"Text","page":"0","State":"Unmarked","StateModel":"Review","flags":"hidden,norotate,nozoom,print","inreplyto":"c925524d-d7b5-490f-0d48-c3c79002884d","rect":{"x":"96.75","y":"926.25","width":"205.5","height":"843"}},{"type":"FreeText","page":"0","title":"Guest","date":"D:20250804131913+05'30'","name":"4bbd199d-73a9-4c34-12d2-92cf02c1b719","head":"OpenArrow","IT":"FreeTextTypeWriter","subject":"Text Box","contents":"Sample Text","rotation":"0","border":"0,0,0","width":"0","style":"solid","opacity":"1","defaultappearance":"1.000 1.000 1.000 rg ","FillOpacity":"0","defaultStyle":{"font":"Helvetica 12pt","style":"Regular","color":"#000000"},"contents-richtext":"

Sample Text

","flags":"print","AllowedInteractions":{"unicodeData":"5B224E6F6E65225D"},"fringe":"0,0,0,0","rect":{"x":"238.125","y":"704.1","width":"351.375","height":"740.85"},"Q":"0"},{"type":"Text","page":"0","State":"Unmarked","StateModel":"Review","flags":"hidden,norotate,nozoom,print","inreplyto":"4bbd199d-73a9-4c34-12d2-92cf02c1b719","rect":{"x":"238.125","y":"879.9","width":"351.375","height":"843.15"}},{"type":"Stamp","page":"0","subject":"Revised","name":"63b01928-b692-4d93-aa02-1b9043920d72","date":"D:20250804131921+05'30'","opacity":"1","title":"Guest","flags":"print","rotateAngle":"0","iconName":"Revised","icon":"#23DRevised","rotation":"0","N":"","border":"0,0,1","rect":{"x":"82.63363220214845","y":"561.1154925","width":"252.96886779785157","height":"618"},"appearance":"eyJhcCI6eyJOIjp7InN0cmVhbSI6eyJUeXBlIjp7Im5hbWUiOiJYT2JqZWN0In0sIlN1YnR5cGUiOnsibmFtZSI6IkZvcm0ifSwiQkJveCI6eyJhcnJheSI6W3siaW50IjoiMCJ9LHsiaW50IjoiMCJ9LH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FMzMzNzM2MjA1MjQ3MEQwQTMwMkUzMDM5MzgyMDMwMkUzMTM1MzMyMDMwMkUzMzM3MzYyMDcyNjcwRDBBMkYzNTY1NjUzMTMxMzczMTY2MkQ2MzYyMzE2MzJEMzQzNTY0MzUyRDYyMzgzNTYyMkQ2MzY1NjQzMzM4Mzk2NjMzNjEzODM2NjIyMDM4MkUzMDMwMzAyMDU0NjYwRDBBMzEyRTMwMzAyMDJFMzAzMDIwMkUzMDMwMjAzMTJFMzAzMDIwMzUyRTMwMzAyMDJEMzUzMTJFMzgzMjIwMjA1NDZEMEQwQTI4NDI3OTIwNDc3NTY1NzM3NDIwNjE3NDIwMzgyRjM0MkYzMjMwMzIzNTIwMzEzQTMxMzkzQTMyMzAyMDUwNEQyOTI3MEQwQTMwMkUzMDMwMzAyMDJEMzYyRTMyMzgzMDIwNTQ2NDBEMEE0NTU0MEQwQTUxMEQwQSJ9fX19fQ=="},{"type":"Text","page":"0","State":"Unmarked","StateModel":"Review","flags":"hidden,norotate,nozoom,print","inreplyto":"63b01928-b692-4d93-aa02-1b9043920d72","rect":{"x":"82.63363220214845","y":"1022.8845075","width":"252.96886779785157","height":"966"}}]},"2":{"shapeAnnotation":[{"type":"Link","page":"2","rect":{"x":"313.87","y":"544.57","width":"414.3","height":"559.75"},"width":"0","flags":"print","URI":"http://www.syncfusion.com/"},{"type":"Link","page":"2","rect":{"x":"87.75","y":"499.03","width":"188.18","height":"514.21"},"width":"0","flags":"print","URI":"http://www.syncfusion.com/"},{"type":"Link","page":"2","rect":{"x":"331.53","y":"483.86","width":"431.96","height":"499.03"},"width":"0","flags":"print","URI":"http://www.syncfusion.com/"}]},"3":{"shapeAnnotation":[{"type":"Link","page":"3","rect":{"x":"87.75","y":"667.05","width":"523.75","height":"679.7"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"87.75","y":"654.4","width":"523.75","height":"667.05"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"641.76","width":"523.75","height":"654.4"},"width":"0","flags":"print","Dest":",XYZ,87,319,0"},{"type":"Link","page":"3","rect":{"x":"87.75","y":"628.33","width":"523.75","height":"641.76"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"615.68","width":"523.75","height":"628.33"},"width":"0","flags":"print","Dest":",XYZ,87,219,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"603.03","width":"523.75","height":"615.68"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"590.38","width":"523.75","height":"603.03"},"width":"0","flags":"print","Dest":",XYZ,87,306,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"577.73","width":"523.75","height":"590.38"},"width":"0","flags":"print","Dest":",XYZ,87,187,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"565.08","width":"523.75","height":"577.73"},"width":"0","flags":"print","Dest":",XYZ,87,657,0"},{"type":"Link","page":"3","rect":{"x":"87.75","y":"551.66","width":"523.75","height":"565.08"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"539.01","width":"523.75","height":"551.66"},"width":"0","flags":"print","Dest":",XYZ,87,494,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"526.36","width":"523.75","height":"539.01"},"width":"0","flags":"print","Dest":",XYZ,87,325,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"513.71","width":"523.75","height":"526.36"},"width":"0","flags":"print","Dest":",XYZ,87,218,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"501.06","width":"523.75","height":"513.71"},"width":"0","flags":"print","Dest":",XYZ,87,260,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"488.41","width":"523.75","height":"501.06"},"width":"0","flags":"print","Dest":",XYZ,87,415,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"475.76","width":"523.75","height":"488.41"},"width":"0","flags":"print","Dest":",XYZ,87,460,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"463.11","width":"523.75","height":"475.76"},"width":"0","flags":"print","Dest":",XYZ,87,604,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"450.46","width":"523.75","height":"463.11"},"width":"0","flags":"print","Dest":",XYZ,87,401,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"437.81","width":"523.75","height":"450.46"},"width":"0","flags":"print","Dest":",XYZ,87,245,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"425.17","width":"523.75","height":"437.81"},"width":"0","flags":"print","Dest":",XYZ,87,590,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"412.52","width":"523.75","height":"425.17"},"width":"0","flags":"print","Dest":",XYZ,87,269,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"399.87","width":"523.75","height":"412.52"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"387.22","width":"523.75","height":"399.87"},"width":"0","flags":"print","Dest":",XYZ,87,529,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"374.57","width":"523.75","height":"387.22"},"width":"0","flags":"print","Dest":",XYZ,87,287,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"361.92","width":"523.75","height":"374.57"},"width":"0","flags":"print","Dest":",XYZ,87,670,0"},{"type":"Link","page":"3","rect":{"x":"87.75","y":"348.49","width":"523.75","height":"361.92"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"335.84","width":"523.75","height":"348.49"},"width":"0","flags":"print","Dest":",XYZ,87,592,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"323.2","width":"523.75","height":"335.84"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"310.55","width":"523.75","height":"323.2"},"width":"0","flags":"print","Dest":",XYZ,87,645,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"297.9","width":"523.75","height":"310.55"},"width":"0","flags":"print","Dest":",XYZ,87,463,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"285.25","width":"523.75","height":"297.9"},"width":"0","flags":"print","Dest":",XYZ,87,669,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"272.6","width":"523.75","height":"285.25"},"width":"0","flags":"print","Dest":",XYZ,87,341,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"259.95","width":"523.75","height":"272.6"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"247.3","width":"523.75","height":"259.95"},"width":"0","flags":"print","Dest":",XYZ,87,367,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"234.65","width":"523.75","height":"247.3"},"width":"0","flags":"print","Dest":",XYZ,87,127,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"222","width":"523.75","height":"234.65"},"width":"0","flags":"print","Dest":",XYZ,87,280,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"209.36","width":"523.75","height":"222"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"196.71","width":"523.75","height":"209.36"},"width":"0","flags":"print","Dest":",XYZ,87,400,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"184.06","width":"523.75","height":"196.71"},"width":"0","flags":"print","Dest":",XYZ,87,333,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"171.41","width":"523.75","height":"184.06"},"width":"0","flags":"print","Dest":",XYZ,87,682,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"158.76","width":"523.75","height":"171.41"},"width":"0","flags":"print","Dest":",XYZ,87,480,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"146.11","width":"523.75","height":"158.76"},"width":"0","flags":"print","Dest":",XYZ,87,251,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"133.46","width":"523.75","height":"146.11"},"width":"0","flags":"print","Dest":",XYZ,87,519,0"},{"type":"Link","page":"3","rect":{"x":"107.75","y":"120.81","width":"523.75","height":"133.46"},"width":"0","flags":"print","Dest":",XYZ,87,517,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"108.16","width":"523.75","height":"120.81"},"width":"0","flags":"print","Dest":",XYZ,87,529,0"},{"type":"Link","page":"3","rect":{"x":"87.75","y":"94.736","width":"523.75","height":"108.16"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"3","rect":{"x":"97.75","y":"82.087","width":"523.75","height":"94.736"},"width":"0","flags":"print","Dest":",XYZ,87,620,0"}]},"4":{"shapeAnnotation":[{"type":"Link","page":"4","rect":{"x":"97.75","y":"707.35","width":"523.75","height":"720"},"width":"0","flags":"print","Dest":",XYZ,87,311,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"694.7","width":"523.75","height":"707.35"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"682.05","width":"523.75","height":"694.7"},"width":"0","flags":"print","Dest":",XYZ,87,641,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"669.4","width":"523.75","height":"682.05"},"width":"0","flags":"print","Dest":",XYZ,87,194,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"656.76","width":"523.75","height":"669.4"},"width":"0","flags":"print","Dest":",XYZ,87,358,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"644.11","width":"523.75","height":"656.76"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"631.46","width":"523.75","height":"644.11"},"width":"0","flags":"print","Dest":",XYZ,87,414,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"618.81","width":"523.75","height":"631.46"},"width":"0","flags":"print","Dest":",XYZ,87,669,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"606.16","width":"523.75","height":"618.81"},"width":"0","flags":"print","Dest":",XYZ,87,480,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"593.51","width":"523.75","height":"606.16"},"width":"0","flags":"print","Dest":",XYZ,87,389,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"580.86","width":"523.75","height":"593.51"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"568.21","width":"523.75","height":"580.86"},"width":"0","flags":"print","Dest":",XYZ,87,215,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"555.56","width":"523.75","height":"568.21"},"width":"0","flags":"print","Dest":",XYZ,87,457,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"542.92","width":"523.75","height":"555.56"},"width":"0","flags":"print","Dest":",XYZ,87,362,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"530.27","width":"523.75","height":"542.92"},"width":"0","flags":"print","Dest":",XYZ,87,269,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"517.62","width":"523.75","height":"530.27"},"width":"0","flags":"print","Dest":",XYZ,87,668,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"504.97","width":"523.75","height":"517.62"},"width":"0","flags":"print","Dest":",XYZ,87,350,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"492.32","width":"523.75","height":"504.97"},"width":"0","flags":"print","Dest":",XYZ,87,371,0"},{"type":"Link","page":"4","rect":{"x":"87.75","y":"479.67","width":"523.75","height":"492.32"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"467.02","width":"523.75","height":"479.67"},"width":"0","flags":"print","Dest":",XYZ,87,570,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"454.37","width":"523.75","height":"467.02"},"width":"0","flags":"print","Dest":",XYZ,87,471,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"441.72","width":"523.75","height":"454.37"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"429.07","width":"523.75","height":"441.72"},"width":"0","flags":"print","Dest":",XYZ,87,478,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"416.43","width":"523.75","height":"429.07"},"width":"0","flags":"print","Dest":",XYZ,87,454,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"403.78","width":"523.75","height":"416.43"},"width":"0","flags":"print","Dest":",XYZ,87,388,0"},{"type":"Link","page":"4","rect":{"x":"87.75","y":"390.35","width":"523.75","height":"403.78"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"377.7","width":"523.75","height":"390.35"},"width":"0","flags":"print","Dest":",XYZ,87,481,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"365.05","width":"523.75","height":"377.7"},"width":"0","flags":"print","Dest":",XYZ,87,337,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"352.4","width":"523.75","height":"365.05"},"width":"0","flags":"print","Dest":",XYZ,87,243,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"339.75","width":"523.75","height":"352.4"},"width":"0","flags":"print","Dest":",XYZ,87,201,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"327.1","width":"523.75","height":"339.75"},"width":"0","flags":"print","Dest":",XYZ,87,363,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"314.46","width":"523.75","height":"327.1"},"width":"0","flags":"print","Dest":",XYZ,87,281,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"301.81","width":"523.75","height":"314.46"},"width":"0","flags":"print","Dest":",XYZ,87,444,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"289.16","width":"523.75","height":"301.81"},"width":"0","flags":"print","Dest":",XYZ,87,226,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"276.51","width":"523.75","height":"289.16"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"263.86","width":"523.75","height":"276.51"},"width":"0","flags":"print","Dest":",XYZ,87,415,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"251.21","width":"523.75","height":"263.86"},"width":"0","flags":"print","Dest":",XYZ,87,334,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"238.56","width":"523.75","height":"251.21"},"width":"0","flags":"print","Dest":",XYZ,87,682,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"225.91","width":"523.75","height":"238.56"},"width":"0","flags":"print","Dest":",XYZ,87,488,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"213.26","width":"523.75","height":"225.91"},"width":"0","flags":"print","Dest":",XYZ,87,268,0"},{"type":"Link","page":"4","rect":{"x":"107.75","y":"200.62","width":"523.75","height":"213.26"},"width":"0","flags":"print","Dest":",XYZ,87,543,0"},{"type":"Link","page":"4","rect":{"x":"97.75","y":"187.97","width":"523.75","height":"200.62"},"width":"0","flags":"print","Dest":",XYZ,87,641,0"},{"type":"Link","page":"4","rect":{"x":"87.75","y":"175.32","width":"523.75","height":"187.97"},"width":"0","flags":"print","Dest":",XYZ,87,720,0"}]},"6":{"shapeAnnotation":[{"type":"Link","page":"6","rect":{"x":"114.65","y":"554.29","width":"286.81","height":"578.94"},"width":"0","flags":"print","URI":"mailto:succinctly-series@syncfusion.com"}]},"7":{"shapeAnnotation":[{"type":"Link","page":"7","rect":{"x":"236.94","y":"494.27","width":"265.29","height":"506.92"},"width":"0","flags":"print","URI":"http://www.pdflabs.com/docs/install-pdftk/"},{"type":"Link","page":"7","rect":{"x":"91.413","y":"406.37","width":"185.79","height":"419.02"},"width":"0","flags":"print","URI":"http://itextpdf.com/"},{"type":"Link","page":"7","rect":{"x":"87.75","y":"319.13","width":"316.02","height":"343.78"},"width":"0","flags":"print","URI":"https://bitbucket.org/syncfusion/pdf-succinctly/"},{"type":"Link","page":"7","rect":{"x":"351.9","y":"262.38","width":"446.3","height":"275.03"},"width":"0","flags":"print","URI":"http://www.iso.org/iso/catalogue_detail.htm?csnumber=51502"},{"type":"Link","page":"7","rect":{"x":"329.28","y":"249.74","width":"524.25","height":"262.38"},"width":"0","flags":"print","URI":"http://www.adobe.com/devnet/pdf.html"},{"type":"Link","page":"7","rect":{"x":"87.75","y":"225.09","width":"107.54","height":"249.74"},"width":"0","flags":"print","URI":"http://www.adobe.com/devnet/pdf.html"}]},"12":{"shapeAnnotation":[{"type":"Link","page":"12","rect":{"x":"217.35","y":"582.81","width":"270.76","height":"595.46"},"width":"0","flags":"print","URI":"http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/"},{"type":"Link","page":"12","rect":{"x":"267.47","y":"519.24","width":"492.69","height":"531.89"},"width":"0","flags":"print","URI":"https://bitbucket.org/syncfusion/pdf-succinctly"}]},"50":{"shapeAnnotation":[{"type":"Link","page":"50","rect":{"x":"227.17","y":"569.51","width":"284.86","height":"582.16"},"width":"0","flags":"print","URI":"http://itextpdf.com/"},{"type":"Link","page":"50","rect":{"x":"284.04","y":"374.6","width":"416.32","height":"399.25"},"width":"0","flags":"print","URI":"http://api.itextpdf.com/itext"},{"type":"Link","page":"50","rect":{"x":"369.63","y":"293.21","width":"437.71","height":"314.86"},"width":"0","flags":"print","URI":"http://sourceforge.net/projects/itextsharp/files/itextsharp/"},{"type":"Link","page":"50","rect":{"x":"274.81","y":"174.52","width":"500.02","height":"199.17"},"width":"0","flags":"print","URI":"https://bitbucket.org/syncfusion/pdf-succinctly"}]},"57":{"shapeAnnotation":[{"type":"Link","page":"57","rect":{"x":"99.98","y":"568.8","width":"198.63","height":"582.43"},"width":"0","flags":"print","URI":"http://www.fontsquirrel.com/fonts/ChunkFive"},{"type":"Link","page":"57","rect":{"x":"267.5","y":"568.8","width":"355.76","height":"582.43"},"width":"0","flags":"print","URI":"http://www.fontsquirrel.com/"}]},"58":{"shapeAnnotation":[{"type":"Link","page":"58","rect":{"x":"117.7","y":"641.84","width":"212.82","height":"667.46"},"width":"0","flags":"print","Dest":",XYZ,87,198,0"},{"type":"Link","page":"58","rect":{"x":"277.29","y":"522.5","width":"303.8","height":"547.15"},"width":"0","flags":"print","URI":"http://mvc.syncfusion.com/sfmvcpdfsamplebrowser"}]},"59":{"shapeAnnotation":[{"type":"Link","page":"59","rect":{"x":"347.01","y":"532.21","width":"524.25","height":"544.86"},"width":"0","flags":"print","URI":"http://www.adobe.com/devnet/pdf.html"},{"type":"Link","page":"59","rect":{"x":"87.75","y":"519.56","width":"146.06","height":"532.21"},"width":"0","flags":"print","URI":"http://www.adobe.com/devnet/pdf.html"}]}}} + ); + } + +} diff --git a/How to/Import Annotation on Document Load/src/app/app.module.ts b/How to/Import Annotation on Document Load/src/app/app.module.ts new file mode 100644 index 0000000..fadea53 --- /dev/null +++ b/How to/Import Annotation on Document Load/src/app/app.module.ts @@ -0,0 +1,36 @@ +import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { + PdfViewerModule, + LinkAnnotationService, + BookmarkViewService, + MagnificationService, + ThumbnailViewService, + ToolbarService, + NavigationService, + TextSearchService, + TextSelectionService, + PrintService +} from '@syncfusion/ej2-angular-pdfviewer'; +import { AppComponent } from './app.component'; + +@NgModule({ + declarations: [ + AppComponent + ], + imports: [ + BrowserModule, + PdfViewerModule + ], + providers: [LinkAnnotationService, + BookmarkViewService, + MagnificationService, + ThumbnailViewService, + ToolbarService, + NavigationService, + TextSearchService, + TextSelectionService, + PrintService], + bootstrap: [AppComponent] +}) +export class AppModule { } diff --git a/How to/Import Annotation on Document Load/src/assets/.gitkeep b/How to/Import Annotation on Document Load/src/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/How to/Import Annotation on Document Load/src/favicon.ico b/How to/Import Annotation on Document Load/src/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/How to/Import Annotation on Document Load/src/favicon.ico differ diff --git a/How to/Import Annotation on Document Load/src/index.html b/How to/Import Annotation on Document Load/src/index.html new file mode 100644 index 0000000..7fa8cd9 --- /dev/null +++ b/How to/Import Annotation on Document Load/src/index.html @@ -0,0 +1,13 @@ + + + + + MyApp + + + + + + + + diff --git a/How to/Import Annotation on Document Load/src/main.ts b/How to/Import Annotation on Document Load/src/main.ts new file mode 100644 index 0000000..c58dc05 --- /dev/null +++ b/How to/Import Annotation on Document Load/src/main.ts @@ -0,0 +1,7 @@ +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; + + +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err)); diff --git a/How to/Import Annotation on Document Load/src/styles.css b/How to/Import Annotation on Document Load/src/styles.css new file mode 100644 index 0000000..fc9d8ef --- /dev/null +++ b/How to/Import Annotation on Document Load/src/styles.css @@ -0,0 +1,10 @@ +/* You can add global styles to this file, and also import other style files */ +@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-pdfviewer/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-notifications/styles/material.css'; \ No newline at end of file diff --git a/How to/Import Annotation on Document Load/tsconfig.app.json b/How to/Import Annotation on Document Load/tsconfig.app.json new file mode 100644 index 0000000..374cc9d --- /dev/null +++ b/How to/Import Annotation on Document Load/tsconfig.app.json @@ -0,0 +1,14 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "types": [] + }, + "files": [ + "src/main.ts" + ], + "include": [ + "src/**/*.d.ts" + ] +} diff --git a/How to/Import Annotation on Document Load/tsconfig.json b/How to/Import Annotation on Document Load/tsconfig.json new file mode 100644 index 0000000..ed966d4 --- /dev/null +++ b/How to/Import Annotation on Document Load/tsconfig.json @@ -0,0 +1,33 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "sourceMap": true, + "declaration": false, + "downlevelIteration": true, + "experimentalDecorators": true, + "moduleResolution": "node", + "importHelpers": true, + "target": "ES2022", + "module": "ES2022", + "useDefineForClassFields": false, + "lib": [ + "ES2022", + "dom" + ] + }, + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + } +} diff --git a/How to/Import Annotation on Document Load/tsconfig.spec.json b/How to/Import Annotation on Document Load/tsconfig.spec.json new file mode 100644 index 0000000..be7e9da --- /dev/null +++ b/How to/Import Annotation on Document Load/tsconfig.spec.json @@ -0,0 +1,14 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/spec", + "types": [ + "jasmine" + ] + }, + "include": [ + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +}