My communication issue

 

To make the example work under Groovy you need to make the mod for Float

 

When I run it this is the result, but I don't get why the offsets are moving
down the page.

So not fixed yet

 

Following is the maths being used to add the Templates

>> 

pageSize - Rectangle: 595.2756x841.8898 (rot: 0 degrees)

unitSize - Rectangle: 297.6378x420.9449 (rot: 0 degrees)

i8 x- 0.0 y- 420.9449 fctr- 0.5

i7 x- 297.6378 y- -210.47244 fctr- 0.5

i6 x- 0.0 y- 0.0 fctr- 0.5

i5 x- 297.6378 y- 210.47244 fctr- 0.5

i4 x- 0.0 y- 420.9449 fctr- 0.5

i3 x- 297.6378 y- -210.47244 fctr- 0.5

i2 x- 0.0 y- 0.0 fctr- 0.5

i1 x- 297.6378 y- 210.47244 fctr- 0.5

null

 

 

john renfrew 

Right Way Up 

 

From: 1T3XT BVBA [mailto:i...@1t3xt.info] 
Sent: 30 May 2011 12:45
To: r...@btclick.com; Post all your questions about iText here
Subject: Re: [iText-questions] FW: N-up example not working as expected

 

On 30/05/2011 13:35, John Renfrew wrote: 

Any ideas about the page creep though?

I'm sorry, I probably didn't understand the original question.
I saw the example with the wrong offsets, but I assumed from what you wrote
that:
1. the problem only occurs in the context of a Groovy application, not in
Java,
2. you've solved the problem by changing a couple of lines (casting doubles
to floats).
Is that correct? Or is there a problem I overlooked?

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to