PDF embed to exe file like an image!

Please discuss general Delphi programming topics here.

PDF embed to exe file like an image!

Postby sarian » October 26th, 2012, 10:04 am

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!
sarian
Active Member
Active Member
 
Posts: 5
Joined: October 26th, 2012, 10:01 am

Re: PDF embed to exe file like an image!

Postby sarian » October 26th, 2012, 12:40 pm

Hi
I noticed that nobody giving a comment.
Is my request technically possible or not?

Thanks!
sarian
Active Member
Active Member
 
Posts: 5
Joined: October 26th, 2012, 10:01 am

Re: PDF embed to exe file like an image!

Postby mathgod » October 31st, 2012, 7:15 pm

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.
User avatar
mathgod
Junior Member
Junior Member
 
Posts: 35
Joined: December 15th, 2007, 4:36 pm
Location: Middle of New Mexico, USA

Re: PDF embed to exe file like an image!

Postby sarian » November 1st, 2012, 6:22 am

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.
sarian
Active Member
Active Member
 
Posts: 5
Joined: October 26th, 2012, 10:01 am

Re: PDF embed to exe file like an image!

Postby dejavu.cucud » May 8th, 2013, 10:56 pm

you can encrypt and put the pdf in the exe or dll as a resource.
dejavu.cucud
Active Member
Active Member
 
Posts: 6
Joined: May 8th, 2013, 6:06 pm

Re: PDF embed to exe file like an image!

Postby anmol77 » May 17th, 2016, 9:24 am

I am using Very PDF Active X and can easily disable save and print.
anmol77
Member
Member
 
Posts: 1
Joined: May 17th, 2016, 8:12 am


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron