PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → protect a PDF (viewing) ?
protect a PDF (viewing) ?
Iniciado por markus.ratzesberger, 30,may. 2018 11:29 - 4 respuestas
Publicado el 30,mayo 2018 - 11:29
Is there any way to protect a pdf document for viewing: to open or view the pdf, the user must enter a password.

any suggestion welcome.

BR
MArkus
Miembro registrado
28 mensajes
Publicado el 05,junio 2018 - 15:42
Hi Markus,

See iParameterPDF.

For example:
iParameterPDF(iProtectionComment+iProtectionModification+iProtectionSelection,"MyPassword",iMaximumQuality)

or
iParameterPDF(iProtectionNone,"MyPassword",iMaximumQuality)


I think you need to use it before iDestination, but also set this code before iPrintReport of cource.
Publicado el 05,junio 2018 - 21:23
I know this. But there is no way to protect the pdf for viewing. I need to ask a password, each time when the pdf will be open.
Miembro registrado
28 mensajes
Publicado el 06,junio 2018 - 08:35
If you enter the password (in my example at first post "MyPassword" it should ask for a password when opening. I just tried it again with this code:

iParameterPDF(iProtectionComment+iProtectionModification+iProtectionSelection,"123",iMaximumQuality)





Mensaje modificado, 06,junio 2018 - 08:35
Publicado el 08,junio 2018 - 12:23
You are absolut right, was my mistake. Thanks again!