Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?UTF-8?Q?R=c3=bcdiger_Fresemann?= Newsgroups: comp.lang.clipper.visual-objects Subject: Generating PDF with password Date: Tue, 11 Feb 2020 08:46:46 +0100 Lines: 25 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net eVH/BiOnP6B3+BZNDoaU+QLYqWnePzitUsWmRYAwGBPwNF31kC Cancel-Lock: sha1:PcjTLEyXCgUqHPu1ny/ziy8Nexs= X-Mozilla-News-Host: news://news.individual.de:119 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 Xref: csiph.com comp.lang.clipper.visual-objects:12835 Hi, I use an own generated OLEAutoobject, which I use für generating Word documents. I save the documents as PDF. This works fine with following commands: oMSword:Activedocument:ExportAsFixedFormat(cPDFName,17,false,,0,,,0,,,,,true,,) or much easier: oMSword:Activedocument:SaveAs(cPDFName,17) Now I want to have an password for opening the PDF document. In Word you only have to check a checkbox and set an password. In the MS-documentation for this function the password is the 4th parametr, f.e.: oMSword:Activedocument:SaveAs(cPDFName,17,false,"Passwort") But this does not work. Does anybody have had success with generating PDF documents WITH password? Thanks. Pasadena