David Sweet wrote:
var pLimit = x.length; //this is not correct
Try this instead:
var pLimit = x.countPages;
The properties of the FusionProResource object are listed in the
Building Blocks dialog, "JS Language" tab, Objects node.
Also, your "while" loop as written will be an endless loop if you don't
increment the counter variable. It might be better to use a "for" loop,
like so:
var x = new FusionProResource(pathName + "MyFile.pdf", "graphic");
var pdfString = '';
for (var pgnbr = 1; pgnbr <= x.countPages; pgnbr++)
{
x.pagenumber = pgnbr;
pdfString += x.content;
}
return pdfString;
Note that the FusionProResource.value property is deprecated; the
content property should be used instead.
Finally, you don't need to explicitly set the name property of the
FusionProResource object. That's done implicitly when it's created.
Dan
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--