Encrypt PDF Problem

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
MarkXssl
Posts: 10
Joined: Fri Aug 15 2003
Location: UK

Encrypt PDF Problem

Post by MarkXssl »

Hi,

I wonder if someone can help me ?

I'm currently using the Developer version of the Document Converter Suite version 2.10e with PDF, RTF, HTML, EXCEL and JPEG modules.

I'm running the following code :-

Set cdi = CreateObject("CDIntfEx.CDIntfEx")
cdi.DriverInit "XSSL Export Printer"
cdi.SetDefaultPrinter

cdi.OwnerPassword = "owner"
cdi.UserPassword = "user"
cdi.Permissions = -64

cdi.FileNameOptionsEx = 1 + 2 + &H100
cdi.DefaultFileName = "C:\PDFConvertorTesting\EncryptedFile.PDF"
cdi.EnablePrinter "...", "..."

Printer.CurrentX = 400
Printer.CurrentY = 400
Printer.FontName = "Arial"
Printer.FontSize = 24
Printer.Print "Hello !!!"
Printer.EndDoc

cdi.RestoreDefaultPrinter
cdi.DriverEnd

One thing is that the PDF file isn't encrypted.

The other thing is that I'm also getting an Excel document (Encrypted File.XLS). Using cdi.PrinterParamInt("Excel MultiSheets") = 0 gets round this.

Also if I include the LinearizeForWeb (&H8000) in FileNameOptionsEx, I get PDF, XLS, JPG, HTM and RTF files.

I'm running this on Windows XP Professional SP1.

Regards,

Mark Laybourne
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Most probably you already sent us this to support@amyuni.com if not please send it to us so we can look at it more closely.

Thanks,

Joanna
Post Reply