Is it possible to generate a PDF right from a razor page without using its url?

the idea is to send a weekly report to users, without needing them to be logged in, on a secure system that will demand authentication and authorization to load its content, therefore, an url method would not work.
Thanks!

3 Replies 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team February 8, 2021 12:25 PM UTC

Hi Jose, 

Thank you for contacting Syncfusion support.   
  
Our HTML converter provides support for converting the windows authenticated webpage to PDF document. We have to provide the login details (username, password) to the converter settings for the conversion. The provided credentials are valid then the converter will convert the web page to a PDF document. Please refer to the below UG link for more information about Windows Authentication,    
  
Note: We have to provide input webpage URL/HTML is mandatory to parse in our convert method for performing the conversion.   
  
If you are not using URL, we are suggested you try the HTML string to PDF conversion in WebKit converter. For this, we have to get the HTML string of your web page and then convert it to a PDF document.   
  
Please let us know if you need any further assistance with this.   

Regards, 
Gowthamraj K 


Marked as answer

JP Jose Pablo February 11, 2021 07:07 PM UTC

Hello, Thanks for your answer.

The page I want to export has somesyncfusion ejs2 charts.
How do I include them on the PDF?

Thank you in advance.


GK Gowthamraj Kumar Syncfusion Team February 12, 2021 12:36 PM UTC

Hi Jose, 

Thank you for your update. 

Yes. We have converted the webpage with all the resources (image, script, styles, etc.,) using our HTML to PDF converter. WebKit/Blink rendering engine preserves the output PDF document like how the input HTML file/URL is displayed on the web browsers (safari, chrome). Please refer to the below link for more information,   
  
  
If you are facing the same issue, kindly provide more details such as complete input HTML file/URL (with all resources styles, scripts, etc.,), complete code snippet, simple sample, environment details (OS, Bit version, RAM, etc), product version to check the issue in our end. So, that it will be helpful for us to analyze and assist you further on this.   

Regards, 
Gowthamraj K 


Loader.
Up arrow icon