How to create a PDF with a Password?

How to create a PDF with a Password?

Postby vilian » Wed Aug 07, 2024 6:44 pm

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
vilian
 
Posts: 977
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: How to create a PDF with a Password?

Postby nageswaragunupudi » Wed Aug 07, 2024 8:49 pm

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


Code: Select all  Expand view
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
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How to create a PDF with a Password?

Postby vilian » Thu Aug 08, 2024 10:57 am

Thank you
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 977
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 68 guests