FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to create a PDF with a Password?
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
How to create a PDF with a Password?
Posted: Wed Aug 07, 2024 06: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: How to create a PDF with a Password?
Posted: Wed Aug 07, 2024 08:49 PM
Do you know how to create a pdf file protected by a password ?
Code (fw): Select all Collapse
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
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: How to create a PDF with a Password?
Posted: Thu Aug 08, 2024 10:57 AM

Thank you

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

Continue the discussion