modesty / modesty/pdf2json

pdfcanvas.js getCoords_ help

Open
#137 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
2.2k
Forks
394
Avg merge
3d 5h
Merged PRs (30d)
7

Description

What is the matrix in:

    contextPrototype.getCoords_

This is a 3 x 3 matrix, where the passed x and y are used to obtain the coordinates used for the text, but I just don't understand what is going on?

I'm trying to figure out why the coordinates returned by the module do not match those I see in GIMP, can anyone help?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read pdfcanvas.js around contextPrototype.getCoords_ and trace how its 3 x 3 matrix is used with the supplied x and y values. Done would be a clear explanation of the coordinate transformation and how its output relates to the coordinates shown in GIMP.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.