pdf-raku / PDF-Content-raku

Basic PDF content editing and rendering support, including text, images, fonts and general graphics
Artistic License 2.0
2 stars 3 forks source link

%Ops table should be authoritative - No need for graphics traits or track-graphics multi method #1

Closed dwarring closed 7 years ago

dwarring commented 7 years ago

I.e. refactor PDF::Content::Ops to be more like HTML::Canvas, which has everything in the one Op table.

dwarring commented 7 years ago

Attempted on branch op-refactor. But attempted conversion of Tm gives: P6opaque: no such attribute '@!TextMatrix' in type PDF::Content::Ops when trying to get a value in method at /home/david/git/perl6-PDF-Content/lib/PDF/Content/Ops.pm (PDF::Content::Ops) line 497 in method opn at /home/david/git/perl6-PDF-Content/lib/PDF/Content/Ops.pm (PDF::Content::Ops) line 569 in method op at /home/david/git/perl6-PDF-Content/lib/PDF/Content/Ops.pm (PDF::Content::Ops) line 577 in method at /home/david/git/perl6-PDF-Content/lib/PDF/Content/Ops.pm (PDF::Content::Ops) line 810 in method FALLBACK at /home/david/git/perl6-PDF-Content/lib/PDF/Content/Ops.pm (PDF::Content::Ops) line 822 in any at gen/moar/m-Metamodel.nqp line 3096 in sub at /home/david/git/perl6-PDF-Content/lib/PDF/Content/Ops.pm (PDF::Content::Ops) line 207 in block at t/ops.t line 100

dwarring commented 7 years ago

Abandoning refactor at the moment.