Please let advice how to make use of EncrptPDF at ASP Application Server Level ( Usable in Background Jobs).
================================
Hi,
Please refer to following information about how to call EncryptPDF SDK from ASP code,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The EncryptPDF COM for asp user manual
Steps:
1.Copy the encryptpdf.dll and EncryptPDFOCX.dll files to your system32 directory, for example,
~~~~~~~~~~~
copy encryptpdf.dll c:\windows\system32
copy EncryptPDFOCX.dll c:\windows\system32
~~~~~~~~~~~
2.Register the EncryptPDFOCX.dll library in your system, for example,
~~~~~~~~~~~
regsvr32 c:\windows\system32\EncryptPDFOCX.dll
~~~~~~~~~~~
3.Put the test.asp file into your "C:\wwwhome" directory,
5.Run the MS IE software, input http://127.0.0.1 site, and open the "test.asp" file,
6.The result files are generated in the "C:\wwwhome" directory.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please refer to the ASP code at below,
<%
dim oTest
dim very_ID
dim ret
Set oTest = Server.CreateObject("EncryptPDFOCX.CEncryptPDF")
Response.write "Create Object Success!"
very_ID=oTest.veryEncryptPDFEx("C:\wwwhome\test1.pdf","C:\wwwhome\test1_encrypted.pdf",128,4,"Owner","User")
if very_ID < 0 then
Response.write "Convert Failer!"
Response.write very_ID
else
Response.write "Convert Success!"
end if
%>
Related Posts
Related posts:
How to convert px3 to pdf via command line?
How to convert prn to tif via command line?
Convert pcl to pxl and set page size via command line?
How to convert PX3 to JPG and rotate the page?
How to convert PXL to TIF and fit to paper size?
Is there an easy way to convert WMF to PNM, please?
How to convert PRN to JPG and set image resolution?
Convert PDF to office documents