Page 1 of 1
How to create a PDF with a Password?
Posted: Wed Aug 07, 2024 6:44 pm
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 ?
Re: How to create a PDF with a Password?
Posted: Wed Aug 07, 2024 8:49 pm
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
Re: How to create a PDF with a Password?
Posted: Thu Aug 08, 2024 10:57 am
by vilian
Thank you