Version 6 of gnocl::pdfViewer

Updated 2009-11-06 11:50:34 by ABU

WJG (02-Nov-09) The poppler libraries [L1 ] provide a useful set of tools for displaying Acrobat PDF files. Ok, at the moment it still a set of basic stubs, but the bare bones are now there for gnocl scripters to display PDFs. All that's needed is a little more flesh on the bones, (aka more Gtk+ code in the switch blocks) to get the full implementation up and running -any offers from anyone? For this sample there's no need for a demo script for obvious reasons.

http://lh4.ggpht.com/_yaFgKvuZ36o/Su9O3t9uAMI/AAAAAAAAAJs/e22D84rmahw/s800/Screenshot-gnocl%3A%3ApdfViewer.png

ABU I'm interested in, but I'm not a C (?) programmer. If you are going to develope a pdf-viewer widget, I'd like to have a preview of the tcl-API.

WJG (04-Nov-09) Hi there. Yes, Gnocl is coded in C and there's not much at the moment apart from the basics of getting the widget open and shwoing a page. There's so much work to do on in this project that advancements are needs driven. This week, for instance, I've added some new switches to the canvas image object. Nothing planned, just necessary for a project I'm working on myself. I can foresee the gnocl::pdfViewer widget growing into a large project, so the best route towards developeing this package is to identify which controls would be in greatest demand. Ok, we can load a document, next step navigating pages.

The best way of requesting new features is via the SourceForge project site [L2 ].

ABU If I only were interested in displaying a pdf, my choose would be to embed an Acrobat-Reader window in my app; there is a lot of solutions in this wiki... With this solution you can browse all the pages, by program or by embedded acrobat's buttons. BUT there is a big limitation with Acrobat's API: your app cannot 'get the current page number'.

The first thing I'd like to see in gnocl::pdfViewer is the ability to get the current page, and the coords (in PDF-Page coords) of the point under the mouse-cursor, I expect that zooming be allowed by progam (get/set zoom).