Skip to content

Commit 7ffed7f

Browse files
committed
Added the sample for YouTube video
1 parent 905d4ac commit 7ffed7f

File tree

18 files changed

+699
-0
lines changed

18 files changed

+699
-0
lines changed
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

Videos/Organize Pages/.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
__screenshots__/
40+
41+
# System files
42+
.DS_Store
43+
Thumbs.db

Videos/Organize Pages/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Organize Pages in PDF Viewer
2+
3+
This section demonstrates how to organize pages in a PDF document using the Syncfusion Angular PDF Viewer.
4+
5+
Documentation: https://help.syncfusion.com/document-processing/pdf/pdf-viewer/angular/organize-pdf
6+
7+
## Running the Angular Sample
8+
To run the Angular sample
9+
10+
Step 1: Open a terminal or command prompt.
11+
12+
Step 2: Navigate to the root directory of the AngularClient sample.
13+
14+
Step 3: Run the command npm install to install the necessary dependencies specified in the package.json file.
15+
```
16+
npm install
17+
```
18+
Step 4 Once the installation is complete, run `ng serve` to start the Angular development server and open the PDF Viewer component in your default browser.
19+
```
20+
ng serve
21+
```

Videos/Organize Pages/angular.json

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+
"my-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": "my-app:build:production"
61+
},
62+
"development": {
63+
"buildTarget": "my-app:build:development"
64+
}
65+
},
66+
"defaultConfiguration": "development"
67+
},
68+
"test": {
69+
"builder": "@angular/build:unit-test"
70+
}
71+
}
72+
}
73+
}
74+
}

Videos/Organize Pages/package.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "my-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+
"prettier": {
12+
"printWidth": 100,
13+
"singleQuote": true,
14+
"overrides": [
15+
{
16+
"files": "*.html",
17+
"options": {
18+
"parser": "angular"
19+
}
20+
}
21+
]
22+
},
23+
"private": true,
24+
"packageManager": "[email protected]",
25+
"dependencies": {
26+
"@angular/common": "^21.0.0",
27+
"@angular/compiler": "^21.0.0",
28+
"@angular/core": "^21.0.0",
29+
"@angular/forms": "^21.0.0",
30+
"@angular/platform-browser": "^21.0.0",
31+
"@angular/router": "^21.0.0",
32+
"@syncfusion/ej2-angular-pdfviewer": "*",
33+
"rxjs": "~7.8.0",
34+
"tslib": "^2.3.0"
35+
},
36+
"devDependencies": {
37+
"@angular/build": "^21.0.4",
38+
"@angular/cli": "^21.0.4",
39+
"@angular/compiler-cli": "^21.0.0",
40+
"jsdom": "^27.1.0",
41+
"typescript": "~5.9.2",
42+
"vitest": "^4.0.8"
43+
}
44+
}
14.7 KB
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, provideBrowserGlobalErrorListeners } from '@angular/core';
2+
import { provideRouter } from '@angular/router';
3+
4+
import { routes } from './app.routes';
5+
6+
export const appConfig: ApplicationConfig = {
7+
providers: [
8+
provideBrowserGlobalErrorListeners(),
9+
provideRouter(routes)
10+
]
11+
};

Videos/Organize Pages/src/app/app.css

Whitespace-only changes.

0 commit comments

Comments
 (0)