Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Z zathura
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 160
    • Issues 160
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pwmt
  • zathura
  • Merge requests
  • !56

Add selection coordinates to command exec parameters

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open pcy requested to merge pcy/zathura:selection-exec-params into develop Jun 30, 2022
  • Overview 0
  • Commits 2
  • Changes 4

This series of two commits adds the parameters $X1, $Y2, etc. to the parameters available to a shell command.

This is quite useful as this allows one to create a keybinding that will cryptographically sign the document using several types of government-issued ID cards using e.g. pyHanko. These types of signatures need to be placed at certain coordinates on the PDF document (as opposed to eg. PGP signatures), and are the only type of signatures governments etc. will typically acknowledge (also unlike PGP signatures). An example of this usage can be found here.

The first commit adds two API functions that expose the selection rectangle coordinates to a page, so I could use those in the second commit. I'm not sure if this is the best place to add these two functions or if there's a better way to do this, input is welcome there.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: selection-exec-params