pdfcanvas.js getCoords_ help

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

Nobody has claimed this yet.

Assessment

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

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.

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?

Dominant language
Java
Stars
2.2k
Forks
396
Avg merge
9d 19h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from modesty/pdf2json

All issues in modesty/pdf2json

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.