I would like to add a watermark to odd pages and a different watermark to even pages (this is to account for gutters and different headers and footers already on the PDF that are dependent on odd/even page determination). These options are available when adding a watermark though the Acrobat UI (page range options...) and the command will have to be executed twice, once for odd pages and once for even pages.
Is a property available in addWatermarkFromText to select "Even Pages Only" or "Odd Pages Only"? I have not seen one in "js_api_reference 8.pdf".
(I will probably have to use a loop because some page orientatins are portrait and others are landscape.)
There is no flag to enable that, you'd have to loop and add one watermark or the other depending on (PageNumber % 2). Just remember that since it is a zero-based array, when PageNumber % 2 == 1 it's actually an even numbered page, not odd.
I'll add a thermometer to let users know something is going on. next question: what happens with two thermometers? (i'll find out soon)