Bug 18550: Patron card creator: Print output does not respect layout units
authorMarc Véron <veron@veron.ch>
Fri, 5 May 2017 13:08:56 +0000 (15:08 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 6 Oct 2017 15:09:52 +0000 (12:09 -0300)
commitc7c3fc0a63c50c2741a636201880c59c57287a51
tree463c85b44653c8cd5a5ebe984e52b8d3ebbbec03
parentf92328332380c805f83ca7f4aed2e828bd112778
Bug 18550: Patron card creator: Print output does not respect layout units

To reproduce:
Text, images and barcode positions are always layed out based on PostScript points, regardless of unit defined in card layout.

To reproduce:
- Test on top of Bug 18541 (introduces layout grid)
- Create a card layout with a text field, an image and a barcode. Use points
  as layout unit
- Activate layout grid
- Create PDF output, save
- Change layout unit to mm
- Create PDF output, save
- Compare PDFs. Verify that the positions are unchanged (still using points)

To test:
- Apply patch
- Create again PDF
- Verify that elements are positionad as expected (using unit, e.g. mm)
- Bonus test: Repeat with other units

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Patroncards/Patroncard.pm