Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 14:10
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
mupdf viewer
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Author Message
Dingo


Joined: 11 Dec 2007
Posts: 1421
Location: somewhere at the end of rainbow...

PostPosted: Sat 13 Nov 2010, 16:35    Post subject:  mupdf viewer
Subject description: lightweight PDF viewer
 

*mupdf viewer 0.7* (latest: see:http://mupdf.com/ )
- http://dokupuppylinux.co.cc/programs:pdf_reader#mupdf_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

Quote:
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:
    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

_________________
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

Last edited by Dingo on Tue 15 Mar 2011, 16:03; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Sun 14 Nov 2010, 09:34    Post subject:  

It works in 4.3.*.
_________________
adobe flash is rubbish!
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/
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Thu 30 Dec 2010, 04:44    Post subject:  

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-0.7-i486.pet
Description 
pet

 Download 
Filename  mupdf-0.7-i486.pet 
Filesize  532.52 KB 
Downloaded  842 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Dingo


Joined: 11 Dec 2007
Posts: 1421
Location: somewhere at the end of rainbow...

PostPosted: Tue 15 Mar 2011, 16:12    Post subject: mupdf viewer 0.8
Subject description: lightweight PDF viewer
 

UPDATE

*mupdf viewer 0.8* (latest: see:http://mupdf.com/ )
- http://dokupuppylinux.info/programs:pdf_reader#mupdf_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
Quote:
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.

_________________
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

Last edited by Dingo on Tue 02 Jul 2013, 09:34; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Wed 16 Mar 2011, 21:15    Post subject:  

www.mail-archive.com/ports@openbsd.org/msg23464.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
mupdf.gz
Description 
gz

 Download 
Filename  mupdf.gz 
Filesize  405.31 KB 
Downloaded  445 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Whusmaname


Joined: 29 Aug 2011
Posts: 37
Location: Narnia - as in Narnia bisniss!!!

PostPosted: Wed 21 Sep 2011, 16:37    Post subject:  

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:
  1. Pillage, THEN burn.
  2. If it ain't bolted down, then it's fair game.

Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Wed 21 Sep 2011, 17:59    Post subject:  

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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Dingo


Joined: 11 Dec 2007
Posts: 1421
Location: somewhere at the end of rainbow...

PostPosted: Wed 21 Sep 2011, 18:37    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Wed 21 Sep 2011, 18:55    Post subject:  

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
mupdf.tar.gz
Description 
gz

 Download 
Filename  mupdf.tar.gz 
Filesize  458.88 KB 
Downloaded  509 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Tue 13 Dec 2011, 06:36    Post subject:  

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
mupdf-multicall.patch.gz
Description 
gz

 Download 
Filename  mupdf-multicall.patch.gz 
Filesize  2.47 KB 
Downloaded  442 Time(s) 
mupdf-0.9-99.tar.gz
Description 
gz

 Download 
Filename  mupdf-0.9-99.tar.gz 
Filesize  484.97 KB 
Downloaded  443 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Mon 09 Jan 2012, 14:17    Post subject:  

Mypdf is now buildable multicall as of this commit:
http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=94439d77f23763d59457b9946ba35bd354ea4841

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
johnywhy

Joined: 20 Aug 2011
Posts: 353

PostPosted: Wed 01 Feb 2012, 00:31    Post subject: Cannot Copy Text  

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.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Wed 01 Feb 2012, 11:53    Post subject:  

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:
touch ${HOME}/.glipper_on

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Ibidem

Joined: 25 May 2010
Posts: 501
Location: State of Jefferson

PostPosted: Sat 12 May 2012, 12:49    Post subject:  

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.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Thu 24 May 2012, 20:29    Post subject:  

latest svn (post 1.0 release)
mubusy.tar.gz
Description  usage: mubusy <command> <args>
gz

 Download 
Filename  mubusy.tar.gz 
Filesize  538.43 KB 
Downloaded  386 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0874s ][ Queries: 13 (0.0040s) ][ GZIP on ]