Giter Club home page Giter Club logo

Comments (4)

leeper avatar leeper commented on May 27, 2024

@khun84 Yes, you can specify the page number twice, along with the area (or use the extract_areas() function to specify those areas interactively).

So something like extract_areas(file, pages = c(1,1)). This will give you the chance to extract two different areas from a given page.

You can pursue the Java approach, but it's really only useful if you know the underlying tabula Java library well; and that is not very well documented anywhere.

from tabulapdf.

khun84 avatar khun84 commented on May 27, 2024

thanks for the clarification...ive tried with extract_areas(file, c(1, 1)) but it return the same table twice. If I have to explicitly define the area for both tables, then my code will break when the position of the tables change.

Is there any function that can return the entire content of the pdf in a DOM like format? In that case, I can traverse the DOM tree and extract what I want.

from tabulapdf.

SteveLane avatar SteveLane commented on May 27, 2024

Hi @leeper - I've recently run into similar issues, but with multi-page documents and a random number of tables per page, I found that the 'spreadsheet' method on the command line and/or via Tabula's interface will drag them out. The write_csv function spills them all out correctly (at least in the cases I've tested), but the list_matrices function doesn't.

I've edited the list_matrices function if you're happy for a pull request?

from tabulapdf.

leeper avatar leeper commented on May 27, 2024

Yes, please send a PR!

from tabulapdf.

Related Issues (20)

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.