Skip to content

Commit 7e0ac2a

Browse files
Merge pull request #120 from SyncfusionExamples/1057857-TextStamp
1057857: Text and Image Stamp Samples in Angular PDF Viewer
2 parents 421e634 + 66a8a69 commit 7e0ac2a

25 files changed

Lines changed: 1061 additions & 0 deletions
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
!.vscode/mcp.json
30+
.history/*
31+
32+
# Miscellaneous
33+
/.angular/cache
34+
.sass-cache/
35+
/connect.lock
36+
/coverage
37+
/libpeerconnection.log
38+
testem.log
39+
/typings
40+
__screenshots__/
41+
42+
# System files
43+
.DS_Store
44+
Thumbs.db
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"overrides": [
5+
{
6+
"files": "*.html",
7+
"options": {
8+
"parser": "angular"
9+
}
10+
}
11+
]
12+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# SyncfusionAngularApp
2+
3+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 22.2.0.
4+
5+
## Development server
6+
7+
To start a local development server, run:
8+
9+
```bash
10+
ng serve
11+
```
12+
13+
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
14+
15+
## Code scaffolding
16+
17+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
18+
19+
```bash
20+
ng generate component component-name
21+
```
22+
23+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
24+
25+
```bash
26+
ng generate --help
27+
```
28+
29+
## Building
30+
31+
To build the project run:
32+
33+
```bash
34+
ng build
35+
```
36+
37+
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
38+
39+
## Running unit tests
40+
41+
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
42+
43+
```bash
44+
ng test
45+
```
46+
47+
## Running end-to-end tests
48+
49+
For end-to-end (e2e) testing, run:
50+
51+
```bash
52+
ng e2e
53+
```
54+
55+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
56+
57+
## Additional Resources
58+
59+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"cli": {
5+
"packageManager": "npm",
6+
"analytics": false
7+
},
8+
"newProjectRoot": "projects",
9+
"projects": {
10+
"syncfusion-angular-app": {
11+
"projectType": "application",
12+
"schematics": {},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular/build:application",
19+
"options": {
20+
"browser": "src/main.ts",
21+
"tsConfig": "tsconfig.app.json",
22+
"assets": [
23+
{
24+
"glob": "**/*",
25+
"input": "public"
26+
}
27+
],
28+
"styles": [
29+
"src/styles.css"
30+
]
31+
},
32+
"configurations": {
33+
"production": {
34+
"budgets": [
35+
{
36+
"type": "initial",
37+
"maximumWarning": "500kB",
38+
"maximumError": "1MB"
39+
},
40+
{
41+
"type": "anyComponentStyle",
42+
"maximumWarning": "4kB",
43+
"maximumError": "8kB"
44+
}
45+
],
46+
"outputHashing": "all"
47+
},
48+
"development": {
49+
"optimization": false,
50+
"extractLicenses": false,
51+
"sourceMap": true
52+
}
53+
},
54+
"defaultConfiguration": "production"
55+
},
56+
"serve": {
57+
"builder": "@angular/build:dev-server",
58+
"configurations": {
59+
"production": {
60+
"buildTarget": "syncfusion-angular-app:build:production"
61+
},
62+
"development": {
63+
"buildTarget": "syncfusion-angular-app:build:development"
64+
}
65+
},
66+
"defaultConfiguration": "development"
67+
},
68+
"test": {
69+
"builder": "@angular/build:unit-test"
70+
}
71+
}
72+
}
73+
}
74+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "syncfusion-angular-app",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"ng": "ng",
6+
"start": "ng serve",
7+
"build": "ng build",
8+
"watch": "ng build --watch --configuration development",
9+
"test": "ng test"
10+
},
11+
"private": true,
12+
"packageManager": "npm@10.9.8",
13+
"dependencies": {
14+
"@angular/common": "^22.2.0",
15+
"@angular/compiler": "^22.2.0",
16+
"@angular/core": "^22.2.0",
17+
"@angular/forms": "^22.2.0",
18+
"@angular/platform-browser": "^22.2.0",
19+
"@angular/router": "^22.2.0",
20+
"@syncfusion/ej2-pdfviewer": "*",
21+
"@syncfusion/ej2-angular-pdfviewer": "*",
22+
"@syncfusion/ej2-tailwind3-theme": "*",
23+
"rxjs": "~7.8.0",
24+
"tslib": "^2.3.0"
25+
},
26+
"devDependencies": {
27+
"@angular/build": "^22.2.0",
28+
"@angular/cli": "^22.2.0",
29+
"@angular/compiler-cli": "^22.2.0",
30+
"jsdom": "^30.0.0",
31+
"prettier": "^3.8.1",
32+
"typescript": "~6.0.2",
33+
"vitest": "^5.0.0"
34+
}
35+
}
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
2+
import { provideRouter } from '@angular/router';
3+
import { CommonModule } from '@angular/common';
4+
import { routes } from './app.routes';
5+
6+
export const appConfig: ApplicationConfig = {
7+
providers: [
8+
provideRouter(routes),
9+
importProvidersFrom(CommonModule)
10+
]
11+
};

‎Annotations/Text and Image Stamp Annotations/syncfusion-angular-app/src/app/app.css‎

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div>
2+
<main class="app-main">
3+
<router-outlet></router-outlet>
4+
</main>
5+
</div>

0 commit comments

Comments
 (0)