Footer help using cfdocument format="pdf"

I have a very simple PDF report that does the following:
Query database and populate customer information at top of PDF
Query database and populate a simple string pulled from a memo field in the database.
Inserts a totals table at the bottom of the page.
This works great, except when the memo field gets big and creates a second  or third page.
It places the footer totals table at the bottom of each page.  Very undesirable. 
I've tried putting page breaks in, counting characters and even tried to do some CSS stuff to trick it.
What is the best way to include a footer or box of text using CSS, at the bottom of the last dynamic page???
Thank you very much,
Andy
****FILE ATTACHED*****

Have you tried removing the cfdocumentitem tags so that your "footer" will appear only once at the end of the content?

Similar Messages

  • Cfdocument format = PDF - does not format correctly

    Greetings
    I am simply attempting to print invoices from a query that displays correctly on the cfm result page, but using cfdocument to render a PDF version (to mail out) does not format even remotely close to the cfm page.
    I tried every conceivable method I know of, including:
    Formating the cfm page (via CSS and hardcoded table width) to be 612 px X 792 px (8.5 X 11 in), and here is the cfdocument code:
    <cfdocument
    format="pdf" 
    pageType="custom"
    unit="in"
    marginbottom="0.75"
    marginleft="0.75"
    marginright="0.75"
    margintop="0.75"
    pageHeight="11"
    pageWidth="8.5"
    mimeType="text/html"
    fontembed="yes"
    orientation="portrait">
    <style type="text/css">
    @import url(css/moorings.css);
    </style>
    <html> blah blah </html>
    </cfdocument>
    The rendered PDF file is 4.5 X 5 in- (both in IE and Firefox) What am I missing here?
    CF 9
    Thanks in advance, as always.

    Well, in answer to my own question, the solution is in the CSS, using tables and CSS:
    set table height and width to 100%
    set font-size:100%;
    set header font, bolder, larger :125%;, etc.
    Also using the cfdocument attributes as shown in the posting
    The PDF now prints correctly, margins are perfect.
    Now I have to figure out how to loop through the 900+ records, convert each to a PDF and print one copy of each-
    Anyone?
    Thanks....

  • How to set window title using cfdocument format="FlashPaper" ?

    Does anyone know how to set the the browser window title when using:
    <cfdocument format="FlashPaper">
    #docContent#
    </cfdocument>
    The variable docContent is a fully formed html document, complete with <head> and <title> elements, yet <cfdocument> doesn't pick up the title I've specified. I'm wondering if anyone has done this before???
    Thanks!

    Yes, I tried that, but <cfdocument> replaces any content that I add. I cannot view the source for the page, but at least according to FireBug, when I view the page contents, I get:
    <html>
    <head>
    <title>print.cfm - print.cfm (application/x-shockwave-flash Object)</title>
    </head>
    <body marginwidth="0" marginheight="0">
    <embed width="100%" height="100%" type="plugin" src="http://127.0.0.1/tss/print.cfm?id=expeditions_staff&start=1" type="application/x-shockwave-flash">
    </body>
    </html>

  • How to delete pdf files created on server using cfdocument pdf?

    I am using <cfdocument format="pdf" ...
    to create a dynamically named and generated .pdf and it works rather well.  Navy managers can easily email the pdf to ships in the fleet and planning forces in the shipyards. (Planning data changes almost daily). However I have noticed that the pdf file stays on the server.  Over time this could become a problem with numbers.  Is there something I am missing to remove these pdfs over time.  Other than a manual review and delete.  This government server requires 4 logins and your right arm to update, so something auto is needed.

    Thanks for responding:
    I am not using cfmail - I am leaving it up to the user to print save or email.
    Your second option sound good but I really was hoping I was just missing something easy (new to cf).
    I did try giving the pdf the same name but I was having lots of troble with always returning the cached version.

  • How to use cfdocument  create a PDF file and save the file in server?

    Hi,
    I want to use cfdocument to create a PDF file and save it in
    the server for other people to download,can you give me a idea how
    to do this.Thanks.
    <cfdocument format = "PDF" pagetype="A4"
    orientation="portrait">
    </cfdocument>
    Mark

    Hi
    <cfdocument filename="" format = "PDF" pagetype="A4"
    orientation="portrait">
    </cfdocument>
    Give the physical path to the filename. You have write
    permission for this folder to create a PDF file.

  • Cfdocument invalid token format pdf

    I keep getting this error:
    Here is the whole tag:
    <cfdocument
        format = "PDF"
        backgroundVisible = "no"
        filename = "test.pdf"
        localUrl = "yes"
        marginBottom = "1"
        marginLeft = "1"
        marginRight = "1"
        marginTop = "1"
        mimeType = "text/plain"
        name = "Test"
        orientation = "portrait"
        overwrite = "yes"
        pageType = "letter"
        permissions = "AllowPrinting,AllowCopy"
        permissionspassword = "password to access restricted permissions"
        saveAsName = "Test2"
        unit = "in">
    Any advice is very welcome.
    Karolus

    A first guess is that it has to be something other than the attribute, format = "PDF", as that is frequently trodden ground. To debug this, start with the following, simpler code:
    <cfdocument
        format = "PDF"
        backgroundVisible = "no"
        filename = "test.pdf"> Some text </cfdocument>
    If it fails, then the likely cause is that Coldfusion is unable to access the directory /CFIDE/scripts/. If works, then continue adding attributes, one by one, and testing.

  • Anyone use cfdocument tag with a cfloop

    Anyone use <cfdocument> tag with a <cfloop>
    I am trying to generate multiple documents like this -
    <cfloop query="myquery">
       <cfdocument type=pdf>
            <html>...html code here...<html>
      </cfdocument>
    </cfloop>
    But only the first document is generated in the browser?
    my requirement i wnat to create multiple PDF and upload in to folder then zip folder so user can able to download ZIP file
    thanks in advance

    my requirement i wnat to create multiple PDF and upload in to folder then zip folder so user can able to download ZIP file
    1) Create a folder named, say, docsDir, in the currect directory.
    2) Create the PDFs, using Eddie Lotter's suggestion, naming each file dynamically, and storing each in the folder docsDir.
    <cfloop query="myquery">
        <!--- Use row number to create filename dynamically --->
       <cfset filename='doc' & myquery.currentRow & '.pdf'>
       <cfdocument format="pdf" filename="#expandPath('docsDir\#filename#')#" overwrite="true">
            <html> Code to generate content of <cfoutput>#filename#</cfoutput> goes here. </html>
      </cfdocument>
    </cfloop>
    3) Zip the folder, docsDir, storing the resulting file, docsDir.zip, in the current directory.
    <cfzip action="zip" file="#expandPath('.')#/docsDir.zip"   source="#expandPath('docsDir')#">

  • Help with PDF creation using CFDOCUMENT / iText

    Hi everyone,
    Finally made the jump to CF7 after sticking with 5 for way
    too long and now have an urgent need to generate PDF.
    <cfdocument> seems to do better than anything else at
    converting HTML styled with CSS, but falls short in a few
    fundamental areas. What I need to do ( to name 3) is:
    * Generate a table of contents - including page numbers
    * Have far greater control over the headers / footers
    * Swap page orientation mid-document
    I can get round the page orientation thing by creating each
    section as an individual PDF and gluing them back together using
    PaulH's excellent PDF concatenation code. Using <cfdocument>
    I can reserve space for the headers / footers, and add a table of
    contents with placeholders for the numbers.
    Now, my question: Will I be able to rewrite all the page
    numbers, finish off the table of contents and headers / footers
    using iText? i.e. traverse the concatenated PDF file, rewrite the
    headers / footers, work out the page numbers and rewrite the TOC?
    I'm not asking for sample code or even a how to - just a
    heads-up from some who knows iText well and can quickly say whether
    this is feasible.
    I hope it is because my alternative approach is to go down
    the xsl-fo route which I suspect will be more effort in the long
    run.
    Thanks
    PJ

    as alternative solution you might check activepdf products.
    www.activepdf.com
    cheers
    kim

  • Creating PDF with IMAGE using CFDOCUMENT TAG

    Hi Guys,
    I m facing problem while creating the PDF using CFDOCUMENT
    tag.
    Actually my clients want the IMAGEs in PDF document.
    Problem is most of the images in JPG format and while I am
    going to attach images in PDF document it takes lots of time for
    creating PDF. In most of time it cause timeout.
    I have try to convert images JPG to PNG, yes I some what
    better performance than JPG format but still it is work for 20 - 25
    images. In my case I want to attach normally 50-100 images in PDF
    (sometimes it is more 200).
    PLZ, Help me.. F1...F1...F1
    thanks in advance
    Pritesh
    Coldfusion Programmer

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Vertical Text in PDF using CFDOCUMENT

    I am using font tag in a CSS file to layout a table header
    using vertical text. In HTML, the vertical text looks fine.
    However, when I convert the table to a pdf using
    <cfdocument>, the vertical text is displayed as horizintal
    text and does not follow the css specified font family, color or
    size.
    Here is the line in the CCS I am referencing:
    .header_vertical {FONT-WEIGHT: bold; FONT-SIZE: 8pt;
    FONT-STYLE: normal; writing-mode:tb-rl; FONT-FAMILY: helvetica,
    arial, verdana, sans-serif; TEXT-DECORATION: none; COLOR: #0f437c}
    This is CFMX7 on a Windows Server 2003 OS running IIS.
    Any ideas???
    Thanks.

    Hi there, did you find a solution to this?
    I had the same issue and no matter what i tried it didn't
    work. I found out that CFDOCUMENT doesn't support CSS2.
    Eventually I came up with a clunky solution, but had no other
    choice. I bought some imaging software called Alagad (
    http://www.alagad.com) which
    produces the vertical text as images on the fly. Its not ideal, but
    there was no ther way I could disply the text.
    Hope this helps you.
    Ally

  • How to loop and add multiple records from db in .pdf using cfdocument

    I have a query that pulls a users information (Id, FirstName,
    LastName, Title,etc). I then use cfdocument to output a person's
    biography into a pdf. This is great, because we no longer have to
    manually create bios, as they are now all dynamically generated.
    The problem I have now is that we want to be able to select
    multiple users and create a .pdf with each of their bios included
    in the one pdf.
    How do I loop thru records from a sql database in a
    cfdocument that includes a header and footer in cfdocument items,
    and ensure that one persons bio doesn't continue on the page with
    anothers.
    Here's the code I have so far for the cfdocument:

    Put the query around just the body of your cfdocument not
    around the whole cfdocument tag. Also, move any query information
    out of the header and put that in the body of the document. Lastly,
    put a cfdocumentitem pagebreak after each bio...you will need to
    check the recordcount of the query against the row you are on so
    that you don't add an empty page break at the end.

  • Printing SAP Help (using PDF or anything except HTML)

    Printing the HTML version of SAP help is time-consuming and the pages don't come out correctly.  There used to be .pdf versions of all of the help files at help.sap.com/docuprint, but that seems to have gone away.  How can I print SAP help topics quickly and conveniently?
    Thanks for your assistance.

    Hi,
    if you have access to SAP Service Marketplace, you can download the CD/DVD image of more or less all of the documentation CDs/DVDs. All these CDs contain the SAP Library in HTMLHelp format which offers a functionality to print all topics starting from the selected node in the structure tree.
    Proceed as follows:
    1. Goto http://service.sap.com/swdc
    2. In the tree, choose "Search for all categories"
    3. In the search field, enter the material number of the desired CD (this is the only reliable way to get the desired results; searching for a string contained in the material name yields unpredictable results!)
    4. If the image exists, you will be presented a link for immediate download, or you can assign it to your download basket.
    HTH.
    Regards, Claus

  • Using cfdocument to generate PDF

    Hi all,
    The actual table is a lot larger than the mock-up one that I am going to show you but this mock-up one does explain the problem.  Please go to http://www.monteandjanicechan.com/test_table.cfm
    The thickness of the grid lines in the table are coming up the way I want in the HTML version.  You can do a View Source to see the actual HTML stuff that gets generated. Now, I put these HTMl codes within the cfdocument tag with format="pdf"; please go to http://www.monteandjanicechan.com/test_table_pdf.cfm.  You will see the inconsistent thickness of the grid line for sneezing and for flu.  To further illustrate my point, I removed the background colors and generate a PDF; please go to http://www.monteandjanicechan.com/test_table_pdf_nocolor.cfm.  The thickness of the grid lines is back to normal.
    This leads me to believe that the background color of one cell somehow goes over to the cell right next to it and cover up the border.  Here are the strange things:
    1) This is ONLY happening in rowspan and ONLY happening from the second row on to the rest of the rowspan.  For example, first Sneezing is okay but the border of the second sneezing is not correct; the first Flu is okay but the borders of the second and the third Flu are not correct.
    2) The background color does NOT cover the border of its own cell at all; it only cover the border of the cell right next to it.
    My question is, how can I fix this issue?
    Any suggestions and pointers are greatly appreciated.

    Two things:
    1) Whether or not this is a bug. The cfdocument style implementation seems to differ from the browser's. It seems that, in cfdocument, the style of an element overrides that of the element preceding it. For example, the style of the row
    <tr>
        <td class="b">Joe Schmo</td>
        <td class="c" style="background-color:#99FF99">Sneezing</td>
      </tr>
    overrrides the style of the row
    <tr>
        <td class="b">John Doe</td>
        <td class="c" style="background-color:#99FF99">Sneezing</td>
        <td class="d_style" rowspan="2" style="background-color:#99FF99">Nose Spray</td>
      </tr>
    Therefore, as there is no d_style in the Joe Schmo row, this row overrides the d_style inherited from the rowspan. This might or might not be a bug. However, it should make you wonder whether or not you've over-designed.
    2) Your styling is inefficient. For example, the following style settings draw 2 borders at the same place
    .c_first {border-right:1px solid black;}
    .d_first {border-left:1px solid black;}
    <td class="c_first" style="background-color:#ffff99">Cough</td>
    <td class="d_first" style="background-color:#ffff99">Vitamins</td>
    If your intention is to emphasize a border, then it is easy to improve your styling. One way to do so is to remove the border-right setting of the first TD, and double the border-left of the next TD. Alternatively, you may double the border-right setting of the first TD, and remove the border-left of the next TD.
    Also, it is best-practice to transfer all the CSS to the style sheet, so that your table contains no CSS code.
    The following HTML is based on what I've just said:
    <html>
      <head>
        <title>Test Table</title>
        <style type="text/css">
        .a_style
            {border-left: 1px solid black;
            border-bottom: 1px solid black;
            border-top: 1px solid black;
            border-right: 1px solid black;
        .a2_style
            {border-left: 1px solid black;
            border-bottom: 1px solid black;
            border-top: 1px solid black;
            border-right: 2px solid black;
        .a3_style
            /* border-left: 2px solid black;*/
            border-bottom: 1px solid black;
            border-top: 1px solid black;
            border-right: 1px solid black;
        .b_first
            {border-right: 1px solid black;
            border-bottom: 1px solid black;
            border-left: 1px solid black;
            border-top: 1px solid black;}
        .b_last
            {border-right: 1px solid black;
            border-bottom: 1px solid black;
            border-left: 1px solid black;}
        .b
            {border-right: 1px solid black;
             border-bottom: 1px solid black;
             border-left: 1px solid black;}
        .c1
            border-right: 2px solid black;
            border-bottom: 1px solid black;
            background-color: 99FF99;}
        .c2
            {border-right: 2px solid black;
            border-bottom: 1px solid black;
            background-color: cccccc;}
        .c_first
            border-right: 2px solid black;*/
            border-bottom: 1px solid black;
            border-top: 1px solid black;
            background-color: ffff99;}
        .c_last
            {border-right: 1px solid black;
            border-bottom: 1px solid black;
            background-color: cccccc;}    
        .d_style
            /* border-left: 1px solid black;
            border-right: 1px solid black;
            border-bottom: 1px solid black;
            background-color: 99FF99;
        .d_first
            border-right: 1px solid black;
            border-bottom: 1px solid black;
            /* border-left: 2px solid black;*/
            background-color: ffff99;}
        .d_last
            border-right: 2px solid black;
            border-bottom: 1px solid black;
            /* border-left: 1px solid black;*/
            background-color: cccccc;}                
        </style>
      </head>
      <body>
    <table border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td class="a_style">Name</td>
        <td class="a2_style">Problem</td>
        <td class="a3_style">Treatment</td>
      </tr>
      <tr>
        <td class="b_first">Jane Doe</td>
        <td class="c_first">Cough</td>
        <td class="d_first">Vitamins</td>
      </tr>
      <tr>
        <td class="b">John Doe</td>
        <td class="c1">Sneezing</td>
        <td class="d_style" rowspan="2">Nose Spray</td>
      </tr>
      <tr>
        <td class="b">Joe Schmo</td>
        <td class="c1">Sneezing</td>
      </tr>
      <tr>
        <td class="b">Joe Six Pack</td>
        <td class="c2" >Flu</td>
        <td class="d_last" rowspan="3">Flu Shot</td>
      </tr>
      <tr>
        <td class="b">Joe The Plumber</td>
        <td class="c2">Flu</td>
      </tr>
      <tr>
        <td class="b_last">Joe Doe</td>
        <td class="c2">Flu</td>
      </tr>
    </table>
    </body>
    </html>

  • Help reg what formats to be used for my new 4tb mini stack to back up my macbook and 2 external hard disks

    Hey Guys,
    I need an advice from you experts regarding the different formats to be used to format my New 4 Tb ministack from OWC. I  have a  Mid 2010 Intel macbook pro with 500gb hard disk using Mountain lion and two external hard disk from Samsung and Iomega 1Tb each. I want to format this ministack into 4 partitions each of 1Tb each.
    1) 1 Tb for time machine to back up my macbook pro.
    2) 1 Tb of  Free space to be used to store extra data using both windows and mac os.
    3) 1 Tb for Samsung back up
    4) 1 Tb for my Iomega back up
    I know that for 1st option i need to format the partition (volume) to Mac os extended (journalled). I need help for  others.For  the 1 Tb free space, can i use NTFS so that i can use it on my wifes windows laptop and use a third a party application like tuxera NTFS for use on my macbook which i am already using to use my samsung and Iomega Ext HDD.
    Also  What format is required for these  two 1 Tb volumes dedicated for external hard disk backups and  how can i back up my external hard disks to these formatted volumes. Do i need to  format them to Mac os extended (journalled) as well as i shall be using macbook pro to back up these hard disks.
    Which would be the best software to back up these Ext hdd,can i use time machine? or CCC ?
    Your help help shall be gretaly appreciated.
    Thanks in advance.

    Get Disk Warrior that will repair the problems without requiring that you reformat the drive - $99.00 on a bootable CD. Will not work on a FAT formatted drive.
    You will need to use Drag and Drop to save your files by copying them from the bad drive to a good one.
    To reprep the drive:
    Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • PDF files shown as' damaged or used a format preview can't recognize' once I save them to a thumbdrive

    Hi,
    I'm using a Macbook Pro system version 10.10.2.All PDF files (actually regardless of the format) are shown as' damaged or used a format preview can't recognize' once I copy them to a thumb-drive from the Mac. The file names end correctly as .pdf. I am sure that the thumb drive was in a good condition before I used it on the Mac and I tried two other new thumb drives but the problem persisted. Can anyone tell me how to solve the problem? Thanks a lot!!

    Please repartition and format the flash drive for a Mac. It's likely formatted for a PC.
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.

Maybe you are looking for

  • How do I add the ruler tool to my tools bar?

    I don't see the ruler tool (for tilt correction, etc.) on the left bar display. How do I add/display it in CS5?

  • 2008 Failover cluster unable to create computer account

    Hello, I have created a 2008 R2 Failover cluster and I am trying to add a Fail over File server to this. I get the dreaded Cluster network name resource 'OfMaClusterFS' failed to create its associated computer object in domain 'xxx.domain' for the fo

  • I want to build an array using the data that I get through the serial port

    I am reading data through the serial port, but I want to buffer these data. I have seen a function, but i think that i can use this if I am reading data from I/O intrument, so I don´t how can I fill an array, with the data that I am reading!!! Thank

  • Mathtype and fillable forms

    Can mathtype be used in fillable forms?  (while creating forms and when filling in answers in fields)

  • Burning files across multiple CDs or DVDs

    I have 5GB of files in one folder on 2 DVDs (Can only put 4GB on one DVD) without breaking them apart. Is there a way to do this in OSX? Maybe a script or 3rd party application? Right now I used Stuffit Deluxe to make 4GB archives. Wondering if there