Comments (8)
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.
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.
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.
The example from pdf_render above extracts text and its position.
from pdf.
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.
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.
Do you plan to eventually open-source it?
from pdf.
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)
- thread 'main' panicked at 'range end index 4085 out of range for slice of length 4078', file.rs:165
- index out of ranges and assertion failures HOT 9
- Error (unimplemented) trying to run the example with any of the files HOT 2
- New file generation HOT 4
- Test for length of encryption key does not work for my PDF HOT 2
- Reading contents of a PDF HOT 8
- Failing to read PDF due to creation_date HOT 1
- Failure to read PDF with image HOT 1
- Failure to read PDF with Color Space
- Page rect (media_box, crop_box) values being transposed HOT 1
- Is it possible to "screenshot" a page? HOT 4
- Error on filling in pdf form HOT 4
- unable to open png's generated by examples HOT 5
- How do I extract `PageLabel` form pdf? HOT 11
- Panic on invalid input to pdf::file::FileOptions::load
- Panics with invalid date HOT 2
- Unit tests failing in windows HOT 16
- [question] whether Toc modifications is allowed HOT 1
- PDF/a Support HOT 1
- custom font supported? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf.