Giter Club home page Giter Club logo

Comments (8)

s3bk avatar s3bk commented on August 16, 2024

The examples for the pdf crate are in https://github.com/pdf-rs/pdf/tree/master/pdf/examples

If you want to read the rendered content and now the raw data, you may want to look at
https://github.com/pdf-rs/pdf_render/blob/master/render/examples/trace.rs

If you still can't figure out what to do, join https://type.zulipchat.com/#narrow/stream/209232-pdf

from pdf.

s3bk avatar s3bk commented on August 16, 2024

It is also highly recommend to look at the PDF specification.
This crate is basically just a Rust-Typed translation of the specification, and not a high-level abstraction.

from pdf.

septatrix avatar septatrix commented on August 16, 2024

This crate is basically just a Rust-Typed translation of the specification, and not a high-level abstraction.

Do you know of any higher-level wrapper or is this maybe planned for this project itself? I am especially interested in extracting text including it's position

from pdf.

s3bk avatar s3bk commented on August 16, 2024

The example from pdf_render above extracts text and its position.

from pdf.

septatrix avatar septatrix commented on August 16, 2024

That already looks very promising after a few tests. Some of the segments it does not detect as a single string and instead spits out separate chars but I think that can be fixed. For now I will probably stay with pdf.js but in the future I might transition to pdf-rs as I already use rust+WASM in some other places. If everything works well it would result in a pure rust alternative to tabula-java ;)

from pdf.

s3bk avatar s3bk commented on August 16, 2024

Yes, there are no attempts to combine separate draw calls.
I am actually working on table extraction right now, but it is not open source.

from pdf.

septatrix avatar septatrix commented on August 16, 2024

Do you plan to eventually open-source it?

from pdf.

s3bk avatar s3bk commented on August 16, 2024

I can't and I don't think it makes sense. This is such an impossible problem that there can only be approximations to a solution and there will be a never ending stream of bugs.
I have (low) standards for my open source code, but ... this is not even close.

from pdf.

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.