How to load / change new pdf in standalone version?

In this example here :
Getting Started with EJ2 ASP.NET Core PDF Viewer Control | Syncfusion


I saw in the standalone version, there is a documentPath to load PDF from URL but if i want to change pdf how to do it?

if we are in server-side then we use viewer.load(xxx,null) in javascript but how can we do that in standalone version? I create this ticket because i couldn't find any info for standalone version.

Image_8514_1698586644149


Also why some pdf is slow and lag when load into viewer, but some also fast?

pdf1: http://www.cs.williams.edu/~freund/cs434/gal-trace.pdf

i load this into here, and syncfusion viewer is almost freeze when scroll down

ASP.NET Core PDF Viewer Default Functionalities Example - Syncfusion Demos


this also lag / stutter in each page loading as well

pdf2: https://www.niaid.nih.gov/sites/default/files/1r41ai10801601_fong.pdf



1 Reply 1 reply marked as answer

VV Visvesvar Venkatesan Syncfusion Team November 2, 2023 11:02 AM UTC

Hi Copsychusz Viharasoon,


To load the document using the document path you have to convert the PDF document into a URL and then apply it to the document path.


We have also provided documentation related to accessing the file locally. You can load local files using the Open file location.

Documentation: https://ej2.syncfusion.com/aspnetcore/documentation/pdfviewer/getting-started#local-file-access




Note: A ticket has been created in your name and we kindly request you follow that ticket for a PDF document-related query,


Regards,

Visvesvar K V 


Marked as answer
Loader.
Up arrow icon