PDA

View Full Version : PDF Plugin


sebalius
02-01-2009, 06:07 AM
I do not want the toolbar to show on the PDF plugin. I have turned it off in the properties and in the on show put the code "PDF.ShowToolBar("Plugin1",false);". I am loading pdf files via a listbox, and on selecting the first file it opens ok with no toolbar but when I select another file from the list it loads ok but the toolbar now shows. Is there a way to stop the toolbar from showing at all.
Appreciate any help
sebalius

reteset
02-01-2009, 06:44 AM
boolean PDF.LoadFile (string ObjectName,string Path);

Note : When this function called object will reset all appearace
settings except toolbar

toolbar remains with old state but all of others will be changed to default
settings or document specific settings

if you want to one style while browsing PDF documents you should re-apply
all of your adjustments after each call of this function



except toolbar :

when i am testing this plugin , it was so
i think; new version of Reader does not support this feature
i'll check it on next version

but it is not a big problem, you can do it manually like below

PDF.LoadFile("Plugin1", PDFFILE[1]);
PDF.ShowToolBar("Plugin1", false);

sebalius
02-01-2009, 07:36 AM
Thank you for your help, I will experiment with what you advise.
Regards & thanks again
sebalius

sebalius
02-01-2009, 07:52 AM
except toolbar :

when i am testing this plugin , it was so
i think; new version of Reader does not support this feature
i'll check it on next version

but it is not a big problem, you can do it manually like below

PDF.LoadFile("Plugin1", PDFFILE[1]);
PDF.ShowToolBar("Plugin1", false);


Thanks, I realised I was putting the code in the wrong part of the routine, I changed my code slightly and now it is as I wanted.
Thanks for your time on this.
Best Regards
sebalius

airwv
03-17-2009, 07:46 PM
sebalius,
Hello, I was wondering if you would share the code for opening pdf files via listbox? I need to populate a listbox from a folder of pdf's and load them using pdf plugin but I just cannot get them to open. Thanks

reteset
03-19-2009, 10:49 AM
sebalius,
Hello, I was wondering if you would share the code for opening pdf files via listbox? I need to populate a listbox from a folder of pdf's and load them using pdf plugin but I just cannot get them to open. Thanks

here is a simple example that loads pdf documents to PDF plugin
via selecting from a listbox , i also added a browse button for
fill listbox with pdf documnets

airwv
03-19-2009, 03:53 PM
here is a simple example that loads pdf documents to PDF plugin
via selecting from a listbox , i also added a browse button for
fill listbox with pdf documnets
Much appreciated, THANKS!