Skip to content

Commit aacb2a1

Browse files
Merge pull request #3976 from syncfusion-content/EJ2-1044131-CoreRevamp4
Task(1044131): Revamp UG documentation for open, save pdf files, toolbar and troubleshooting samples in Core platform
2 parents b51ba1b + 228f81d commit aacb2a1

26 files changed

Lines changed: 133 additions & 131 deletions

Document-Processing/PDF/PDF-Viewer/asp-net-core/accessibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ The PDF Viewer component follows the [keyboard interaction](https://www.w3.org/W
8181
| | | **Shortcut for text search** |
8282
| <kbd>CONTROL + F</kbd> | <kbd>COMMAND + F</kbd> | Open the search toolbar |
8383
| | | **Shortcut for text selection** |
84-
| <kbd>CONTROL + C</kbd> | <kbd>CONTROL + C</kbd> | Copy selected text, annotation, or form field |
85-
| <kbd>CONTROL + X</kbd> | <kbd>CONTROL + X</kbd> | Cut selected text, annotation, or form field |
84+
| <kbd>CONTROL + C</kbd> | <kbd>COMMAND + C</kbd> | Copy selected text, annotation, or form field |
85+
| <kbd>CONTROL + X</kbd> | <kbd>COMMAND + X</kbd> | Cut selected text, annotation, or form field |
8686
| <kbd>CONTROL + V</kbd> | <kbd>COMMAND + V</kbd> | Paste selected text, annotation, or form field |
8787
| | | **Shortcuts for general operations** |
8888
| <kbd>CONTROL + Z</kbd> | <kbd>COMMAND + Z</kbd> | Undo the action |

Document-Processing/PDF/PDF-Viewer/asp-net-core/event.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation: ug
88

99
# Events in ASP.NET Core PDF Viewer Control
1010

11-
The PDF Viewer component provides a comprehensive event system for integrating custom logic into application workflows. Events are triggered throughout the document lifecycle, user interactions, and feature operations.
11+
The PDF Viewer component provides a comprehensive event system for integrating custom logic into application workflows. Events are triggered throughout the document life cycle, user interactions, and feature operations.
1212

1313
## Event reference table
1414

@@ -474,7 +474,7 @@ Example:
474474
</div>
475475

476476
<script>
477-
function CommentEdited(args) {
477+
function commentSelected(args) {
478478
console.log(`Comment selected. Id: ${args.id}`);
479479
}
480480
</script>
@@ -492,7 +492,7 @@ Example:
492492
</div>
493493

494494
<script>
495-
function CommentEdited(args) {
495+
function commentSelected(args) {
496496
console.log(`Comment selected. Id: ${args.id}`);
497497
}
498498
</script>

Document-Processing/PDF/PDF-Viewer/asp-net-core/globalization.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ The `locale` property enables you to specify the language and culture for the PD
307307

308308
To use a locale other than the default en-US, or to customize the localization strings, map the text content for the selected locale using the `ej.base.L10n.load()` method. This method registers the localized strings for your chosen locale, and the PDF Viewer will use them when displaying the interface.
309309

310+
N> The `ej.base.L10n.load(...)` call must be registered **before** the PDF Viewer component initializes; otherwise the localized strings will not be applied. The `ej.base` namespace is available through the Syncfusion EJ2 scripts that are loaded by the Tag Helper.
311+
310312
**Example: Custom Arabic (ar-AE) localization**
311313

312314
Add the following script to register custom localization strings for the Arabic (UAE) locale:

Document-Processing/PDF/PDF-Viewer/asp-net-core/how-to-overview.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ documentation: ug
1111

1212
The following frequently asked questions address common ASP.NET Core PDF Viewer topics:
1313

14-
* [How to add annotation in text search in ASP.NET Core ?](./how-to/add-annotation-in-text-search)
15-
* [How to add custom header to the PDF Viewer ajax request?](./how-to/authorization-token)
14+
* [How to add annotation in text search in ASP.NET Core?](./how-to/add-annotation-in-text-search)
15+
* [How to add a custom header to the PDF Viewer AJAX request?](./how-to/authorization-token)
1616
* [How to add a save button to PDF Viewer toolbar?](./how-to/add-save-button)
1717
* [How to customize the annotation selectors?](./how-to/configure-annotation-selector-setting)
1818
* [How to delete a specific annotation from the PDF document?](./how-to/delete-a-specific-annotation)
1919
* [How to control the visibility of the annotation?](./how-to/control-annotation-visibility)
20-
* [How to convert the PDF library bounds to PDF viewer bounds?](./how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds)
20+
* [How to convert the PDF library bounds to PDF Viewer bounds?](./how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds)
2121
* [How to customize the context menu in PDF Viewer?](./how-to/custom-context-menu)
22-
* [How to add custom font in handwritten signature?](./how-to/custom-font-signature-field)
22+
* [How to add a custom font in handwritten signature?](./how-to/custom-font-signature-field)
2323
* [How to add custom fonts for form fields and free text annotations?](./how-to/custom-fonts)
2424
* [How to customize text search highlight color in PDF Viewer?](./how-to/customize-text-search-color)
2525
* [How to disable the context menu?](./how-to/disable-context-menu)
2626
* [How to disable tile rendering in PDF Viewer?](./how-to/disable-tile-rendering)
2727
* [How to get the download start event?](./how-to/download-start-event)
2828
* [How to enable or disable the local storage?](./how-to/enable-local-storage)
29-
* [Enable the resizer for text markup annotation?](./how-to/enable-resize)
29+
* [How to enable the resizer for text markup annotation?](./how-to/enable-resize)
3030
* [How to enable or disable the text selection?](./how-to/enable-text-selection)
3131
* [How to export the PDF pages as images?](./how-to/export-as-image)
32-
* [How to extract text from the PDF document?](./how-to/extract-text-completed)
32+
* [How to extract completed text from the PDF document?](./how-to/extract-text-completed)
3333
* [How to extract text from a specific region?](./how-to/extract-text-option)
3434
* [How to extract text from the PDF document?](./how-to/extract-text)
3535
* [How to find the text in the PDF document asynchronously?](./how-to/find-text-async)
@@ -42,26 +42,26 @@ The following frequently asked questions address common ASP.NET Core PDF Viewer
4242
* [How to open the bookmark pane when the document is loaded?](./how-to/open-bookmark)
4343
* [How to open the thumbnail pane when the document is loaded?](./how-to/open-thumbnail)
4444
* [How to get the page render started and completed event?](./how-to/pagerenderstarted-pagerendercompleted)
45-
* [How to resolve the `Unable to find an entry point named 'FreeExportedValues' in DLL 'pdfium''?](./how-to/resolve-unable-to-find-an-entry-point-error)
45+
* [How to resolve the `Unable to find an entry point named 'FreeExportedValues' in DLL 'pdfium'`?](./how-to/resolve-unable-to-find-an-entry-point-error)
4646
* [How to restrict the zooming in mobile mode?](./how-to/restricting-zoom-in-mobile-mode)
4747
* [How to show custom stamp item in the stamp annotation?](./how-to/show-custom-stamp-item)
4848
* [How to show or hide a particular annotation?](./how-to/show-hide-annotation)
4949
* [How to get the signature selected and unselected event?](./how-to/signatureselect-signatureunselect)
5050
* [How to unload the PDF document from the viewer?](./how-to/unload-document)
5151
* [How to clear the Web service not listening error?](./how-to/webservice-not-listening)
52-
* [How to Enable Bookmark pane in PDF Viewer?](./how-to/show-bookmark)
53-
* [How to Save original document at the server side?](./how-to/save-original-document-at-the-server-side)
54-
* [How to Configure retry timeout in PDF Viewer?](./how-to/retry-timeout)
55-
* [How to Resolve the Pdfium issue in PDF Viewer?](./how-to/resolve-pdfium-issue)
56-
* [How to Load N number of pages on initial loading in PDF Viewer?](./how-to/load-n-number-page)
57-
* [How to Instantiate the PDF Viewer component dynamically in PDF Viewer?](./how-to/Instantiate-pdfviewer-dynamically)
58-
* [How to Install packages based on OS in PDF Viewer?](./how-to/install-packages)
59-
* [How to Extract Text using TextLineCollection in PDF Viewer?](./how-to/extract-text-using-text-collections)
60-
* [How to Export As Image from PDF document in PDF Viewer?](./how-to/export-as-image-standalone)
61-
* [How to Display document without downloading in PDF Viewer?](./how-to/display-document-without-downloading)
62-
* [How to Capture the current page number being viewed in PDF Viewer?](./how-to/capture-page-number)
63-
* [How to select annotations in multi page?](./how-to/select-multi-page-annotations)
52+
* [How to enable Bookmark pane in PDF Viewer?](./how-to/show-bookmark)
53+
* [How to save original document at the server side?](./how-to/save-original-document-at-the-server-side)
54+
* [How to configure retry timeout in PDF Viewer?](./how-to/retry-timeout)
55+
* [How to resolve the Pdfium issue in PDF Viewer?](./how-to/resolve-pdfium-issue)
56+
* [How to load N number of pages on initial loading in PDF Viewer?](./how-to/load-n-number-page)
57+
* [How to instantiate the PDF Viewer component dynamically?](./how-to/Instantiate-pdfviewer-dynamically)
58+
* [How to install packages based on OS in PDF Viewer?](./how-to/install-packages)
59+
* [How to extract Text using TextLineCollection in PDF Viewer?](./how-to/extract-text-using-text-collections)
60+
* [How to export as image from PDF document in PDF Viewer?](./how-to/export-as-image-standalone)
61+
* [How to display document without downloading in PDF Viewer?](./how-to/display-document-without-downloading)
62+
* [How to capture the current page number being viewed in PDF Viewer?](./how-to/capture-page-number)
63+
* [How to select annotations in multi-page?](./how-to/select-multi-page-annotations)
6464
* [How to get the annotation when it is overlapped with another annotation on its selection?](./how-to/overlapped-annotation)
6565
* [How to print the PDF document silently?](./how-to/print-document)
66-
* [Load Document after resources Loaded](./how-to/load-document-after-resources-loaded)
67-
* [How to use local resources to configure PDF Viewer](./how-to/local-resources)
66+
* [How to load document after resources loaded](./how-to/load-document-after-resources-loaded)
67+
* [How to use local resources to configure PDF Viewer?](./how-to/local-resources)

Document-Processing/PDF/PDF-Viewer/asp-net-core/interaction-mode.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
layout: post
33
title: Interaction mode in ASP.NET Core PDF Viewer | Syncfusion
4-
description: Learn how to use selection and panning interaction modes in the Syncfusion ASP.NET Core PDF Viewer.
4+
description: Learn how to switch between selection and panning modes in the Syncfusion ASP.NET Core PDF Viewer to easily select content or navigate pages.
55
platform: document-processing
66
control: PDF Viewer
77
documentation: ug
88
---
99

1010

11-
# Interaction Mode in PDF Viewer
11+
# PDF Viewer Interaction Settings
1212

1313
The PDF Viewer provides two interaction modes for working with loaded PDF documents: selection mode and panning mode.
1414

@@ -42,7 +42,7 @@ In selection mode, text can be selected and copied from the loaded PDF document.
4242
{% endhighlight %}
4343
{% endtabs %}
4444

45-
![Alt text](./images/selection.png)
45+
![Selection mode in the PDF Viewer](./images/selection.png)
4646

4747
## Panning Mode
4848

Document-Processing/PDF/PDF-Viewer/asp-net-core/magnification.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation: ug
88
---
99

1010

11-
# Magnification
11+
# Viewing at Different Zoom Levels
1212

1313
The PDF Viewer includes magnification tools on the default toolbar: Zoom In, Zoom Out, Zoom, Fit Page, and Fit Width. The toolbar can be configured to show or hide magnification tools as needed.
1414

@@ -43,12 +43,12 @@ The following example shows how to enable magnification:
4343

4444
The following magnification options are available in the default toolbar:
4545

46-
* **ZoomIn**:- Zoom in from the current zoom value.
47-
* **ZoomOut**:- Zoom out from the current zoom value.
48-
* **Zoom**:- Zoom to a specific percentage.
49-
* **FitPage**:- Fit the entire page within the available viewport.
50-
* **FitWidth**:- Fit the page width to the viewport.
51-
* **Auto**:- Fits the page content with-in the viewport on resizing action.
46+
* **ZoomIn**: Zoom in from the current zoom value.
47+
* **ZoomOut**: Zoom out from the current zoom value.
48+
* **Zoom**: Zoom to a specific percentage.
49+
* **FitPage**: Fit the entire page within the available viewport.
50+
* **FitWidth**: Fit the page width to the viewport.
51+
* **Auto**: Fits the page content within the viewport on resize.
5252

5353
![Zoom controls in the PDF Viewer toolbar](./images/zoom.png)
5454

Document-Processing/PDF/PDF-Viewer/asp-net-core/open-pdf-file/from-amazon-s3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ control: PDF Viewer
77
documentation: ug
88
---
99

10-
# Open PDF from AWS S3
10+
# Open Documents from Amazon S3 Storage
1111

1212
The ASP.NET Core PDF Viewer component supports loading PDF files from AWS S3 using either the standalone or the server-backed PDF Viewer. Both approaches are demonstrated below.
1313

@@ -52,7 +52,7 @@ AWS.config.update({
5252
});
5353
```
5454

55-
2. Sets the parameters for fetching the PDF document from S3, including the bucket name and file key. Then Uses the getObject method of the S3 instance to retrieve the document. Converts the document data to a Base64 string and loads it into the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer then load Base64 string generated into the viewer.load method.
55+
2. Sets the parameters for fetching the PDF document from S3, including the bucket name and file key. Then uses the `getObject` method of the S3 instance to retrieve the document. Converts the document data to a Base64 string and loads it into the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer using the `viewer.load` method.
5656

5757
N> Replace **Your Bucket Name** with the actual bucket name of your AWS S3 account and **Your Key** with the actual file key of your AWS S3 account.
5858

@@ -130,7 +130,7 @@ public IndexModel(Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnviro
130130
}
131131
```
132132

133-
3. Modify the `OnPostLoad()` method to load the PDF files from AWS S3
133+
3. Modify the `OnPostLoadAsync()` method to load the PDF files from AWS S3
134134

135135
```csharp
136136

Document-Processing/PDF/PDF-Viewer/asp-net-core/open-pdf-file/from-azure-blob-storage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
layout: post
3-
title: Open PDF from Azure Blob Storage in ASP.NET Core PDF Viewer | Syncfusion
3+
title: View PDF from Azure Blob Storage | Syncfusion
44
description: Learn how to load PDFs from Azure Blob Storage in the Syncfusion ASP.NET Core PDF Viewer component using standalone and server-backed approaches.
55
platform: document-processing
66
control: PDF Viewer
77
documentation: ug
88
---
99

10-
# Open PDF from Azure Blob Storage
10+
# Open Documents from Azure Blob Storage
1111

1212
The ASP.NET Core PDF Viewer component supports loading PDF files from Azure Blob Storage using either the standalone or the server-backed PDF Viewer. Both approaches are demonstrated below.
1313

@@ -136,7 +136,7 @@ public IndexModel(Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnviro
136136
}
137137
```
138138

139-
3. Modify the `OnPostLoad()` method to load the PDF files from Azure Blob Storage
139+
3. Modify the `OnPostLoad()` method to load the PDF files from Azure Blob Storage
140140

141141
```csharp
142142

Document-Processing/PDF/PDF-Viewer/asp-net-core/open-pdf-file/from-box-cloud-file-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public IndexModel(Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnviro
5252

5353
```
5454

55-
3. Modify the `OnPostLoad()` method to load the PDF files from Box cloud file storage.
55+
3. Modify the `OnPostLoadAsync()` method to load the PDF files from Box cloud file storage.
5656

5757
```csharp
5858

Document-Processing/PDF/PDF-Viewer/asp-net-core/open-pdf-file/from-google-cloud-storage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Follow these steps to load a PDF from Google Cloud Storage using the server-back
1313

1414
**Step 1:** Create a Service Account
1515

16-
Open the Google Cloud Console. Navigate to `IAM & Admin` > `Service accounts`. Click `Create Service Account`.` Enter a name, assign roles (e.g., Storage Object Admin), and create a key in JSON format. Download the key file securely. Utilize the downloaded key file in your applications or services for authentication and access to the Google Cloud Storage bucket. For additional details, refer to the [official documentation](https://cloud.google.com/iam/docs/service-accounts-create).
16+
Open the Google Cloud Console. Navigate to `IAM & Admin` > `Service accounts`. Click `Create Service Account`. Enter a name, assign roles (e.g., Storage Object Admin), and create a key in JSON format. Download the key file securely. Utilize the downloaded key file in your applications or services for authentication and access to the Google Cloud Storage bucket. For additional details, refer to the [official documentation](https://cloud.google.com/iam/docs/service-accounts-create).
1717

1818
**Step 2:** Create a PDF Viewer sample in ASP.NET Core
1919

20-
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-core/getting-started-with-server-backed) to create a simple PDF Viewer sample in ASP.NET Core
20+
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-core/getting-started-with-server-backed) to create a simple PDF Viewer sample in ASP.NET Core.
2121

2222
**Step 3:** Modify the `Index.cshtml.cs` file in the project
2323

0 commit comments

Comments
 (0)