PDA

Click to See Complete Forum and Search --> : Problem in create encrypted pdf file through VB6 code


Prakash Paul
Jun 7th, 2008, 04:57 AM
Hi Friends,

I am using dll "encryptpdf.dll" for creating encrypted pdf file for that I am using

Private Declare Function veryEncryptPDF Lib "encryptpdf.dll" (ByVal inFileName As String, ByVal outFileName As String, ByVal EnctyptLen As Long, ByVal permission As Long, ByVal OwnerPassword As String, ByVal UserPassword As String) As Long
Private Function EncryptFile(ByVal mPdf As String, ByVal TargetPdf As String, User As String, Owner As String) As Long
EncryptFile = veryEncryptPDF(mPdf, TargetPdf, 128, 4, User, Owner)
End Function


File is encrypted very well if source pdf contain only single page. If there is more then one page in source file then output file contain only one page rest pages are missing from out put file

Hack
Jun 7th, 2008, 05:28 AM
Welcome to the forums. :wave:

Where did you get this dll?

Prakash Paul
Jun 7th, 2008, 06:29 AM
I found encryptpdf.dll from VeryPDF.com
Please provide me solution if possible how I can encrypt all pages