summaryrefslogtreecommitdiff
path: root/lisp/pdf-misc.el
AgeCommit message (Collapse)Author
2025-12-28feat: add pdf-metadata-buffer-modeAidan Hall
This makes the metadata buffer consistent with the annotations and outline buffer in having its own major mode, derived from special-mode. I mainly created this because it bugged me that I couldn't press q to close the metadata buffer.
2023-06-11Add command and submenu to switch between selection stylesAugusto Stoffel
Make it possible to set `pdf-view-selection-style` from Easy Menu. Closes: #190
2022-01-07Fix: check-doc warnings in pdf-miscdevVedang Manerikar
Relates to: #64
2022-01-07fix: parameter to pdf-misc-popup-context-menuShuguang Sun
A parameter `event' is required at least for emacs 29.0. Add `_event' to pacitify compiling warning.
2021-12-31Indentation and code-quality fixesVedang Manerikar
- Remove :group arguments from `defcustom` declarations - `defcustom` picks up `defgroup` names from the same file, so specifying the group is not necessary - Ensure that all function-names are properly quoted using #' - Add an explicit header-option setting lexical-binding to t - Ensure that cl-check-type uses `satisfies` for filenames - Replace all `defadvice` with `advice-add` - Replace `(list ...)` patterns with `\`(...)` patterns Fixes: #62 Fixes: #32 Partially Fixes: #24
2021-11-10Adapt Emacs' easy-menu change #50Shuguang Sun
Emacs had made some change to the easy-menu system, that is, `easy-menu-define` lowers the menu-bar key automatically. Ref: https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-09/msg02038.html Closes #50 Signed-off-by: Shuguang Sun <shuguang79@qq.com>
2021-05-31define-minor-mode: Remove support for obsolete pos argumentsThomas Hisch
This removes the positial arguemnt triplet from the define-minor-mode calls, because they are obsolete since Emacs<21. See the following paragraph in the help section of define-minor-mode. For backward compatibility with the Emacs<21 calling convention, the keywords of define-minor-mode can also be preceded by the obsolete triplet INIT-VALUE LIGHTER KEYMAP.
2021-02-20Fix typos and rename variables around printing PDFsVedang Manerikar
Extends the work done in 2ece508 and 91630c2 to ensure that typos are correctly fixed. Also renames the custom variable `pdf-misc-print-program` to `pdf-misc-print-program-executable` to avoid confusion with the function of the same name.
2021-02-20Update pdf-misc.elStephen Eglen
I think this typo was missed.
2020-04-27Fix typosJonas Bernoulli
2017-08-20Fixes whitespaceAndreas Politz
2017-03-01Delete trailing whitespaceAndreas Politz
2016-10-18Fix some spelling errorsBrady Trainor
2016-01-20Removed duplicate :type in pdf-misc-programm-argsTyler Smith
The defcustom form had two types. I removed the incorrect one, i.e., :type 'file, and left :type '(repeat string).
2015-11-11Made printing args a list of stringsAndreas Politz
2015-09-15Added pdf-misc-print-programm-argsTyler Smith
Allow user to specify additional arguments to the printing command.
2015-09-15Added pdf-misc to the pdf-tools customize groupTyler Smith
2015-09-15Added a message when a print job is sent.Tyler Smith
Informs the user that the print command was actually sent. Useful when the printer is in another room and you don't want to accidentally send the same job multiple times.
2015-06-13Avoid using buffer-file-name.Andreas Politz
* lisp/pdf-misc.el (pdf-misc-display-metadata): Use buffer-name if buffer has not filename.
2015-06-12Added VPDF feature.Andreas Politz
* lisp/pdf-virtual.el: New file handling virtual PDF documents. * test/pdf-test.el: Tests for that feature. * lisp/pdf-misc.el: Extend the menu appropriately. * lisp/pdf-view.el: Make pdf-view-mode play nicer with it's derived mode pdf-virtual-view-mode. * lisp/pdf-tools.el: Integrate pdf-virtual. * NEWS: Added item. * README.org: Mention it.
2015-06-06Add ability to create an image from the selected region.Andreas Politz
* lisp/pdf-view.el (pdf-view-rectangle): New face for highlighting the region as a rectangle. (pdf-view-active-region): Use relative edge values. (pdf-view-mode-map): Add binding for rectangle selection and image extraction. (pdf-view-mouse-set-region): Added argument determining display style. (pdf-view-display-region): Likewise. (pdf-view-extract-region-image): New command for extracting regions as an image. * lisp/pdf-misc.el: Add menu item.
2015-06-02Added midnight modeAndreas Politz
* lisp/pdf-view.el (pdf-view-midnight-colors): New variable (pdf-view-mode-map): Add bindings for midnight- and printer-mode. (pdf-view-midnight-minor-mode): New minor mode apply the recolor filter. * lisp/pdf-misc.el: Add menu entries for printer- and midnight-mode.
2015-03-30* lisp/pdf-occur.el: New and improved asynchronous, multiple file occur.Andreas Politz
* lisp/pdf-isearch.el:(pdf-isearch-occur): New command. * lisp/tablist.el (tablist-generate-sorter): New macro * lisp/pdf-tools.el (pdf-tools-modes, pdf-tools-enabled-modes): Added occur global mode.
2015-03-27Added a print command.Andreas Politz
* lisp/pdf-misc.el (pdf-misc-minor-mode-map): Bound it to C-c C-p (pdf-misc-print-programm): Programm for printing the document. (pdf-misc-print-document): Print the PDF using an external tool. * Makefile (install-server-deps): Optionally depend on gtklp, a printer dialog program.
2015-02-08Drop obsolete function usage.Andreas Politz
* lisp/pdf-sync.el (pdf-sync-forward-search): Use pdf-sync-forward-correlate. * lisp/pdf-misc.el (pdf-sync-mouse-goto-tex): Use pdf-sync-backward-search-mouse.
2015-01-11Made Keywords: section standard conform.Andreas Politz
* lisp/*.el: Use standard keywords.
2014-11-26*** empty log message ***Andreas Politz
2014-11-26*** empty log message ***Andreas Politz
2014-11-24*** empty log message ***Andreas Politz
2014-11-22*** empty log message ***Andreas Politz
2014-11-19*** empty log message ***Andreas Politz
2014-11-18*** empty log message ***Andreas Politz
2014-11-16*** empty log message ***Andreas Politz
2014-11-15*** empty log message ***Andreas Politz
2014-11-15*** empty log message ***Andreas Politz
2014-11-02Updated copyright.Andreas Politz
2014-11-01Make double-clicks work again.Andreas Politz
* lisp/pdf-misc.el: Make double-clicks work on region hotspots. (pdf-misc-minor-mode):Bind the map symbol to `pdf-misc-text-region-keymap'. By default this keymap diverts all events to their regular (w/o map symbol) versions. (pdf-misc-mouse-set-region):Always unread the last event. Use push-mark instead of setting transient-mark-mode. Since pdf-render-with-redraw is pretty slow, only use if necessary. (pdf-misc-text-regions-hotspots-function):Renamed map symbol to the more appropriate pdf-misc-text-region. * lisp/pdf-util.el (pdf-util-image-map-mouse-click-proxy): Renamed.
2014-11-01Removed superfluous 'Andreas Politz
2014-11-01Added text pointer.Andreas Politz
* lisp/pdf-misc.el: Added text pointer over text regions.
2014-10-31Simplyfied one interface and renamed some functions/variables.Andreas Politz
Renamed former layer-* and annotate-* functions/variables to make it clearer what they are supposed to to. Simplyfied former annotate-* interface. * lisp/pdf-render.el:Renamed Functions and Variables. Simplified hotspot interface. * lisp/pdf-misc.el:Rename and use new interface. * lisp/pdf-links.el:Dito. * lisp/pdf-annot.el:Dito.
2014-10-31Merge branch 'highlight-selection'Andreas Politz
2014-10-31Highlight the selection of text.Andreas Politz
* lisp/pdf-info.el: New function `pdf-info-getselection'. (pdf-info-query--transform-response): Added getselection. (pdf-info-gettext): Added selection-style argument. * lisp/pdf-misc.el (pdf-misc-minor-mode-map): Added mouse binding. C-w will now copy the selected region, if there is one. (pdf-misc-selection-convert-commands): New variable. * lisp/pdf-render.el (pdf-render-redraw--1): Added silent argument. (pdf-render-redraw-document): Dito. (pdf-render-momentarily-process): Dropped caching files. * src/epdfinfo.c: Added new command getselection. (print_annot): Removed suspicous type cast. (cmd_gettext): Added selection-style argument.
2013-11-24* pdf-miscAndreas Politz
+ Use a smaller margin. * pdf-sync + Push mark before jumping to the source. + Offset not needed. * pdf-util + Reduced default timeout. * epdinfo.c + Use proper page boundaries.
2013-10-26Fix menu bar.Andreas Politz
2013-10-26Fixed the menu-bar.Andreas Politz
2013-10-26Move context menu into it's own mode.Andreas Politz
2013-10-26Added more documentation and a help command.Andreas Politz
2013-10-23Fixed some comments.Andreas Politz
2013-07-23Cosmetics.Andreas Politz
2013-05-17Merged pdf-attach into pdf-annot and thus resolved the circular dependency.Andreas Politz