On 06/12/2010 09:36 PM, malc wrote:
> Hello,
> 
> Long story cut short: the PDF viewers that are available for my machine
> leave a lot to be desired for my usage pattern, so i had to write yet
> another, the code is at:
> 
> http://repo.or.cz/w/llpp.git
> 
> http://repo.or.cz/w/llpp.git/blob_plain/master:/BUILDING explains how to
> build it.
> 

Appears to be working fine so far, and much faster than okular.

Two minor issues:
1. The mupdf from sumatrapdf installs fitz.h and mupdf.h directly into
/usr/local/include, and not under fitz/, or mupdf/, so llpp failed to
compile. I fixed by copying the headers to where llpp expected them to be.
2. It segfaults if the file is not found, fix below:
diff --git a/link.c b/link.c
index 7ca7684..7dab233 100644
--- a/link.c
+++ b/link.c
@@ -177,7 +177,8 @@ static void __attribute__ ((format (printf, 2, 3)))
 static void die (fz_error error)
 {
     fz_catch (error, "aborting");
-    pdf_closexref (state.xref);
+    if (state.xref)
+       pdf_closexref (state.xref);
     exit (1);
 }


Best regards,
--Edwin

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to