How to create a PDF with a Password?

Post Reply
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

How to create a PDF with a Password?

Post by vilian »

Hi Guys,
Do you know how to create a pdf file protected by a password ?
Or open a pdf file and set a password for it ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: How to create a PDF with a Password?

Post by nageswaragunupudi »

Do you know how to create a pdf file protected by a password ?

Code: Select all | Expand

TPrinter():lUseHaruPDF := .t.

PRINT oPrn PREVIEW FILE "test.pdf"
if oPrn:IsKindOf( "FWPDF" )
   oPrn:cPassWord := "MyPassword"
endif
PAGE
// print
ENDPAGE
ENDPRINT
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: How to create a PDF with a Password?

Post by vilian »

Thank you
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Post Reply