O.K., you just need a variable length template. This is where Overflow
pages come in handy. Without going into too much detail with coding this
is what you need to do. I'm assuming that you will always have at least
a 1 page pdf file to return, but less than a 10 page pdf. The upper
number doesn't really matter but I've just set it to ten for this
example. (If I could find that number of pages in a pdf command this
would not be necessary.)
Create a one page pdf file with the first page containing a "text frame"
that is slightly longer than the page size (8.5 x 11.05" should do it -
again I'm assuming no bleed, but adjust your box as needed). Have this
extra part run off the bottom of the page. Then create an Overflow page
as page 2. Put the same sized text box on it as you did on page 1. Set
the overflow option of the text box on page 1 to flow to your overflow
page, and to only create "as few pages as possible". In that text frame
you will return a large tag-string of pdf pages. Try creating a rule
something like this..
....
var x = new FusionProResource(pathName + "MyFile.pdf", "graphic");
x.name = (pathName + "MyFile.pdf");
var pdfString = '';
var pgnbr = 1;
while (pgnbr < 10)
{
x.pagenumber = pgnbr;
if (x.exists){
pdfString += x.value;
}
else {
break;
}
}
....
What I hope that ".value" will do is allow you to return a large tagged
string like
<graphic file="MyFile.pdf" pagenumber="1"><graphic file="MyFile.pdf"
pagenumber="2"><graphic file="MyFile.pdf" pagenumber="3">...
When you place this rule into the text frame on page 1, it should fill
that text box with the pdf file tag number 1, then flow into as many
overflow pages as are in the pdf file, placing each pdf page in order.
Again I need to iterate that if I could remember the coding for the
number of pages in a pdf file, that the above coding could be made
simpler by just having
....
var x = new FusionProResource(pathName + "MyFile.pdf", "graphic");
x.name = (pathName + "MyFile.pdf");
var pdfString = '';
var pLimit = x.length; //this is not the correct code and doesn't work.
var pgnbr = 1;
while (pgnbr < (pLimit + 1))
{
x.pagenumber = pgnbr;
pdfString += x.value;
}
....
Hope this gets you in the right direction though.
---
David A. Sweet
Web Designer/Graphic Designer
HKM Direct Market Communications
A DirectConnectGroup Company
--
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
--