On Mon, Jul 13, 2009 at 11:43:18PM +0100, Stuart Henderson wrote:
> On 2009/07/13 22:23, Matthias Kilian wrote:
> > On Sun, Jul 12, 2009 at 01:31:29PM -0400, Predrag Punosevac wrote:
> > > I think, I am just saying goodbye to xpdf after probably 20 years. I can
> > > not even recall when I started using xpdf. I am now mupdf guy thanks
> > > to Stuart and the gang!!!
> > 
> > mupdf is promising, but it still lacks some features (like copy&waste,
> 
> it should work with right-click to select, but doesn't at the moment,
> a function needs rewriting first.
> 
> #if 0 /* pdf_loadtextfromtree needs rewriting, so removing this temporarily */

I've a patch for this one, it works when pasting to terminals, but wont work 
with firefox.
xpdf copy/paste have a better looking ouput anyway.

> 
> > text search, zoom to width).
> 
> I don't miss zoom-to-width much, but I do miss search, it's the main
> reason I have for switching back to xpdf temporarily.
> 
> also, aes is not implemented yet, only arc4encrypt, but I've only bumped
> into that once so far.

aes is in sumatrapdf (win32 frontend to fitz). it could be backported easily.

$ head sumatrapdf-read-only/mupdf/fitz/*aes.c                                   
                        
==> sumatrapdf-read-only/mupdf/fitz/crypt_aes.c <==
/* Most of this code is extracted from public domain libtomcrypt 1.17 
   (http://libtom.org/) */

#include "fitz_base.h"
#include "fitz_stream.h"

#define LTC_NO_ASM 1

/* This part extracted from tomcrypt.h in libtomcrypt 1.17 */


==> sumatrapdf-read-only/mupdf/fitz/filt_aes.c <==
/* Written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
   This code is in public domain.
*/
#include "fitz_base.h"
#include "fitz_stream.h"

typedef struct fz_aesc_s fz_aesc;

struct fz_aesc_s
{



the complete list of missing features (to me) is:
- rendering AcroForms
- rendering Notes (dont know exactly what it is. but if it should be 
displayed...)
- search
- print
- table of contents (bookmarks)

for the in tree version:
- jbig
- JPXDecode. it is broken with jasper but upstream added openjpeg alternative 
dependency (on Thu, 25 Jun 2009 10:52:28) which one works.

with jasper, on page 34 of:
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSGuide.pdf

$ mupdf -p 34 AcroJSGuide.pdf
error: cannot decode code stream
+ fitz/filt_jpxd.c:104: fz_processjpxd(): jasper error: jas_image_decode()
| fitz/stm_filter.c:32: fz_process(): cannot process filter
| fitz/filt_pipeline.c:134: fz_processpipeline(): cannot process tail filter
| fitz/stm_filter.c:32: fz_process(): cannot process filter
| fitz/stm_read.c:110: fz_readimp(): cannot process filter
| fitz/stm_read.c:281: fz_readbytex(): cannot read data
\ fitz/stm_open.c:45: fz_dropstream(): dropped unhandled ioerror
warning: truncated image; proceeding anyway



Reply via email to