PDA

View Full Version : PDF Plugin - Plugin doesn't work


T3STY
06-05-2009, 01:20 PM
Hi to all!
I am in trouble with the PDF plugin. I had downloaded Reteset's PDF Plugin from here (http://www.indigorose.com/forums/showthread.php?t=24507&highlight=PDF), I also had downloaded the SliderEx plugin needed for the PDF sample included in the plugin's archive.
Then, I builded the sample application and tried to load a PDF File. I had tried with the one included in the sample, Delphi.pdf, but after cliking OK on the browse dialog, I can't see any file loaded in the application. So, I had tried with another PDF file on my PC but it continues to don't work.
I supposed there may be an error, so I added the Application.GetLastError action, but it returns 0. I've also tried to build a simple application with a PDF object wich loads a PDF file on open, but it still doesn't work. Also in my application the error returned by the Application.GetLastError action is 0 wich means the file is loaded.
I don't know if I' ve done something wrong, is that I want to ask you.
And, I don't know if is important: for reading the PDF files I use Foxit Reader, not Adobe Reader or something else; could this be the problem?

p.s. I think there may be some grammatical errors in my post, I hope you understand.

Bye!

reteset
06-05-2009, 01:46 PM
i hope this explains all

Imagine Programming
06-05-2009, 02:29 PM
Or the line above that hehe, I doubt it that that't the issue.

T3STY
06-05-2009, 06:58 PM
Is there any way to use Foxit Reader instead of Adobe Reader? I hate Adobe, is much slower than a P2 PC...

Bye!

Imagine Programming
06-05-2009, 08:02 PM
Adobe PDF Reader required my friend, that's what the screeny, original thread and website says.

T3STY
06-06-2009, 07:53 AM
So I can't do anything without Adobe Reader..

thanks for help
Bye!

reteset
06-06-2009, 10:03 AM
PDF object plugin is not a standalone pdf reader
it is only a ActiveX holder , it needs Internet Explorer plugin of Adobe pdf reader
PDF object plugin works same as other AMS objec plugins
for example:
Web object can not work if if you have no web browser activex
Flash object can not work if you have no flash player installed
Media Player plugin can not work if you have no media player installed

this plugin is same as others, just holds ActiveX control inside of it ,if it is installed

when you call
PDF.LoadFile("Plugin1", "AutoPlay\\Docs\\Delphi.pdf");

plugin redirects your request to

BOOL LoadFile(LPCTSTR fileName)
{
BOOL result;
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0x2, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, fileName);
return result;
}

and below function sends your request to ActiveX which is running as a separate application

InvokeHelper(0x2, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, fileName);

finally; this plugin designed to hold only Internet Explorer Plugin of Adobe PDF reader

Imagine Programming
06-06-2009, 04:27 PM
Nice explanation reteset :)