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. Image for the cookie policy date

Creating a pdf without saving into a pdf file


Is it possible to create a pdf and then not save it into a file on disk?  For example, I would like to create a pdf file and print it then dispose of it immediately after, meaning it's treated like a temporary file only.


2 Replies

PV Prakash Viswanathan Syncfusion Team October 11, 2019 07:22 AM UTC

Hi San, 

Thank you for contacting Syncfusion support.  

Yes, we can print PDF document without saving a file to a disk. We can create a PDF document and save it to a memory stream and print the PDF document from memory stream using PdfViewerControl. After printing the document, we can dispose document stream. We have created a simple sample to achieve your requirement, please find the sample from below link, 

Please let us know if you need any further assistance on this.  

Prakash V 

SA San October 12, 2019 02:34 AM UTC


Got it!


Live Chat Icon For mobile
Up arrow icon