Creating a pdf without saving into a pdf file

Hi,

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.

regards,

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.  

Regards, 
Prakash V 



SA San October 12, 2019 02:34 AM UTC

Hi,

Got it!

Thanks,


Loader.
Up arrow icon