Page 1 of 1

PDF embed to exe file like an image!

PostPosted: October 26th, 2012, 10:04 am
by sarian
Hi Friends!
I want to embed a PDF file into my EXE Delphi application.
NOTICE: I don't want load a PDF file from my hard disk, I want the PDF file to be embedded into my EXE file like a image or WAV file because the PDF file is copy righted and the user shouldn't be able to save it.
Users should be able to search through the PDF file.
I know about Acrobat Reader Active X and also some other components like Gnostice PDFtoolkit VCL, XpdfViewer Activex, eXPert PDF ViewerX but the problem is that all of these components load PDF from hard disk and can't embed a PDF file into EXE Delphi application.


Is it ppossible? Any Ideas? Thanks!

Re: PDF embed to exe file like an image!

PostPosted: October 26th, 2012, 12:40 pm
by sarian
Hi
I noticed that nobody giving a comment.
Is my request technically possible or not?

Thanks!

Re: PDF embed to exe file like an image!

PostPosted: October 31st, 2012, 7:15 pm
by mathgod
I do not know of any easy way to do this. A motivated thief would still be able to screen-shot each page in the absence of save and print functions.

You could obfuscate the pdf using DCPCrypt or similar component and store the encrypted file in a dll or other resource. Read the dll (or resource file) from your exe and decrypt it for display in a pdf viewer component. Hopefully, you can find a pdf viewer component that allows disabling of save and print.

Re: PDF embed to exe file like an image!

PostPosted: November 1st, 2012, 6:22 am
by sarian
HI Mathgod,
DCPCrypt is very nice tool and I think it is my best choice.
I am using Very PDF Active X and can easily disable save and print.
I also disable Screen shot. I assigned a hot key to "Print Screen" button and then disabled the hot key, it works fine.

Thanks for your help.

Re: PDF embed to exe file like an image!

PostPosted: May 8th, 2013, 10:56 pm
by dejavu.cucud
you can encrypt and put the pdf in the exe or dll as a resource.

Re: PDF embed to exe file like an image!

PostPosted: May 17th, 2016, 9:24 am
by anmol77
I am using Very PDF Active X and can easily disable save and print.