I spent more time than I like to think on a similar problem, just had one page
but it was still very difficult to convince coldfusion to render the image at
the size I needed.
<cfdocument format="pdf" pageheight="11" pagewidth="8.5" marginbottom="0"
marginleft="0" marginright="0" margintop="0">
To force the image to the size I needed, I used an empty layer and trial and
error.
body {background:url(images/the-border.jpg) no-repeat fixed}
#Layer1 {
position:absolute;
left:317px;
top:728px;
width:642px;
height:21px;
z-index:11;
}
I added all my text using more layers and was careful to not make any layer
larger than my "sizing" layer.
Hopefully this will work on multiple pages for you...
> I'm trying to create a CFDOCUMENT format="pdf" that puts a border
> around each page of the document. The content spans several pages.
>
> When I place a background-image in the body and include the
> "backgroundvisible='yes'" property, the border doesn't span the pages
> properly. Even if I get the image to cover the first page properly,
> the remaining pages are off.
>
> I even tried putting a border in the header and footer, then create a
> style left and right on the content, but it didn't pad out properly.
> Bordered divs don't span pages either.
>
> This seems like such a simple task. I'm pulling out what little hair I
> have left...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312344
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4