ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Original Poster
Rep:
Mentioning Ghostscript did help for defining better keys for Google. As it seems, the preferred way is to convert the PDF to an image which can be shown on a canvas. I had hoped this could be done without temporary files etc.
Edit:
If it's a problem, you could also try pdftoppm from poppler-utils and pipe the result to some other viewer. Just turn of all compression, and it could be fast enough.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Original Poster
Rep:
Tcl/Tk is a scripting language. When a function like viewing PDF's has to be implemented, one would write it in C and make the call available in Tcl. Tk is just the graphical framework.
When one would write the functions in C, libpoppler could have been used.
Unfortunately no-one had found the need to write this function. Maybe understandable as Tcl is considered old and outdated.
Although I don't even consider to write such functions your information is useful, thanks.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Original Poster
Rep:
I am necroposting in my own thread
It seems that finally an exact match to my requirements has been published. But only in 2016, so back in 2013 when I asked the question it was not there yet. It the mean time I had my application working with external conversion of PDF through GS into multiple JPG files which were all converted to Tk images. Very messy and slow, but it worked.
I did some quick rudimentary tests, and it seems to work very fast. Also the option to convert a PDF to pages and the pages into images, directly in Tcl/Tk is very elegant.
Since I am now developing another application it might take some time before I can actually rewrite my original application using the tclMuPDF package.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.