How to decrease the loading time of pdf loading

I'm creating a pdf preview in next js using syncfusion pdf preview. All the functionalities are working fine, but initial document loading is taking time. how do I decrease the time? 
also for some large files, the document is not even shown, its shows the error as in the image

Image_4258_1717236435902



I'm attaching the jsx file in the zip


Attachment: syncfusion_454826f.zip

1 Reply

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team June 3, 2024 01:42 PM UTC

Hi Nayan,

Based on the given details it seems that you are using the Syncfusion demo service URL "https://services.syncfusion.com/react/production/api/pdfviewer". The Syncfusion service URL is only for demonstration purposes. While you can use the demo URL, it comes with a few limitations. Alternatively, you can create your own web service when integrating the PDF Viewer into your application. For instructions on how to create your own web service, please refer to the documentation provided below.


Documentation:  https://support.syncfusion.com/kb/article/8997/how-to-create-pdf-viewer-web-service-application-in-aspnet-core


Github sample: https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices/tree/main/ASP.NET%20Core/PdfViewerWebService_6.0


Additionally, we have introduced a standalone PDF Viewer in version 23.1.36, which is faster than the server-backed PDF Viewer. Furthermore, we strongly recommend upgrading to our latest PDF Viewer version (V25.2.6) as we have implemented various enhancements and stability improvements in the latest version.


We have provided the standalone documentation, demo and sample below for your reference.


Documentation: https://ej2.syncfusion.com/react/documentation/pdfviewer/getting-started


Demo:  https://ej2.syncfusion.com/react/demos/#/bootstrap5/pdfviewer/default


Attachment: NextJSStandaloneSample_617fe4b7.zip

Loader.
Up arrow icon