summaryrefslogtreecommitdiff
path: root/server/epdfinfo.c
AgeCommit message (Collapse)Author
2022-01-03Minor language correction: it's -> itsVedang Manerikar
The correct possessive with it is "its", not "it's". Closes: politza#689
2019-12-28Adapt to changes in synctex APIAndreas Politz
2019-11-26Fix typosDamien Cassou
Typos found with codespell.
2017-09-18Revert incorrect previous change and use the old methodAndreas Politz
Discard synctex's stdout by redefining printf as before.
2017-09-18Mute synctex library's stdoutAndreas Politz
2017-08-25Improves error messages for synctex failuresAndreas Politz
2017-08-11Fix trailing whitespaceAndreas Politz
2016-11-11Fix a synctex-backward-search bug not properly escaping filenamesAndreas Politz
2016-02-26Enable building under WindowsLars Ljung
Added some functions missing in Windows. Switch to binary mode on stdin and stdout to avoid line ending issues.
2015-11-12Adds translattion of highlight annotationsv0.70Andreas Politz
2015-07-16Avoid gcc warningAndreas Politz
*server/epdfinfo.c(annotation_print): Make error label conditional.
2015-06-13Drop default error logfile.Andreas Politz
* server/epdfinfo.c (main): Withou args redirect to /dev/null.
2015-06-12Added a noop command to the server.Andreas Politz
* server/epdfinfo.c (cmd_ping): Pong. * lisp/pdf-info.el (pdf-info-ping): Handle it.
2015-06-12Fix :crop-to handling.Andreas Politz
* server/epdfinfo.c (cmd_renderpage): Use the correct transformations.
2015-06-07Unified rendering commands in the server.Andreas Politz
* server/epdfinfo.c (cmd_renderpage): Incorporated cmd_renderpage_x commands into cmd_renderpage. * lisp/pdf-view.el (pdf-view-extract-region-image): Use new rendering capabilities. * lisp/pdf-info.el (pdf-info-renderpage): Adhere to and provide new command protocol. (pdf-info-renderpage-text-regions): Use pdf-info-renderpage. (pdf-info-renderpage-highlight): Use pdf-info-renderpage.
2015-06-06Modified visual highlighting styleAndreas Politz
* server/epdfinfo.c (cmd_renderpage_highlight): Drop the x/y-offsets, otherwise the visuals do not accurately represent the selected region.
2015-06-02Make filter function independent of optionsAndreas Politz
* server/epdfinfo.c (image_recolor): Use PopplerColor as argument. Some renaming. (image_render_page): Apply signature difference.
2015-05-31Added recolor feature based on pdf-info-setoptionsoscar
2015-05-14Merge branch 'master' into optionsoscar
Conflicts: lisp/pdf-info.el server/epdfinfo.c server/epdfinfo.h
2015-05-05Added navigation by and display of pagelabels.Andreas Politz
* server/epdfinfo.c: New command pagelabels. * lisp/pdf-view.el (pdf-view-goto-label): New command for going to the page corresponding to it's label. (pdf-view-mode-map): Bind it to `M-g l' . * lisp/pdf-outline.el (pdf-outline-display-labels): New option for displaying labels instead of page numbers. (pdf-outline-insert-outline, pdf-outline-insert-outline, pdf-outline-imenu-create-item, pdf-outline-imenu-create-index-flat, pdf-outline-imenu-create-index-tree, pdf-outline-imenu-create-index-tree-1): Handle it. * lisp/pdf-info.el (pdf-info-pagelabels): New command returning a list of pagelabels. (pdf-info-query--transform-response): Handle it. * NEWS: Add news items.
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-12Streamline PPM writing.Andreas Politz
* server/epdfinfo.c (image_write): Use a buffer for writing.
2015-04-07Remove unnecessary path check.Andreas Politz
* server/epdfinfo.c (cmd_open): g_filename_to_uri already checks for absolutity.
2015-04-01Removed sneaked in commands from other branch.Andreas Politz
* server/epdfinfo.c: Remove get- and setoptions
2015-04-01CosmeticsAndreas Politz
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.Andreas 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.
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-30Added PCRE support.Andreas Politz
* lisp/pdf-info.el (pdf-info-query--transform-response): Put match face properties on the matched text of the line. (pdf-info-search-string): The returned line now contains face properties on the matched part. (pdf-info-search-regexp): This function now searches for PCRE, and as such the calling convention has changed to support the various flags of the underlying engine. (pdf-info-regexp-compile-flags, pdf-info-regexp-match-flags): List of regexp flags. * server/epdfinfo.c: (cmd_search_regexp): Use complex numeric flags of the new engine instead of the old boolean ones. Now returns both the matched text and it's corresponding line. (cmd_search_string): Return both as well. (cmd_regexp_flags): New command returning regexp flags and their values. * lisp/pdf-util.el (pdf-util-highlight-regexp-in-string): New function for propertizing a string. (pdf-util-edges-union): Added minor optimization.
2015-03-23Added compile check for CYGWINAndreas 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-03-09Handle empty annotation regions.Andreas Politz
* server/epdfinfo.c (region_print): Print a zero sized region at 0,0.
2015-02-18Open error log in append mode.Andreas Politz
* server/epdfinfo.c (main): Use `a'.
2015-02-13Treat compiler warnings.Andreas Politz
* server/poppler-hack.cc (poppler_annot_markup_get_type): Remove unused variable. * server/epdfinfo.c (cmd_charlayout): Use proper type. (main): Initialize variable.
2015-02-12Added charlayout command.Andreas Politz
* server/epdfinfo.c (cmd_charlayout): Provides edges of character. * lisp/pdf-info.el (pdf-info-query--transform-response): Added transform. (pdf-info-charlayout): Added interface for the command.
2015-02-12Some cleanup.Andreas Politz
* server/epdfinfo.c:
2015-02-12Fixed a NULL pointer bug.Andreas Politz
* server/epdfinfo.c (): Initialize rectangles.
2015-02-12Improved highlighting.Andreas Politz
* server/epdfinfo.c (cmd_renderpage_highlight): Properly handle the arguments. * lisp/pdf-info.el (pdf-info-renderpage-highlight): Likewise. * lisp/pdf-annot.el (pdf-annot-show-annotation): Use slightly better looking colors.
2015-02-07Move error to headerIvan Andrus
2015-02-07Make error actually work correctly instead of compileAndreas Politz
2015-02-06Fix compilation on OS XIvan Andrus
2015-02-05Fixed a bug.Andreas Politz
* server/epdfinfo.c (cmd_gettext): Use correct args index.
2015-02-04Fix bugs.Andreas Politz
* server/epdfinfo.c (command_arg_split): Alloc space for the 0. (cmd_getselection): Use correct index.
2015-02-04Fixed a bug regarding pagelinks.Andreas Politz
* server/epdfinfo.c (cmd_pagelinks): Don't print the edges, if the action is not handled, which would result in a invalid response.
2015-01-14Moved src -> server.Andreas Politz