summaryrefslogtreecommitdiff
path: root/server/epdfinfo.h
AgeCommit message (Collapse)Author
2025-12-29feat(midnight-mode): add gamma correction and fix RGB bugsZiv Scully
Add gamma correction options for better contrast control in midnight mode: - pdf-view-midnight-gamma: nonlinearly scale lightness (default 1.0) - pdf-view-midnight-gamma-before-invert: control gamma application order Bug fixes: - Fix RGB normalization (255 not 256) - was causing incorrect background color - Add missing black→foreground fast path (comment existed but code was missing) Closes: #329 Author: @vizziv
2022-05-21Remove usage of all private poppler headers in pdf-toolsPi-Cla
This commit also removes C++ entirely, as it is not needed anymore for correct compilation of `epdfinfo`. The following changes are made: - Remove private headers from all the server code. This involves: - Replace private header functionality with the correct public functions provided by poppler. - Remove unneeded headers around date checks - Delete dead-code (headers, m4 macros) - Remove C++, g++ and similar aliases from all the code. Also: - Remove related information from the README - Remove related information from CI and Dockerfiles Work done by: @Pi-Cla Closes: #105, #103, #109, #114
2017-09-18Improve naming of hidden, temporary variableAndreas Politz
2017-08-11Fix trailing whitespaceAndreas Politz
2015-05-14Merge branch 'master' into optionsoscar
Conflicts: lisp/pdf-info.el server/epdfinfo.c server/epdfinfo.h
2015-04-20Build CompatibilityAndreas Politz
* server/configure.ac: Check for error.h * server/epdfinfo.h: * server/epdfinfo.c: Use result of above check. * server/autogen.sh: Use /bin/sh instead of bash.
2015-04-01Use a macro for declaring commands.Andreas Politz
* server/epdfinfo.h (DEC_CMD, DEC_CMD2): New macros. * server/epdfinfo.c (commands): Use macros.
2015-04-01Summary: Removed unused argument type.Andreas Politz
* server/epdfinfo.c (command_arg_parse_arg): Remove ARG_QUADRILATERAL. * server/epdfinfo.h (command_arg_type_t): Dito.
2015-04-01Improved command handling, cont'dAndreas Politz
* server/epdfinfo.h (DEC_CMD, DEC_CMD2, DEC_DOPT): Macros for declaring commands and options. * server/epdfinfo.c (command_arg_parse_arg): Removed unused ARG_QUADRILATERAL. (command_arg_print, command_arg_type_size): New function. (document_options): New array holding document options. (cmd_getoptions, cmd_setoptions): Use above array. (commands): Use Macros. * lisp/pdf-info.el (pdf-info-query--transform-response): setoptions: Return new options.
2015-03-31Started options branch.Andreas Politz
* server/epdfinfo.h : Add option structs. * server/epdfinfo.c (image_render_page): Use struct as argument. (cmd_getoptions, cmd_setoptions): New commands. * lisp/pdf-info.el (pdf-info-query--transform-response, pdf-info-getoptions, pdf-info-setoptions): Handle new commands.
2015-03-23Added compile check for CYGWIN, part 2Andreas Politz
* server/epdfinfo.c: Don't include poppler Error.h when compiling for * cygwin. (There may be a better fix, i.e change the include path priorities?) server/epdfinfo.h: Dito
2015-02-07Move error to headerIvan Andrus
2015-01-14Moved src -> server.Andreas Politz