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
validation: info dict: missing object #307
Comments
Update: Found out I can change the validation mode by passing in the Configuration, but it didn't solve my problem, here is the error:
|
OK, I shall check it out. PS: relaxed validation is the default for |
Looks like this file was created/modified on an Apple device (possibly Mac Preview) and then processed with "pdf-tools".
We are working on a fix. Thank you for using pdfcpu 💚 |
Fixed with latest commit. |
Hi there,
I was trying to add watermarks on pdf files using
api.AddTextWatermarksFile
but got the errorvalidation error: pdfcpu: validateString: missing object
for some of them. It seems like the error is coming frompdfcpu/validate/info.go
line 60 to 64:if xRefTable.ValidationModa == pdf.ValidationRelaxed { ... }
.I then tried the CLI mode.
validate -m relaxed F18E1000.pdf
gives error:However
pdfcpu validate -m strict F18E1000.pdf
workedI attached the sample pdf below. Also, is there a way to change the validation mode and make
api.AddTextWatermarksFile
work?Thanks!
F18E1000.pdf
The text was updated successfully, but these errors were encountered: