Giter Club home page Giter Club logo

pdftoroff's People

Contributors

sgerwk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

idle-meerkat

pdftoroff's Issues

Help to add invert color option in hovacui

Hi there. Thanks for the great work, I have been a big fan of this project, especially the hovacui reader (its simple and minimal yet functional, along with X and fb support).

Is it possible to add an option to invert the colors of the pdf (like mupdf/zathura do)?
I'm not great with poppler headers, and need some help figuring out if possible to add an invert-color option.

Please check this out when you have the time to do so.
Thank you.

NetBSD support (for xhovacui)

Hi,

thanks for you great work, hovacui works wonderfully on small screens and low-end devices.

I got xhovacui to compile (and it seems to run fine) on NetBSD (which doesn't have <linux/fb.h>), by removing the fb dependency and adding few headers:

diff --git a/Makefile b/Makefile
index 1202e05..9215db4 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ pdftoroff pdffit pdfrects pdfrecur: pdfrects.o
 hovacui fbhovacui drmhovacui xhovacui: pdfrects.o
 fbhovacui: cairofb.o vt.o cairoio-fb.o cairoui.o hovacui.o fbhovacui.o
 drmhovacui: cairodrm.o vt.o cairoio-drm.o cairoui.o hovacui.o drmhovacui.o
-xhovacui: cairofb.o vt.o cairoio-x11.o cairoui.o hovacui.o xhovacui.o
+xhovacui: cairoio-x11.o cairoui.o hovacui.o xhovacui.o
 hovacui: cairofb.o cairodrm.o vt.o cairoio-x11.o cairoio-fb.o cairoio-drm.o \
 cairoui.o hovacui.o hovacui-main.o
 cairoui: cairofb.o vt.o cairoio-fb.o cairoio-x11.o cairoui.o cairoui-main.o
diff --git a/cairoio-x11.c b/cairoio-x11.c
index aa2afec..ac91ac8 100644
--- a/cairoio-x11.c
+++ b/cairoio-x11.c
@@ -1,6 +1,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
+#include <sys/time.h>
 #include <X11/Xlib.h>
 #include <X11/keysym.h>
 #include <X11/Xatom.h>
@@ -8,7 +9,6 @@
 #include <cairo.h>
 #include <cairo-xlib.h>
 #include "cairoio.h"
-
 /*
  * name of the program, as used in the window title
  */
diff --git a/cairoui.c b/cairoui.c
index 33b6766..9407cf6 100644
--- a/cairoui.c
+++ b/cairoui.c
@@ -260,6 +260,7 @@
 #include <string.h>
 #include <signal.h>
 #include <time.h>
+#include <stdarg.h>
 #include <ctype.h>
 #include "cairoio.h"
 #include "cairoui.h"

Was there a reason to link against vt.o and cairofb.o for the xhovacui target?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.