diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/unload-document.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/unload-document.md index 45eb53632..6c6a505bd 100644 --- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/unload-document.md +++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/unload-document.md @@ -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/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. @@ -19,7 +31,7 @@ The following steps are used to unload the PDF document programmatically. **Step 2:** Add the following code snippet to perform the unload operation. ```html - + ``` ```typescript diff --git a/Document-Processing/PDF/PDF-Viewer/asp-net-core/how-to/unload-document.md b/Document-Processing/PDF/PDF-Viewer/asp-net-core/how-to/unload-document.md index 2557df704..98cd1ddf2 100644 --- a/Document-Processing/PDF/PDF-Viewer/asp-net-core/how-to/unload-document.md +++ b/Document-Processing/PDF/PDF-Viewer/asp-net-core/how-to/unload-document.md @@ -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. diff --git a/Document-Processing/PDF/PDF-Viewer/asp-net-mvc/how-to/unload-document.md b/Document-Processing/PDF/PDF-Viewer/asp-net-mvc/how-to/unload-document.md index fe96eb688..19a354d21 100644 --- a/Document-Processing/PDF/PDF-Viewer/asp-net-mvc/how-to/unload-document.md +++ b/Document-Processing/PDF/PDF-Viewer/asp-net-mvc/how-to/unload-document.md @@ -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. diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/unload-documents.md b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/unload-documents.md index 5902d6f0a..745223130 100644 --- a/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/unload-documents.md +++ b/Document-Processing/PDF/PDF-Viewer/javascript-es5/how-to/unload-documents.md @@ -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. diff --git a/Document-Processing/PDF/PDF-Viewer/javascript-es6/how-to/unload-document.md b/Document-Processing/PDF/PDF-Viewer/javascript-es6/how-to/unload-document.md index 0c3ac0f3c..04fd551f6 100644 --- a/Document-Processing/PDF/PDF-Viewer/javascript-es6/how-to/unload-document.md +++ b/Document-Processing/PDF/PDF-Viewer/javascript-es6/how-to/unload-document.md @@ -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. diff --git a/Document-Processing/PDF/PDF-Viewer/react/how-to/unload-document.md b/Document-Processing/PDF/PDF-Viewer/react/how-to/unload-document.md index c110e3f09..800673038 100644 --- a/Document-Processing/PDF/PDF-Viewer/react/how-to/unload-document.md +++ b/Document-Processing/PDF/PDF-Viewer/react/how-to/unload-document.md @@ -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. diff --git a/Document-Processing/PDF/PDF-Viewer/vue/how-to/unload-document.md b/Document-Processing/PDF/PDF-Viewer/vue/how-to/unload-document.md index 8c392fd4f..0dada9383 100644 --- a/Document-Processing/PDF/PDF-Viewer/vue/how-to/unload-document.md +++ b/Document-Processing/PDF/PDF-Viewer/vue/how-to/unload-document.md @@ -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.