We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when looking into the issue described in tmc/langchaingo#348
i found that the library fails when parsing pages without Contents.
strm := p.V.Key("Contents")
returns a Null Value, which then leads to an error.
So when parsing one either has to check for p.V.Key("Contents").Kind() not being pdf.Null
if p.V.IsNull() || p.V.Key("Contents").Kind() == pdf.Null { continue }
or I think the functions using p.V.Key("Contents") should check the returned Kind (or recover from an error)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when looking into the issue described in
tmc/langchaingo#348
i found that the library fails when parsing pages without Contents.
strm := p.V.Key("Contents")
returns a Null Value, which then leads to an error.
So when parsing one either has to check for p.V.Key("Contents").Kind() not being pdf.Null
or I think the functions using p.V.Key("Contents") should check the returned Kind (or recover from an error)
The text was updated successfully, but these errors were encountered: