mupdf viewer

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

mupdf viewer

#1 Post 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
Last edited by Dingo on Tue 15 Mar 2011, 20:03, edited 2 times in total.
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#2 Post by abushcrafter »

It works in 4.3.*.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#3 Post 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?
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

mupdf viewer 0.8

#4 Post 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.
Last edited by Dingo on Tue 02 Jul 2013, 13:34, edited 1 time in total.
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#5 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Whusmaname
Posts: 37
Joined: Mon 29 Aug 2011, 14:37
Location: Narnia - as in Narnia bisniss!!!

#6 Post 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).
Of course I will lead the Horde... as long as I get to do it from upwind... 'cos they frickin' REEK!!!

Rogue rules:
[list=1][*]Pillage, [u]THEN[/u] burn.
[*]If it ain't bolted down, then it's [b]fair game[/b].[/list]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#7 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#8 Post 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
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#9 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#10 Post 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
Attachments
mupdf-multicall.patch.gz
(2.47 KiB) Downloaded 985 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#11 Post by technosaurus »

Mypdf is now buildable multicall as of this commit:
http://git.ghostscript.com/?p=mupdf.git ... d354ea4841
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

Cannot Copy Text

#12 Post 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.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#13 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

#14 Post 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.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#15 Post by technosaurus »

latest svn (post 1.0 release)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#16 Post 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
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#17 Post 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:
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#18 Post 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.
Last edited by technosaurus on Sun 21 Oct 2012, 22:38, edited 1 time in total.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

zygo
Posts: 243
Joined: Sat 08 Apr 2006, 20:15
Location: UK

How is a mubusy tool invoked in Puppy?

#19 Post 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.
:(

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#20 Post 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.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply