My guess is that it's because you are Absolutely positioning all of your
tables. Get rid of the absolute positioning and the page breaks will have
seemingly more effect. They are working right now, the only problem is that
the HTML is not rendering where you *think* it will.

-Ben

On 1/30/08, Gary Strommen <[EMAIL PROTECTED]> wrote:
>
> I am trying to create a PDF that has printed vouchers on them that self
> number.  I am using a table that has a background image of the voucher (one
> on top and one on bottom - 2 per page).  There is also a counter being used
> through a CFLOOP so that the voucher numbers increment.  Here is my code
> thus far:
>
>
> <cfset count = "1">
> <cfif FORM.term IS "spring">
>     <cfset term="S">
> <cfelseif FORM.term IS "fall">
>     <cfset term="F">
> </cfif>
>
> <cfdocument format="pdf" pagetype="letter" orientation="portrait"
> fontembed="yes" backgroundvisible="yes" marginbottom="0" marginleft="0"
> marginright="0" margintop="0" >
>     <cfloop index="LoopCount" from="1" to="#FORM.qty#" >
>         <cfoutput>
>             <cfif FORM.voucher IS "3D_Printer">
>                 <table border="0" width="100%" cellpadding="0"
> cellspacing="0" height="97%" background="images/vouchers/VOUCHERS-8.jpg
> "  />
>             <cfelseif FORM.voucher IS "Drawing_Paper">
>                 <table border="0" width="100%" cellpadding="0"
> cellspacing="0" height="97%" background="images/vouchers/VOUCHERS-15.jpg
> "  />
>             <cfelseif FORM.voucher IS "ATC">
>                 <table border="0" width="100%" cellpadding="0"
> cellspacing="0" height="97%" background="images/vouchers/VOUCHERS-149.jpg
> "  />
>             </cfif>
>                 <td>
>                     <tr>
>                         <div style="font-size:48px; position:absolute;
> top:100px; right:95px;">#term##count#</div>
>                         <div style="font-size:48px; position:absolute;
> top:385px; left:342px;">#term##count#</div>
>                         <cfset count = "#count#" + "1">
>                         <div style="font-size:48px; position:absolute;
> top:585px; right:95px;">#term##count#</div>
>                         <div style="font-size:48px; position:absolute;
> top:870px; left:342px;">#term##count#</div>
>                         <cfset count = "#count#" + "1">
>                     </tr>
>                 </td>
>             </table>
>         </cfoutput>
>
>         <cfif LoopCount IS NOT "#FORM.qty#">
>             <cfdocumentitem type="pagebreak"/>
>         </cfif>
>     </cfloop>
> </cfdocument>
>
>
>
> Problem:  The PDF has the correct number of pages however all of the
> information is being printed on the first page.  The incremented numbers all
> show but they are all on the first page.  I cannot figure out why the
> pagebreak does not force the repeated table to continue on the next page and
> why everything is printed on the first page but continues with blank pages?
>
> Any help as always is greatly appreciated, Thanks in advance!
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3293
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to