Op 15/02/2011 21:24, Joe Danziger schreef:

I am trying to transpose the NUp example in Chapter 6 (p. 171) of the 2E book to ColdFusion, but having an issue with the calculation of the offsets.

Is it possible to get an explanation of what the helper variables "n", "r", "c", represent in that example? I can tell that the "n" represents the number of documents that should be printed per page, but can't seem to determine "r" and "c".


In the example pow can be 1, 2, 3, 4.
These are the corresponding values for n, r and c:
pow = 1: 2-up => 1 x 2
pow = 2: 4-up => 2 x 2
pow = 3: 8-up => 2 x 4
pow = 4: 16-up => 4 x 4
If you look at figure 6.5, you immediately see what 1 x 2, 2 x 2, 2 x 4 and 4 x 4 mean.
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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