ssimms / pdfapi2

Create, modify, and examine PDF files in Perl
Other
15 stars 20 forks source link

Confusing image / object handling #68

Open sciurius opened 11 months ago

sciurius commented 11 months ago

It is nice that images and other objects can be placed with a single call:

$gfx->object( $thing, $x, $y, ... )

When I have a $thing that is 100x100 and needs to be scaled 50%, then apparently I still do need to distinguish images (that need $w=50 and $h=50) from other objects (that need $scale_x=0.5 and $scale_y=0.5).

Am I missing something?

sciurius commented 11 months ago

Also confusing is that images have width and height methods, and other objects do not. OTOH XOForms have a bbox method, which images do not have.