Comments (6)
pdf-checker is complaining because it's expecting a UInt (non-negative integer) for /StructParent
entries, but the above example it's getting a negative value -167
.
I rechecked Annotations (table 164 in the spec). I think the error is valid. These values are an array index and shouldn't be negative.
Although pdf-checker
being a bit spammy and reporting multiple warnings, before it finds the error.
from pdf-class-raku.
Where are the errors coming from in the first place?
from pdf-class-raku.
The pdf-append
script produces this warning, if I add a negative /StructParent
to a PDF Annotation. It probably shouldn't.
$ raku -I . bin/pdf-append.raku /tmp/pdf-annot.pdf /tmp/pdf-annot.pdf
unable to coerce object -1 of type Int to UInt
in method coerce-to at /home/david/git/rakudo-main/install/share/perl6/site/sources/5E3ADB461D8B2C83796E0BC14B0BE93B46986FFF (PDF::COS::Coercer) line 62
unable to coerce object -1 of type Int to UInt
in method coerce-to at /home/david/git/rakudo-main/install/share/perl6/site/sources/5E3ADB461D8B2C83796E0BC14B0BE93B46986FFF (PDF::COS::Coercer) line 62
unable to coerce object -1 of type Int to UInt
in method coerce-to at /home/david/git/rakudo-main/install/share/perl6/site/sources/5E3ADB461D8B2C83796E0BC14B0BE93B46986FFF (PDF::COS::Coercer) line 62
from pdf-class-raku.
Warning is useless anyway, it doesn't indicate where in the PDF the problem is.
from pdf-class-raku.
@tsalada - I've removed those warnings. They were being produced while the PDF objects were being copied.
pdf-checker
(as you've already noticed) can be used to find an errors in the input PDF anyway.
Please upgrade to the latest PDF 0.5.4, which I've just uploaded to the zef ecosystem. This release suppresses those warnings.
from pdf-class-raku.
This worked. I was able to extract the pages I needed. Thanks.
from pdf-class-raku.
Related Issues (20)
- todo build class documenter tool HOT 2
- Error during installation (testing phase) HOT 9
- todo mine the PDF 32000 specification HOT 5
- Install fails. CentOS/Rakudo version 2020.02.1 built on MoarVM version 2020.02.1 HOT 1
- Additional actions modelling is incorrect
- Script pdf-info throwing exception after pdf-checker reports no error HOT 1
- Changes are required for the rename of PDF::Writer(Reader) to PDF::IO:Writer(Reader) HOT 1
- /Resources entry placed in /Pages not /Page
- Handle 'must be indirect reference' constraints in spec HOT 1
- Re-Installing PDF::Class Failed HOT 4
- Dump when executing: "pdf-burst.raku --page=1 --save-as=t.pdf irrigation-plan.pdf" HOT 7
- Work in progress on PDF 2.0 support. HOT 1
- Trailer dict not serializing indirect objects HOT 1
- Text Block line-break handling WRT to Unicode® Standard Annex #14 HOT 1
- Convert PDF::DOM::* to roles. Simplify PDF::DOM::Delegator and PDF::Reader interface HOT 3
- Cooling on PDF::DOM as a module name
- Rely a lot more on PDF::Type::Delegator autoloading HOT 1
- This module has gone Glacial - on the back-burner HOT 1
- precompilation fragilities HOT 1
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-class-raku.