Giter Site home page Giter Site logo

pdf-2-csv's People

Contributors

derek-jones avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pdf-2-csv's Issues

Identify pdf operations responsible for drawing a region on a page

Converting a graph from pdf to csv first requires that all the associated pdf operations be identified.

When viewing a pdf, using Mozilla's PDF.js, the user highlights a region on the page. All pdf operations associated with this region need to be identified and extracted from the pdf.

Identify the start/end of the x and y axis of graph

A graph will contain at least one x and y axis (assume one of each to start).

The most likely start/end of the x and y axis needs to be identified.

Identify the two longest lines at right-angles to each other, is one possible heuristic.

pdf operations use page relative coordinates. Knowing the page relative coordinates allows the page relative coordinates of graph points to be mapped to graph relative coordinates.

Method used to denote a single point in the graph

The method used by particular a pdf generation tool to denote a single point (e.g., circle or cross) needs to be identified. Tools often embed an identifying string in the pdf they generate.

Some tools create their own 'point' character by, for instance, drawing vertical/horizontal lines. Things get complicated when the tool generates pdf operations that draws all the horizontal lines first, followed by all the vertical lines (or vice versa).

The following draws a circle on the page:
/F1 1 Tf 1 Tr 6.21 0 0 6.21 135.35 423.79 Tm (l) Tj 0 Tr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.