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

Cannot convert a block padded by 4 'u' characters. (Parameter 'index') #782

Open
praaline opened this issue Feb 17, 2024 · 2 comments
Open
Labels
bug document-reading Related to reading documents no-document Indicates no sample document attached to issue

Comments

@praaline
Copy link

When parsing a 5-page PDF file, I am getting the error "Cannot convert a block padded by 4 'u' characters. (Parameter 'index')".

I used PDFill free tools to split the PDF into 5 separate files, and then the parsing worked fine (same code).

I am creating a PDFDocument with PdfDocument.Open(pdfFileName); then getting each page in a loop with document.GetPage(i + 1); and then looping over each word with page.GetWords(); I am also using the boundingBox property of each word.

Could it be related to #548 ?

@BobLd
Copy link
Collaborator

BobLd commented Feb 17, 2024

@praaline would you be able to share the document that's causing the issue?

@EliotJones EliotJones added bug document-reading Related to reading documents no-document Indicates no sample document attached to issue labels Feb 18, 2024
@praaline
Copy link
Author

@EliotJones yes, could you please give me an email address? We also need to know who will have access to it (let's exchange this information by email, though). Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug document-reading Related to reading documents no-document Indicates no sample document attached to issue
Projects
None yet
Development

No branches or pull requests

3 participants