PDF to EXE
Hello all,
I am new the forums and programming in general. My question is, I have seen a company develope some sort of software that embeds a PDF into an EXE so that when you click the EXE the file (PDF) opens in Adobe Acrobat (no extracting to a desired location needed). I think this is a great idea for copy protection to some degree and was wondering if someone could point me in the right direction for developing something along the lines of this.
I have looked high and low for related software out there that would accomplish the same goal, and the closest thing I found was a piece of software called PDF2EXE which opens the file in it's own crappy viewer. I am assuming this would be something that would be developed in C++ but was hoping for a point in the right direction and maybe a general idea of a layout to help me along my way. Thanks in advance.
[894 byte] By [
jashro] at [2007-11-20 11:39:30]

# 1 Re: PDF to EXE
You can use Adobe's PDF reader control in your application to show PDF, the PDF can be put into the exe's resource and extracted to a temp disk file at run time, and then open it in the PDF control.
# 2 Re: PDF to EXE
So basically the PDF would be embedded into the application, the executable would open the embedded PDF in adobe's control by extracting it to a temp disk file which would be behind the scenes? Does the application delete the temp disk file after the application is closed?
Any resource links you could point me to to develope something along the lines of this if at all possible. Sorry for the many questions, trying to limit multiple posts. Thanks for the quick reply, btw.
jashro at 2007-11-9 12:20:40 >

# 3 Re: PDF to EXE
Yeah, you can delete the temp file after deleting.
Here is a link to article on embedding resources and extracting them,
http://www.dev-archive.com/cpp/misc/misc/article.php/c361/
# 4 Re: PDF to EXE
Nice little app there. Looks like an embedding app with a custom extraction app. If I wanted to have a extraction app that would automatically extract the pdf, run it in acrobat control, then delete the temp disk file after exiting the app, I'm assuming I would have to code it that way. Know any good resources for something along the lines of that?
jashro at 2007-11-9 12:22:43 >
