"Object reference not set to an instance of an object."In angular

Hi Team 


i try to upload pdf(563KB) am facing this issue can you please help on this in angular .if same file  am using (96KB) its working . what was the issue .



https://ej2services.syncfusion.com/production/web-services/api/pdfviewer/Load this api am getting like this:

"Object reference not set to an instance of an object."


1 Reply

PA Priyadharshini Annamalai Syncfusion Team March 5, 2025 10:20 AM UTC

Hi


The web API link mentioned in the forum and which is utilized in the PDF viewer's serviceUrl property is intended solely for demonstration and evaluation purposes. For local development and production deployment, please create your own web service with your required server configurations. You can refer to and reuse the GitHub Web Service example or Docker image to create your own web service for the serviceUrl property. 

  

Additionally, we strongly recommend using standalone mode. For optimal performance, a standalone PDF viewer is ideal, as it offers greater efficiency than server-backed viewers. This setup is particularly suitable for scenarios where offline functionality or low-latency access is essential, especially when backend infrastructure is unavailable. Please refer to the documentation below, and let us know if you need further assistance. 

Documentation link - Getting started Standalone Angular PDF Viewer component | Syncfusion 


Regards,

Priyadharshini


Loader.
Up arrow icon