Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Announce: tclMuPdf 1.3 - rendering of Pdf pages

176 views
Skip to first unread message

Aldo Buratti

unread,
Oct 2, 2017, 6:07:12 PM10/2/17
to
I'm pleased to announce a new release of tclMuPdf

tclMuPdf is a porting of the MuPdf framework (see at mupdf.com), for fast and high-quality rendering of PDF pages.

It's a C extension, distributed with precompiled binaries in a single package for Windows x32/x64, Linux x32/x64 and MacOS.

see wiki.tcl.tk/tclmupdf for details.

----
New features:
* subcommands for extracting images, previously released as experimental.images are now official, more powerful and deeply tested with a lot of different kinds of images.
* Aligned with core library MuPDF v.1.11

jm....@orens.fr

unread,
Oct 5, 2017, 7:02:06 AM10/5/17
to
Thanks Aldo, for this package : we have managed to successfully use it, embeded in a Tk canvas widget on Win7.

If your are interested, below are some observations :

If the pdf file is protected by a password, then the widget crashes with the following stack trace :
"page number out of bound while executing $pdfHandle getpage $page
...
error : zlib error: incorrect header check
warning : read error; treating as end of file
error : corrupt object stream (8 0 R)
warning : cannot load object (7 0 R) into cache"

In the doc, it helps if info is provided about the return value of search command when there is no match.

Related to search functionality, is it possible to produce some visual effect pointing to the text fragment that matches the "needle" argument of search command ?

Thank you

-jm

Aldo Buratti

unread,
Oct 5, 2017, 4:35:07 PM10/5/17
to
Hi jm

A) about password protected pdfs...
It's a missing feature. It's not difficult to implement, but currently I'm quiet busy. I plan to deliver mupdf 1.4 at the end of this month.
Can you send me a sample password-protected pdf for testing ?

B)search command ...
The search command returns a list of page-positions. if nothing is found, the list is empty

c) about a visual feedback of the matched words ...
Try the MuPdfWidget package (demo included) http://http://wiki.tcl.tk/48616
I suggest to use it: zooming, scrolling, changing page, highlighting the matched words ... are features embedded in this widget. You only have to add some gui-controls (menus, buttons, ...) to drive it !
Otherwise, since it's a pure-tcl widget (based on a canvas widget), you can easily read the code.

Let me know if it's a useful thing
Bye
Aldo

jm....@orens.fr

unread,
Oct 6, 2017, 5:13:38 AM10/6/17
to
Hello Aldo,

Yes I'll be glad to send you a password-protected pdf : can you provide some pointer where I can upload or email the sample ?

Thanks for the doc clarification and for the pointer to MuPdfWidget : I will try it and report.

-jm

Aldo Buratti

unread,
Oct 7, 2017, 12:29:14 PM10/7/17
to
Please share the sample PDF somewhere (GoogleDrive, DropBox, ...) and write here the link
Aldo

jm....@orens.fr

unread,
Oct 8, 2017, 10:34:52 AM10/8/17
to
Le samedi 7 octobre 2017 18:29:14 UTC+2, Aldo Buratti a écrit :
> Please share the sample PDF somewhere (GoogleDrive, DropBox, ...) and write here the link
> Aldo

Thanks Aldo,

Here is the link of a password-protected sample : https://drive.google.com/open?id=0B693t1HkWOoaOHdlOW5EN2lrTU0

This pdf sample is opened with the following :

user pwd : jasper
owner pwd : reports

Best regards,

-jm
0 new messages