Gottox / node-pdfutils

tool for analyzing and converting PDF
104 stars 23 forks source link

[ENHANCHEMENT] GetWorldList #6

Open v4l3r10 opened 10 years ago

v4l3r10 commented 10 years ago

hi! i have found in poppler-simple a really good function GetWorldList https://github.com/blackbeam/poppler-simple/blob/master/src/NodePopplerPage.cc#L215

return an array of objs (strings) with the absolute coordinates in pdf

 { x1: 0.10272227121918438,
    x2: 0.15219520389735833,
    y1: 0.500893822843629,
    y2: 0.5152187516644118,
    text: 'Code' },
  { x1: 0.15731888622905377,
    x2: 0.1713292175885095,
    y1: 0.500893822843629,
    y2: 0.5152187516644118,
    text: 'of' },
  { x1: 0.1764528999202049,
    x2: 0.25577758178992893,
    y1: 0.500893822843629,
    y2: 0.5152187516644118,
    text: 'Migration' },

It would really good if we were able get this with pdfutils

Gottox commented 10 years ago

Considered for 0.4