Trying to create webpart.
Steps to be achieved.
- user clicks on an item(PDF file) in library, URL override required from Sharepoint.
- displaying PDF on modal dialog (not using Adobe plug-in from web-browser)
I'm newbie to Sharepoint.
If someone can show me how to implement this step by step it's saving my life.
Main reason for this is to prevent user downloading to local HDD. after this, I'm planning to add watermark display only on screen and print-out will not have this watermark.
In order to display a PDF as an image you need a library that can 'rasterize' the PDF on the server. To the best of my knowledge iTextSharp does not have this facility.
Why don't you look at an out of the box product such as Foxit's PDF Reader for SharePoint, which does something similar.
There are also some excellent SharePoint watermarking products out there, including the one created by my company :-)