sgerwk / pdftoroff Goto Github PK
View Code? Open in Web Editor NEWview pdf on X11 and the Linux framebuffer; resize pdf; convert pdf to text, html, TeX, groff
License: GNU General Public License v3.0
view pdf on X11 and the Linux framebuffer; resize pdf; convert pdf to text, html, TeX, groff
License: GNU General Public License v3.0
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.