Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr
Letzter Beitrag:
vor 12 Monaten
Beteiligte Autoren:
iso, Fabrice Harari, Jan de Bruin, newbie2

PDF Protection [WD22]

Startbeitrag von iso am 08.08.2017 18:45


I have created a program that views opens pdf files from a folder, but i dont want users to be able to just browse the folder and open them directly.

Im wanting to create a little program runs through each pdf in the folder and re-saves each pdf but password protects it.

Anyone done this already or any suggestions for the best way to do this?




Also, i cant find anyway of opening a pdf that is password protected, is that even possible?

von iso - am 08.08.2017 20:01

I would say DON'T do it. Instead, just store your pdf inside a blob in your DB and extract one only when you need to show it (inside your application also). All that is done and more in my WXEDM open source project.

Documents are fully protected, no need for password, and you can do that for much more than pdf.

Best regards

von Fabrice Harari - am 09.08.2017 12:07
Intresting topic;

atm i am experimenting with somthing simular only i am adding any fille to a db using a binary memo(related commands :HExtractMemoHInfoMemoHlink memo);and protect the whole db with a encryption (they key is known bye the program itself so i dont have to enter anything except the login for the prg itself).

ofc i am a new to windev and dont know its full potentieel just yet.

Is why i wanted to vieuw how a professional would approach it so i visited ur website

whenever i press download the fille i get a popup saying ' To watch a video u need to logg in'

von newbie2 - am 09.08.2017 13:25
Yep, I can confirm that to download a file you need to log in. The message say watch a video (wrong first part of the message), but the end is correct.

von Fabrice Harari - am 09.08.2017 13:50
Hi Fabrice,

I did consider that but I have 40 GB worth of pdfs (about 15k) I could possibly split them into 5 8gb datafiles, would hyperfilesql be able to handle them ok do you think?



von iso - am 09.08.2017 17:17

without any problem. You can put 40 GB inside one file. There are much bigger HF memo files out there.

The ONLY potential problem is backup, and as my WXEDM is replicated, the problem dos not exist for me.

Best regards

von Fabrice Harari - am 10.08.2017 13:46

I have the pdfs in a number of files, i extract each using HExtractMemo into a temp folder i then view them in an Activex control window Adobe PDF Reader.

It works ok but ideally:

1. I dont want to save them to a temp location - is there a way of extracting to a buffer i cant get it to work?

2. The user can actually save the pdf through the activex control (same with an html control) which i dont want them to be able to do.

your help is greatly appreciated.



von iso - am 17.08.2017 12:50
You can use an image. There is an example of that

von Jan de Bruin - am 17.08.2017 19:09
Hi Jan

Thanks I ll look into that, does it work even if the pdfs all have multiple pages?



von iso - am 18.08.2017 05:10
Hi Jan,

Found it thanks and there is a way to control multiple pages :)



von iso - am 18.08.2017 06:30
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.