Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,26 @@ domainurl: ##DomainURL##

The PDF Viewer library allows you to unload the PDF document being displayed in the PDF Viewer control programmatically using the [**unload()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#unload) method.

The `unload()` method is essential for managing memory and data integrity in the PDF Viewer. When a PDF is loaded, its data is cached on the server, while rendered pages and annotation data are stored in the browser's session storage.

The `unload()` method is called internally to clear this cached data in the following scenarios:
* When a new document is loaded.
* When the browser window/tab is closed or refreshed.

This automatic cleanup ensures that no residual data remains, which helps reduce server-side memory consumption.

Additionally, the `unload()` method is automatically invoked when using the `viewer.load()` method to load a new document. This ensures the currently displayed PDF is properly unloaded and all related cache is cleared on both the client and server sides.

You can also call the `unload()` method programmatically. This is useful when you need to explicitly clear the viewer and release all associated client and server-side resources before the user navigates away or closes the session manually.

The following steps are used to unload the PDF document programmatically.

**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/angular/getting-started) to create a simple PDF Viewer sample.

**Step 2:** Add the following code snippet to perform the unload operation.

```html
<button (click)="unload()">Unload Document</button>
<button (click)="unload()">Unload Document</button>
```

```typescript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ documentation: ug

The PDF Viewer library allows you to unload the PDF document being displayed in the PDF Viewer control programmatically using the [**unload()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#unload) method.

The `unload()` method is essential for managing memory and data integrity in the PDF Viewer. When a PDF is loaded, its data is cached on the server, while rendered pages and annotation data are stored in the browser's session storage.

The `unload()` method is called internally to clear this cached data in the following scenarios:
* When a new document is loaded.
* When the browser window/tab is closed or refreshed.

This automatic cleanup ensures that no residual data remains, which helps reduce server-side memory consumption.

Additionally, the `unload()` method is automatically invoked when using the `viewer.load()` method to load a new document. This ensures the currently displayed PDF is properly unloaded and all related cache is cleared on both the client and server sides.

You can also call the `unload()` method programmatically. This is useful when you need to explicitly clear the viewer and release all associated client and server-side resources before the user navigates away or closes the session manually.

The following steps are used to unload the PDF document programmatically.

**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-core/getting-started) to create a simple PDF Viewer sample.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ documentation: ug

The PDF Viewer library allows you to unload the PDF document being displayed in the PDF Viewer control programmatically using the [**unload()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#unload) method.

The `unload()` method is essential for managing memory and data integrity in the PDF Viewer. When a PDF is loaded, its data is cached on the server, while rendered pages and annotation data are stored in the browser's session storage.

The `unload()` method is called internally to clear this cached data in the following scenarios:
* When a new document is loaded.
* When the browser window/tab is closed or refreshed.

This automatic cleanup ensures that no residual data remains, which helps reduce server-side memory consumption.

Additionally, the `unload()` method is automatically invoked when using the `viewer.load()` method to load a new document. This ensures the currently displayed PDF is properly unloaded and all related cache is cleared on both the client and server sides.

You can also call the `unload()` method programmatically. This is useful when you need to explicitly clear the viewer and release all associated client and server-side resources before the user navigates away or closes the session manually.

The following steps are used to unload the PDF document programmatically.

**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started/) to create a simple PDF Viewer sample.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ domainurl: ##DomainURL##

The PDF Viewer library allows you to unload the PDF document being display in the PDF Viewer control programmatically using the [**unload()**](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/#unload) method.

The `unload()` method is essential for managing memory and data integrity in the PDF Viewer. When a PDF is loaded, its data is cached on the server, while rendered pages and annotation data are stored in the browser's session storage.

The `unload()` method is called internally to clear this cached data in the following scenarios:
* When a new document is loaded.
* When the browser window/tab is closed or refreshed.

This automatic cleanup ensures that no residual data remains, which helps reduce server-side memory consumption.

Additionally, the `unload()` method is automatically invoked when using the `viewer.load()` method to load a new document. This ensures the currently displayed PDF is properly unloaded and all related cache is cleared on both the client and server sides.

You can also call the `unload()` method programmatically. This is useful when you need to explicitly clear the viewer and release all associated client and server-side resources before the user navigates away or closes the session manually.

The following steps are used to unload the PDF document programmatically.

**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es5/getting-started/) to create a simple PDF Viewer sample.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ domainurl: ##DomainURL##

The PDF Viewer library allows you to unload the PDF document being display in the PDF Viewer control programmatically using the [**unload()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#unload) method.

The `unload()` method is essential for managing memory and data integrity in the PDF Viewer. When a PDF is loaded, its data is cached on the server, while rendered pages and annotation data are stored in the browser's session storage.

The `unload()` method is called internally to clear this cached data in the following scenarios:
* When a new document is loaded.
* When the browser window/tab is closed or refreshed.

This automatic cleanup ensures that no residual data remains, which helps reduce server-side memory consumption.

Additionally, the `unload()` method is automatically invoked when using the `viewer.load()` method to load a new document. This ensures the currently displayed PDF is properly unloaded and all related cache is cleared on both the client and server sides.

You can also call the `unload()` method programmatically. This is useful when you need to explicitly clear the viewer and release all associated client and server-side resources before the user navigates away or closes the session manually.

The following steps are used to unload the PDF document programmatically.

**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/getting-started/) to create a simple PDF Viewer sample.
Expand Down
12 changes: 12 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/react/how-to/unload-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ domainurl: ##DomainURL##

The PDF Viewer library allows you to unload the PDF document being displayed in the PDF Viewer control programmatically using the [**unload()**](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/#unload) method.

The `unload()` method is essential for managing memory and data integrity in the PDF Viewer. When a PDF is loaded, its data is cached on the server, while rendered pages and annotation data are stored in the browser's session storage.

The `unload()` method is called internally to clear this cached data in the following scenarios:
* When a new document is loaded.
* When the browser window/tab is closed or refreshed.

This automatic cleanup ensures that no residual data remains, which helps reduce server-side memory consumption.

Additionally, the `unload()` method is automatically invoked when using the `viewer.load()` method to load a new document. This ensures the currently displayed PDF is properly unloaded and all related cache is cleared on both the client and server sides.

You can also call the `unload()` method programmatically. This is useful when you need to explicitly clear the viewer and release all associated client and server-side resources before the user navigates away or closes the session manually.

The following steps are used to unload the PDF document programmatically.

**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/getting-started/) to create a simple PDF Viewer sample.
Expand Down
12 changes: 12 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/vue/how-to/unload-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ domainurl: ##DomainURL##

The PDF Viewer library allows you to unload the PDF document being displayed in the PDF Viewer control programmatically using the [**unload()**](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/#unload) method.

The `unload()` method is essential for managing memory and data integrity in the PDF Viewer. When a PDF is loaded, its data is cached on the server, while rendered pages and annotation data are stored in the browser's session storage.

The `unload()` method is called internally to clear this cached data in the following scenarios:
* When a new document is loaded.
* When the browser window/tab is closed or refreshed.

This automatic cleanup ensures that no residual data remains, which helps reduce server-side memory consumption.

Additionally, the `unload()` method is automatically invoked when using the `viewer.load()` method to load a new document. This ensures the currently displayed PDF is properly unloaded and all related cache is cleared on both the client and server sides.

You can also call the `unload()` method programmatically. This is useful when you need to explicitly clear the viewer and release all associated client and server-side resources before the user navigates away or closes the session manually.

The following steps are used to unload the PDF document programmatically.

**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/vue/getting-started/) to create a simple PDF Viewer sample.
Expand Down