Security - instantiate and utilize object

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for COM/ActiveX (v2 and older)  /  Re: Security - instantiate and utilize object

DynamicPDF Generator for COM/ActiveX (v2 and older) Forum

My understanding from my webserver admin is that I am using a licensed version of Dynamic PDF 2.6 ("classic").

Maybe I am *completely* blind, but even using the many examples I can find across your website and support forums, I cannot seem to be able to derive the correct syntax for instantiating the security object (I am presuming I can), and then utilizing it.

In a perfect world, I need to make sure that if saved, the PDF cannot be loaded without a user password, and also ensure that the PDF document cannot be edited.

Can anyone point me in the correct direction? What am I missing?

Thanks!

David
...In thinking about it, it might help if I clarified how I am instantiating the PDF object to begin with:

Dim objDoc, objPage

'Create Document object and set properties
Set objDoc = Server.CreateObject("DPDF_Gen.Document")

'Add a page to the document
Set objPage = objDoc.AddPage()
'Add a textarea to the page
objPage.AddTextArea "Hello World, Page 1", 0, 0, 504, 54

'Add a second page to the document
Set objPage = objDoc.AddPage()
'Add a textarea to the second page
objPage.AddTextArea "Hello World, Page 2", 0, 0, 504, 54

'Draw the Document to the Browser
objDoc.DrawToASP

'Object cleanup
Set objPage = Nothing
Set objDoc = Nothing
Posted by a ceTe Software moderator
Hello,

The version 2 and earlier versions of DynamicPDF products do not support setting security to the PDF. This feature is included in later versions of DynamicPDF for COM/ActiveX product.

You can refer to the documentation on Security classes of latest version of DynamicPDF product here.
 
Also you can download the evaluation edition of latest DynamicPDF for COM/ActiveX product from our website here.

Thanks,
ceTe Software Support Team.


All times are US Eastern Standard time. The time now is 10:11 AM.