Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing Text and image from pdf Document #1780

Open
huzaifansari54 opened this issue Nov 21, 2024 · 3 comments
Open

Parsing Text and image from pdf Document #1780

huzaifansari54 opened this issue Nov 21, 2024 · 3 comments
Labels
enhancement New feature or request needs triage

Comments

@huzaifansari54
Copy link

huzaifansari54 commented Nov 21, 2024

I Created a Rag App where I need images and tables from pdf document i search pdf pkg i found there is PdfParserBase class but it is not completed can someone suggest how to implement it
Here is code
`class PdfParser extends PdfDocumentParserBase {
PdfParser.(super.bytes);
factory PdfParser.load(Uint8List bytes) => PdfParser.
(bytes);

@OverRide
void mergeDocument(PdfDocument pdfDocument) {

}

PdfDocument get doc => PdfDocument.load(this);
@OverRide
int get size => bytes.length;

@OverRide
int get xrefOffset => 0;
}`
i load pdf with bytes but i dint get all info about pdf which i load i think it's is uncompleted

@huzaifansari54 huzaifansari54 added enhancement New feature or request needs triage labels Nov 21, 2024
@DavBfr
Copy link
Owner

DavBfr commented Nov 21, 2024

The implementation is here: https://pub.nfet.net/pdf_crypto/

@marcsanny
Copy link

@DavBfr is it possible to only get the option to load existing document (concrete implementation of PdfDocumentParserBase ) without any crypto functionalities? If so, where can I contact you to talk it through? Thanks :)

@DavBfr
Copy link
Owner

DavBfr commented Dec 16, 2024

@marcsanny There is no real a difference and it's pretty cheap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage
Projects
None yet
Development

No branches or pull requests

3 participants