We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

pdfviewer

Thread ID:

Created:

Updated:

Platform:

Replies:

143156 Mar 6,2019 06:01 PM UTC Mar 8,2019 11:53 AM UTC ASP.NET Web Forms 3
loading
Tags: PdfViewer
Elswify
Asked On March 6, 2019 06:01 PM UTC

i need to do everything in server side in code behind how can do the following actions
1- load pdf file from server-side in code behind
2- printing & downloading from server-side code
i need full example please about this actions or full handling pdf file in server-side

Sathish Sivakumar [Syncfusion]
Replied On March 7, 2019 11:33 AM UTC

Hi Mohammed, 
 
Greetings from Syncfusion. 
 
At present we do not have support to print and download the PDF documents from PDF Viewer in the sever side. However, we can load and print the PDF document in the code behind using the PDF Viewer Windows Forms reference. Please find KB link for the same from the below, 

Note:  Silent Printing will work only locally and not in the production environment. 

Also, you can load and download the PDF document in the code behind as a workaround.  Please find the online demo link for the same from the below, 

PDF Viewer: 
Our PDF Viewer control contains both the server side and client-side code. The PDF document is loaded and processed in the server side and sent the processed data in JSON format to the client for rendering and further processing in PDF Viewer. You can load the PDF document in the server side using PDF Viewer and further Print and Download operations are performed in the client. Please find the UG and the Demo link for PDF Viewer from the below, 


Please try this and revert us with more details about your requirement if the provided details does not meet your requirement. It will be helpful for us to investigate further and assist you better. 
 
Regards,
Sathish
 


Elswify
Replied On March 7, 2019 11:56 AM UTC

There's no example explain how to load pdf file to be appear in pdfviewer i need how i can fetch pdf file from server-side and make i appear in pdfviewer such skelton example
pdfviewer1.filename="asd.pdf";
i check pdfviewer1.DocumentPath="file name" 
but nothing happen then how can i pass pdf file to pdfviewer and render it using c# code 

Akshaya Arivoli [Syncfusion]
Replied On March 8, 2019 11:53 AM UTC

Hi Elswify, 

We have created the sample to load and view the PDF document during the control initialization using the documentPath API in PDF Viewer and shared the same in the following location, 

Please find the below UG links for reference, 

Load the documents during control initialization: 

Load PDF documents from client side: 

Getting Started: 

Please try this and let us know if you have any concerns on this. 

Regards, 
Akshaya 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;