Free Support Forum - aspose.com

How to open a Pdf doc and show to the user through code?

Hi,

I am new to Aspose and i need to use it for the following purpose.

in my application, I need open an existing pdf document and depends on the role, i should show the original document or xerox document. Suppose if the user is administrator i will show the original document itself. if the user is guest then i should take a copy of the original document in temp file and should show to the user with the user name as a water mark.

I am not able to find any method to open an existing pdf doc using aspose and show it to the user. Kindly help me how to open and show the existing pdf document to the user and how to take a copy of the existing document in a memory stream or a temp file?

Can we add a watermark at runtime without saving the file to the disk? The content will be in the memory and that content will be shown to the user from memory as pdf. is it possible to show like this? any show() method is there to show the pdf doc to user through code, instead of opening by double clicking the doc manually? Once the user closes the file the memory stream should be flushed. Kindly help on this.

Whether should i user Aspose.pdf or Aspose.pdf.kit?

Regards

Srirangam K

Hello Srirangam,

The query has been replied in 133584. Thanks for considering Aspose.