I've been looking all over the place for a way to show a thumbnail or preview of a .pdf file within a form. I just want an accurate representation thumbnail of the first page for the user to click on to open the full document.
I don't like the web browser control, because it shows all pages with scroll bars and it seems to stay on top even if I try to put a command button in front of it.
I so far don't like the .pdf viewer active x control, either. Again - it loads the entire document with scroll bars and it stays on top - even if I try to put a command button in front of it.
The other problem I have with both of these controls is that with a tiny preview window, if there is a .pdf signature error or other yellow message bar at the top, it fills up the entire window.
Maybe if there's a reference for the web browser or .pdf active x control that would allow me to set the properties of scroll bars and error messages off, that would be a help, but I still don't particularly like that it's loading the entire document into memory and loading the entire acrobat viewer or web browser into memory in the background.
Suggestions?
One thing that came to mind is that maybe I have to generate my own thumbnail previews and store them in the folder with my documents and have a picture viewer control reference those instead of the document itself. If that's the best idea, any ideas for thumbnail generator code that I can put right into my modules so I don't have to distribute something else when distributing my software?
The pdf's are saved in a companion folder to the database itself - not within the database. And they're saved as/referred to by the unique ID of their corresponding table entry, which is just a name, date and description of the "attachment" in case you need to know how it's structured in order to help.