Thanks everyone for providing the answer on this. I am transcoding the example
to ColdFusion to run within the Java sub-system, so I wasn’t aware of that
notation. I see now that it should just be divided by 2. Thanks very much for
the clarification!
-Joe
From: Alexis Pigeon [mailto:[email protected]]
Sent: Monday, February 14, 2011 11:01 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Error in N-Up Example
Hi Joe,
On 14 February 2011 16:47, Joe Danziger <[email protected]> wrote:
There appears to be an error in the example found on Page 171 of the 2E book.
This is also found online at http://itextpdf.com/examples/iia.php?id=115.
The issue is at the end of the lines where offsetX and offsetY get set. The
lines both get divided by “2f”, but there is no reference to any “f” variable
any other place in the function. And clarification that could be provided
would be appreciated, as this appears to be an error in the code.
Nope, that's not an error, that's the Java notation for indicating that the
value 2 is to be computed as a float, and not an integer.
I guess it's done so in this example to ensure a float division, and avoid an
integer one.
Cheers,
alexis
Follow ICCS on Twitter: Click Here
AVAYA SME Expert Business Partner, Microsoft SMB Partner, HP Storage Select
Partner, VM-Ware Certified Partner, Dell Business Partner, Cisco Select
Reseller, Apple Reseller, Symantec SMB Specialist, IBM Business Partner, Lenovo
Business Partner.
ICCS & Co., LLC | Your Premier IT & Telecom Partner
HelpDesk: [email protected] | Phone: 212.391.1411 x.4
Please consider the environment before printing this e-mail.
This transmission may contain information that is privileged, confidential,
proprietary, and exempt from disclosure under applicable law. If you are not
the intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is strictly prohibited. If you received this transmission in
error, please contact the sender and delete the material from any computer
immediately. Thank you.
------------------------------------------------------------------------------
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
[email protected]
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