Page 1 of 2

mupdf viewer

Posted: Sat 13 Nov 2010, 20:35
by Dingo
*mupdf viewer 0.7* (latest: see:http://mupdf.com/ )
- http://dokupuppylinux.co.cc/programs:pd ... _viewer_07

compiled in Puppy 3.01 (please, report if it is works also on Puppy 4.3.x- higher series)

reported as working also in 4.x.x Puppy series

this is only the viewer, if anyone is interested to mupdf tools, can download these here
http://dokupuppylinux.co.cc/programs:pdf_manipulation
MuPDF is a lightweight PDF viewer and toolkit written in portable C.

The renderer in MuPDF is tailored for high quality anti-aliased graphics. It renders text with metrics and spacing accurate to within fractions of a pixel for the highest fidelity in reproducing the look of a printed page on screen.
usage: mupdf [options] file.pdf

Manual

The main viewer application is mupdf. Left click to pan, right click to select and copy text. Hold down shift when scrolling to zoom. Your navigation history is saved when following links, use 'T' to go back.

Code: Select all

    L 	rotate left
    R 	rotate right
    h 	scroll left
    j    down 	scroll down
    k   up 	scroll up
    l 	scroll right
    + 	zoom in
    - 	zoom out
    w 	shrinkwrap
    r 	reload file
    . pgdn right space 	next page
    , pgup left b 	previous page
    > 	next 10 pages
    < 	back 10 pages
    m 	mark page for snap back
    t 	pop back to latest mark
    1m 	mark page in register 1
    1t 	go to page in register 1
    123g 	go to page 123
    / 	search for text
    n 	find next search result
    N 	find previous search result
    c 	toggle between color and grayscale

Posted: Sun 14 Nov 2010, 13:34
by abushcrafter
It works in 4.3.*.

Posted: Thu 30 Dec 2010, 08:44
by technosaurus
here is the small version only 1/6th the size

compiled in wary

removed the giant builtin droid font by adding -DNOCJK to the release cflags

resource usage is really low - <15Mb (1/3 of epdfview)

need to look at vlc-gtk code (for key control) to get a frontend

anyone get this working with mozplugger?

mupdf viewer 0.8

Posted: Tue 15 Mar 2011, 20:12
by Dingo
UPDATE

*mupdf viewer 0.8* (latest: see:http://mupdf.com/ )
- http://dokupuppylinux.info/programs:pdf ... _viewer_08

compiled in Puppy 3.01 (please, report if it is works also on Puppy 4.3.x- higher series)

reported as working also in 4.x.x Puppy series

this is only the viewer, if anyone is interested to mupdf tools, can download these here
http://dokupuppylinux.info/programs:pdf_manipulation

light version (810 KB) also available at same url

changelog
MuPDF 0.8 (2011-03-03)

We have improved the image scaling code. We now use an algorithm based on a Graphics Gem when downscaling images, and simple bilinear interpolation when magnifying images. The results are vastly improved legibility of documents which use images containing text. This includes documents created by scanning or photographing a physical document, but also many academic papers using type 3 bitmap fonts, such as those created by old versions of LaTeX.

MuPDF will now display PDF annotations when rendering a page.

Transparency support for blend modes and in particular soft masks has been improved, along with many bug fixes, improved conformance, and optimizations to the colorspace and function parsing code.

We can now read PDF documents using 256-bit encryption (AESv3).

The CMap data structures have been squeezed to reduce the memory footprint of the character map tables by about 500K. The CJK fallback font has also been updated to a newer version with more characters.

Posted: Thu 17 Mar 2011, 01:15
by technosaurus
http://www.mail-archive.com/ports@openb ... 23464.html
patches for mozplugger if anyone is interested

also in case anyone else gets curious and tries to hack out libopenjpeg or jbig, it only removes ~50kb from the binary size compared to compiling them in statically

Posted: Wed 21 Sep 2011, 20:37
by Whusmaname
I noticed that these work for Puppy 3.xxx and 4.xxx, but what about 5.xxx?

I'm asking, 'cos I'm on Lucid Puppy 5.1.1 (LuPu 511).

Posted: Wed 21 Sep 2011, 21:59
by technosaurus
it should work, try it and see (run it from the command line if it doesn't work)
mupdf /usr/share/examples/ps-pdf/Acrobat.pdf

Posted: Wed 21 Sep 2011, 22:37
by Dingo
latest build is now 9.0

mupdf-9.0-lucid.pet

this package contains mupdfutils + mupdf viewer, compiled with -DNOCJK switch to decrease size

Posted: Wed 21 Sep 2011, 22:55
by technosaurus
lol, I _just_ built the latest git in Wary for the page# functionality and fixed memory leaks (usage is now <9mb RAM)

page number with shift+p
needed for the bookmark wrapper I posted here:
http://murga-linux.com/puppy/viewtopic.php?t=71423

Posted: Tue 13 Dec 2011, 10:36
by technosaurus
I was able to turn mupdf and all of the extras into one multicall binary:
mupdf pdfclean pdfdraw pdfextract pdfinfo pdfshow xpsdraw

I have also attached a patch for future use in case anyone else wants to give it a shot.

Note: this is not a pet, because I didn't include any gui for it - thus no desktop menu and nothing that overrides the existing defaultpdfviewer ... or defaultxpsviewer if we even had that ... so really this is for experimental use, for anyone wanting to do that _fun_ stuff

Posted: Mon 09 Jan 2012, 18:17
by technosaurus
Mypdf is now buildable multicall as of this commit:
http://git.ghostscript.com/?p=mupdf.git ... d354ea4841

Cannot Copy Text

Posted: Wed 01 Feb 2012, 04:31
by johnywhy
hi

anybody have any success copying text in mupdf? you're supposed to right-drag to select, and then press enter or ctrl-c.

Selecting works, but cannot copy.

On lucid 5.2.8.

I'm searching for a pdf reader on which copy text works. Foxit hangs on trying to copy text. Lucid's PDF Reader does not allow text to be selected (the selection vanishes when you let go of the mouse button).

thanks!

--update, got the copy text feature with foxit for debian deb. No other pdf reader or version that i tried (including foxit installed by the puppy package mgr) allowed me to copy text.

Posted: Wed 01 Feb 2012, 15:53
by technosaurus
right-highlight a block of text, then press Ctrl+Ins (or Ctrl+C)

then insert it with middle mouse button (or both simultaneously on a 2 button mouse)

there are 2 different types of "clipboards" and mupdf goes to the same one as console programs for whatever reason

...this may not be the case if you run a clipboard manager like glipper

Code: Select all

touch ${HOME}/.glipper_on

Posted: Sat 12 May 2012, 16:49
by Ibidem
technosaurus wrote:right-highlight a block of text, then press Ctrl+Ins (or Ctrl+C)

then insert it with middle mouse button (or both simultaneously on a 2 button mouse)

there are 2 different types of "clipboards" and mupdf goes to the same one as console programs for whatever reason
No need for Ctrl C/Ctrl Ins
just highlight (why must it be with the right mouse button? they use the left for navigation, which kind of sucks).
Then middle-click (right+left if you have a 2 button mouse, press wheel down if there's a wheel) to paste.
This is what X does natively. GPM copied X behavior.
For some reason, the GTK devs decided to copy Windows select-copy-paste; X select-paste is still available in GTK, tho.

Posted: Fri 25 May 2012, 00:29
by technosaurus
latest svn (post 1.0 release)

Posted: Fri 25 May 2012, 06:36
by Dingo
an indipendent developer has added pagemarks ability to mupdf

https://github.com/Asido/MuPDF

however, even successfully compiled from sources, I don't see any pagemarks ability

see issue:
https://github.com/Asido/MuPDF/issues/1 ... nt-5651555

Posted: Sat 02 Jun 2012, 10:03
by antiloquax
I've just come across this package. I'm going to try to build it on my Raspberry Pi.
Compiled it myself in Slack before I saw this thread. :oops:

Posted: Sun 03 Jun 2012, 04:16
by technosaurus
I was playing with my musl-libc toolchain and wanted to see if it could build a real app - here is the result, a static build with musl, tinyx11, xext and the 3rd party libs in just over 1mb (resource usage is much lower too <6mb RAM) These are the official 1.0 release, not latest git and package without modification (mubusy only has the command line tools and mupdf is separate)

Edit: this version is now included in mupdf-gtk, command line tools are still here.

How is a mubusy tool invoked in Puppy?

Posted: Mon 04 Jun 2012, 00:12
by zygo
technosaurus,

Thanks for these. How is mupdfextract invoked in Puppy?

Code: Select all

# mubusy 
mubusy: Combined build of mupdf/mudraw tools.

Invoke as one of the following:
	mupdfclean, mudraw, mupdfextract, mupdfinfo, mupdfshow.
# mupdfextract
bash: mupdfextract: command not found
# mubusy mupdfextract
mubusy: Combined build of mupdf/mudraw tools.

Invoke as one of the following:
	mupdfclean, mudraw, mupdfextract, mupdfinfo, mupdfshow.
:(

Posted: Mon 04 Jun 2012, 01:06
by technosaurus
mubusy mupdfextract args

Iirc, this has changed in git. Dropping the mu- from the internal commands, but I could be mistaken. If I get time I'll supply a patch to work like busybox and include mupdf itself.