var n = 30; // number
var m = 70; // number
var s = new String();// "3070"
s = String(n) + String(m);
s = Number(n) + Number(m);
Now try to guess what the outcome is if you try Number(n) + String(m). If you've
produces a string, "3070".
If you've followed everything thus far, you may be interested to know that you can
temporarily cast a variable to a Boolean value with Boolean(). For example:
var n = 50; // number
var b = Boolean(n); // b is "true"
var c = Boolean(n - 50); // c is "false"
For extra credit, try figuring out what the following Boolean code evaluates to:
var s = new String(); // null string
var b = Boolean(s); // what is it?
The answer may surprise you. A null string evaluates to true. Unless you shroud it
in Number(), in which case it is false.
Planet PDF talks with another Master of the PDF Universe, Eugene Y. Xiong, Founder and Chairman of the Board at Foxit Software Inc. in Fremont California. Xiong is a quiet yet astounding achiever, you (usually) won't find him talking at conferences, exhibits, or publishings, but what you will find is the result of his leadership in places you would never expect.
OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.