CFDOCUMENT - only the first PDF has the background image displayed in a loop

Here is the code example. The first PDF is created very well, but the rest files lack background image. Similar problem was reported here very strange CFDOCUMENT Bug | Blog of Raymond Camden, but I could not find a solution to this problem. Would appreciate any input!

< cfloop query = "MyQuery" >

"< cfdocument format ="PDF"filename="./docs/#filename# ".

Overwrite = "yes".

localURL = "true" >

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

< html >

< head >

< style type = "text/css" >

body

{

background - image: URL('image.jpg');

background-repeat: repeat no.;

}

< / style >

< / head >

< cfoutput >

< body >

< table width = "100%" cellpadding = "0" border = 0 >
< b >
< height td = "280px" colspan = "4" > < table >
< /TR >
< tr valign = "top" >
< td align = "center" colspan = "4" >
< span style = "do-size: 48;" do-family: Calibri; color: black; make-weight: bold; ">
#FirstName # #LastName #.
</span > < br >
< span style = "do-size: 25;" do-family: Calibri; color: black; make-weight: bold; ">
for the
</span > < br >
< span style = "do-size: 48;" do-family: Calibri; color: black; make-weight: bold; ' > '.
project #qNomination.proj_name #.
</span >< br >
< table >
< /tr >

< / body >

< / cfoutput >

< / html >

< / cfdocument >

< / loop >

The example I gave you would work. It's just dynamic as I'll now show.

In the following example, save CFM 2 files and image files in the same directory. Then open testFile.cfm in the browser. This will dynamically create 3 PDF files in the current directory

testFile.cfm

Inc.cfm

Content of body HTML of the page #idx. #

Tags: ColdFusion

Similar Questions

  • looking answer why only the background image is visiable in preview and publish

    looking answer why only the background image is visiable in preview and publish

    Screen Shot 2015-07-07 at 10.22.03 AM.pngScreen Shot 2015-07-07 at 10.22.17 AM.png

    design                                                                                                                                                                           publish

    What is this code above the head? Appear to interfere with the rest of the code below.

  • Why do I see only the background image to display on the TV screen, not what is actually displayed on the screen of my laptop?

    I have a laptop HP pavilion ze 4942 US and Samsung LN37A550P3FX2A LDC TV. I plugged this week with a 15 pin VGA Cable. The firmware on the TV is OK according to the Samsung website. Is there a driver I need to install on the laptop?

    Hi ludo,.

    Allows you to update your display adapter for the laptop drivers.

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=228&LC=en&cc=us&DLC=en&sw_lang=&product=444754#N224

    OR

    http://www.Intel.com/p/en_US/support/detect/?IID=gg_support-EN_01+home_detect

  • only the background shows after that computer "awakens"...

    Almost every time my computer goes to sleep for inactivity and 'wakes up' once again, only the background image is visible. This doesn't mean no icons, start button, taskbar no, nonthing (there is however a slider that I can move, but I can't do anything with it). I have to restart the computer again after that, but sometimes if I let it go to sleep yet maybe once or twice (three, four...) she still wakes up with the normal icons and usability.

    Anyone know what this may be? It is extremely annoying, and if not, everything seems to work well.

    It is a gateway SX Series computer that I bought new with windows 7 at best buy for Christmas. This has happened right out of the box and did not stop. :(

    Hello

    Since this is a new computer, you should check with the help of the gateway and have it repaired as
    you make more they tell you it is something that you did. Also check with BestBuy however their leeks
    and the pics are rarely really geeks.

    -----------------------------------------------

    If you want to troubleshoot it here is how:

    1 I want to erase the General corruption and repair/replace damaged/missing system files:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -------------------------------------------

    Check the settings (BIOS/CMOS) that you can start and ensure that this suite of lan, Wake on modem and
    similar are not enabled.

    Shoot sleep problems - hibernation
    http://www.computerperformance.co.UK/Vista/vista_hibernate.htm

    How to solve a problem of Mode for Vista and find a Solution
    http://www.Vistax64.com/tutorials/63567-power-options-sleep-mode-problems.html

    How to enable and disable Hibernation - you can try to disable and re-enable the it. http://www.Vistax64.com/tutorials/165508-hibernation-enable-disable.html

    How to restore the default power in Vista (and then go back and change as you wish)
    http://www.Vistax64.com/tutorials/198047-power-plan-restore-default-settings.html

    How to troubleshoot performance problems with sleep, hibernation and resume in Windows Vista
    http://support.Microsoft.com/kb/950686

    Panel configuration-Device Manager - look at the settings for the network card, WiFi, Modem power management.
    and other devices. (Double click on the device and the power management tab)

    All the default power plans and then set them as you wish.

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • When using the 'tools', 'Interactive objects', 'Add a button', how to make the text for the button name is displayed? I have tried everything and only the background, or lacxk, appears.

    I created a pdf document using Adobe Acrobat XI base and want to put a link on each page, return to the table of contents. However, the tool "Add a link" I cannot place this link on each page at a time. Accordingly, I used the tool 'Add a button' interactive Actions that allows me to do what I want. However, when I enter the name of the button, add background color (or not) and register, the name of the text for the button does not show, only the background appears (or nothing if I select no background). The button works, it just is not labeled. Any help will be appreciated.

    This is the area of the label, under Properties - Options.

    The game, 23:02, charlesc90551452, [email protected] , 14 may 2015

  • When I turn on my iPhone 6 screen shows only the background color, the icon usage and the reception icon.

    When I turn on my iPhone 6 screen shows only the background color, the icon usage and the reception icon.

    The iPhone's battery is fully charged?  Otherwise, load it, and then try again.

    If it is busy, go in recovery mode as explained here.  You may need to try to get into the mode of recovery once more to succeed.

    If you are unable to update or restore your iPhone, iPad or iPod touch - Apple supports

  • How to get the background image to fill the browser and stay fixed in IE and Firefox?

    Basically what it says in the title. I came very close to achieve, but something comes to Moor in the html and css code...

    First of all, I use the latest version of Firefox and IE8 to test this situation.

    I used 2 sources of information to get this done: 1) http://css-tricks.com/perfect-full-page-background-image/ and ) 2 http://stackoverflow.com/questions/8958697/css3-background-size-cover-doesn ' t-make-image-co-ver-vertical


    In 1 case , the example of the called page CSS-Only Technique #1 gives the code that works almost perfectly for me, except that obviously I need to a background image, but the CSS provided ago obviously just for an image has fallen in the body of a page without taking account of any other content that may already be there. "The html code that I put on the page is simply < img class ="bg"src ="... / pictures/background_image.jpg "> "

    Of course, I used the CSS code in the example, less the last piece which is "@media screen" etc., which seems irrelevant to me. Of course by replacing the values according to the picture on my page.

    So what happened was that it worked almost as expected in both browsers (which means the image filled both browsers first as it should and also remained fixed when I zoomed in, inside or outside, in each case), except that the picture went on top of the current content that I already there precisely because there isn't a background in this 'technical '. (A note on the side of curious, is that the image didn't turn down content, I expected under normal circumstances, but he went right on top of it so she she hidden (like the z-index).)

    One thing that bothers me in this regard 'technical' is that if you click on view the demo just below the code provided, you will see on the example of work page (bottom of the forest), the image clearly works as a backdrop and the content is fortunately located on top! So I don't know if the person who provides the example was trying to deceive people or what! Or he got lazy and showed another page which did not use the exact code, he has provided. No matter.

    In any case this leaves me with only half-completed work, because I still need a background image that functions as the 'normal image' code provided.

    In 2 cases and on this page, the first example provided gives the CSS for clutter - namely the code in the html {...} part and shows also the same "normal image" code as shown in box 1. In this case however, that the person provide a suggestion, the html and the css is not really properly more Moor some css and html seems a little redundant. So this time, when I used the part "html" in the CSS code (i.e. just the bit that was no longer relevant), I had two different behaviors in each browser and neither of which was quite what I'm looking for. In IE8, initially the page seems well (background fills the page and the content is on top) but when I Zoom in or out the background also zooms in or out accordingly so is NOT fixed. In Firefox, the background image stays fixed, but because the image is initially not the height of the browser I guess the code it extends down (keeping the proportions - so the image enlarges essentially) to fill it. The fast way to get around it is probably add white space at the bottom of the image just to give it sufficient height is not extensible / resize automatically. But it would be nice to know at least how to work around this problem in the code. Overall, I would say that the result in Firefox is closest to the desired solution, but of course it is not arranged things with IE8.

    Apologies for the long description, but which should at least provide much info for anyone who might have a possible solution for me. Essentially what would be great is if someone could advise me how to take the code of case 1 and apply it to a piece of 'background' coding as the type that is contained in html {...} in Case 2 . Like I said, it is almost there, but I just can't operate atm after trying to combine different bits of code this way and that... Also, if anyone has another version of html-css that works well to achieve then please by all means of let me know! V thanks a lot in advance!

    It works in modern browsers of the CSS3 support.  But not pre - IE9.

    http://ALT-Web.com/test/resizable-BG.shtml

    Nancy O.

  • IE does not show the background image?

    I want to change the background image of my site and changed only one page so far, but the image is not displayed in IE but shows in safari, why would it be?

    http://www.milesfunerals.com/advice%20and%20info.html

    OMG! The image you are trying to load in "advice and info.html" is 16 MB.

    Gold - field2.jpg December 24, 2012 16:18 16 M

    As shown in your list of directories.

    Firstly the resize - about 200K is tops for any html background.

    In addition, standardize your file names - remove spaces and reserved for lowercase. Your current page has spaces that is not an acceptable standard.

    -ST

  • a table of images only the last image shows the index

    Hello world

    I try to index a table of images and all, but the last item gives me the error: "not an image."

    Here is a picture of the vi. The first loop load images and stores them in an indexed auto tunnel. Each diagnosis that I fell on this loop showed that all is well. The second loop must display the image stored in the tunnel sequence indexed auto, but it does not work. Instead, I got the error message that the 0 to n - 1 elements are not images, and only the last image is displayed.

    What I am doing wrong?

    Thanks for your help.

    and vi:

    Hello

    This VI has worked well for me with a contribution of 5 bmp files. You can check your input files?

  • Change the background image on the login page (smarthphone theme)

    Hello

    I would like to know how to change the background image on my login page.

    Version of the apex is 4.2.4.
    The theme is jQuery Mobile Smartphone (topic 50).

    Pls remind me if I missed some important information.

    I have a model of customised area on this page. My user name text fields and password + "CONNECT" button is placed in this area.

    I also have an inline css that centers in my area. My dimensions of the region are also placed here.

    Not available to access the application today so bad im trying to provide the look of it with a drawing.

    Also I noticed that my experience has some white color.

    Ty for any information that you provide.

    0Ja9gNj.png

    Hi Para,

    Try the style of your page like

    
    

    But if trying to define for your application color gradients extract ThemeRoller to http://jquerymobile.com/themeroller

    to set the themes of all colors and gradients you want without doing custom overrides CSS jQM Apex definitions.

    Everything you have requested can be configured via the ThemeRoller.

    Also found what may be useful if you are going to customize your login

    http://orapedia.files.WordPress.com/2012/12/how_to_set_background_image_in_a_oracle_apex_login_page.PDF

    Kind regards

    Benjamin.

  • Expand the background Image to cover across the region title

    I have a region title that contains an image and it has a height of 2 rows, but the background image (blue image) is not growing in the region (the css contains repetition for background). The application uses the theme 2. Can anyone help?

    CSS:
    .rc-title {
        background: url("../images/bg-region-blue-l.gif") repeat scroll 0 0 transparent;
        float: left;
        width: 100%;
    }
    div.rc-blue-top
    {
        background: url("../images/bg-region-blue-l.gif") repeat scroll 0 0 transparent;
        float: left;
        width: 100%;
    }
    I created the application on the APEX. ORACLE.COM:
    Workspace: RGWORK
    User: TESTER
    Password: test123
    Application: CSRSR (33558)

    Select view from the menu (only choice).

    You will see that the tabular forms a dog tags and an image, another tabular form has a picture but no text (nameplates), even if it is there. I live blue to cover the image and the text.

    Help, please

    DB: 10g
    APEX 4.1

    4.2 APEX (APEX. ORACLE.COM) works the same way.

    Robert
    http://apexjscss.blogspot.com

    sect55 wrote:
    fac586,
    I would like to try the second option:
    >
    Another option would be to eliminate the problem by moving images of the nameplate on the titles of the region. There is a horizontal space within the regions that will allow these images to be rotated to the left of tabular form, that would look OK. But how to refer to the horizontal space within the regions? I looked at the model for the region:

    #TITLE#
    #CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#
    #BODY#

    and could not put the image in horizontal space.

    Can you please help me by providing the details?

    There are two options, depending on the role you see images of the plate by playing on the page. I used the two regions to give an example of each.

    * 1. Nameplate as eye-candy: * If there is sufficient information on the region, contained region title and labels of items to make the images of the nameplate of the superfluous by providing information to the user and you are just using them to improve the appearance of the page, then they can only be applied using CSS.

    /* Nameplate image as CSS eye-candy */
    #nameplates-ndc div[id$="catch"] {
      min-height: 36px;
      padding-left: 113px;
      background: transparent url(#WORKSPACE_IMAGES#nameplate_ndc.gif) top left no-repeat;
      background-size: 103px;
    }
    

    Note the use of the CSS3 background-size property to resize the image. If the application needs to work in browsers that do not support this so you will have to drop it and create an image of the exact size required for use in the bottom rule.

    * 2. Nameplate as content: * If the plate images are necessary to provide information to the user, then they should be included in the region (and they must have an alt attribute, providing an alternative representation of the information contained in the image).

    Put the image in the header area:

    Nameplate (name only)
    

    and it floats so it sits next to the form:

    /* Nameplate image as page content */
    #nameplates-name .rc-content-main img {
      float: left;
      margin-right: 10px;
    }
    
  • You can change the background image to a variable?

    I'll be honest, I don't expect really a yes answer to this, but I thought I might as well see if I can save me some work.

    I'm creating a module of e-learning training of personnel who must show a slightly different content depending on the region of the user (there are three). For the moment, I have the legend and click boxes conditional use actions to understand what the user selected region, but the capture system uses specific sites in the region with different flags etc.. I was wondering: is it possible for me to change the background image of a slide in the value of a variable, or I just have three separate slides for different pages?

    Hello

    You will not be able to change the background image. What should be possible, but it will drastically increase the size of your file is to put 3 images with the dimensions of the blade and entering in the slide show, the appropriate image based on the chosen variable. I don't know if everything has to change in the background, or perhaps only in certain areas? In this case, try to have it be flying image as small as possible.

    Lilybiri

  • How to make the background image for a site

    Hello.

    First of all, thank you for reading this.

    I intend using a gradient image as background on a new site of black on the sides gradiating to blue in the Middle I created in Photoshop. The site is designed for 1024 (955) and upward. How the background image would handle so that no matter what the resolution above 1024, the visitor sees the gradient correctly, which means that Blue will be always exactly in the center of the page and the image not horizontal mosaic? (I don't want to repeat from left to right when the resolution someone is really high)

    I saw a couple of sites that use strong images that seem to stretch the background image according to the resolution, but were not able to understand the CSS code. In my case, I have a single image that has say 5 pixels high, how wide I need for the (reasonable) maximum resolution, and let repeat from top to bottom.

    Thank you.

    MFitz721

    To do what you ask would require CSS3.  This is because that the CSS3 added support for multiple background images.  What you would do, is to set a gradient to the left and the other to the right with a background color that arise in a vacuum.    Basically use you the abbreviation of "substance" and separate the different environments with a comma ","  See this example ( http://www.css3.info/preview/multiple-backgrounds/ ).  I think it's possible the long way as well (for example: position of background, background image, etc.), but you would need to write the values and who is 1 and 2 in order when you do this.

  • Change the background Image on a Page of a Site.

    CSS of my site has a background image set. I need to change the background image on a page, which has a feedback form.

    I tried a number of different positions for the insertion of the image, but nothing helped. I tried to go in the rule for div id = 'background', and change is here, but it affects all pages. So, I guess that I must write a new rule?

    Here is the code:

    < div id = 'background' >

    < div id = "items" >

    < h2 > Heard! < / h2 >

    < p > < a href = "index.php? status = pending" > waiting for < /a > < a href = "index.php? status = planned ' > under < /a > < a href =" index.php? status = declined "> refused < /a > < /p >" "

    < ol >

    <? PHP {? >}

    < li > < strong > <? PHP echo $row_Getclan ['title'];? > < / strong > < br / >

    <? PHP echo $row_Getclan ['content'];? > < br / >

    by

    <? PHP echo $row_Getclan ['author_name'];? >, to <? PHP echo $row_Getclan ['created_at'];? > < /li >

    <? PHP} while ($row_Getclan = mysql_fetch_assoc ($Getclan));? >

    < /ol >

    < p > < a href = "<?" PHP printf ("%s? (pageNum_Getclan = %d %s", $currentPage, max (0, $pageNum_Getclan - 1), $queryString_Getclan);? > "> previous view < /a > <?" PHP echo ($startRow_Getclan + 1)? >... <? PHP echo min ($startRow_Getclan + $maxRows_Getclan, $totalRows_Getclan)? > on <? PHP echo $totalRows_Getclan? > < a href = "<?" PHP printf ("%s? ("pageNum_Getclan = %d %s" %s "$currentPage, min ($totalPages_Getclan, $pageNum_Getclan + 1), $queryString_Getclan);? > "> Next < /a > < /p >"

    < / div >

    < div id = "crΘer" >

    Speak < h2 > < / h2 >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >

    < table align = "center" >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > title: < table >

    < td > < input type = "text" name = "title" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" valign = "top" > content: < table >

    < td > < textarea name = "content" cols = "50" rows = "5" > < / textarea > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > votre_nom: < table >

    < td > < input type = "text" name = "author_name" value = "" size = "30" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > Your_email: < table >

    < td > < input type = "text" name = 'author_email' value = "" size = "30" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > < table >

    < td > < input type = "submit" value = "Insert file" / > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_insert" value = "form1" / >

    < / make >

    < / div > < / div >

    Thank you.

    div id = 'background' will work for all pages related to a style sheet.

    The best way to do what you want is to re-register your stylesheet with another name. So for a page, link to this new stylesheet. Then, in the style sheet, change the background image. It was easy.

    The only way to do and keep a style sheet is change the designation of the div tag that has your training, to something like the div id = 'backgroundCommon' and then create another div for just one page as div id = "backgroundSpecial".

    Then in your style sheet, copy the description of div and rename it backgroundSpecial and then call on just the single page, with the other pages making up the backgroundCommon.

    Make sense?

  • Why change the background image of the dashboard of data crash the app?

    I'm changing the background image of my dashboard (on a third generation iPad).  Whenever I try to make the change, the data dashobard app breaks down just.  Even if I try to change to a color, the application crashes.  I can insert a picture without problem.  I guess it's just a bug or something but has anyone else seen this problem?

    I was able to reproduce this crash with the following steps:

    -Set up a background image of a page

    -Copy the dashboard somehow. You can reproduce the dashboard, share by email, export and re - import OR clouds, etc.

    -Open the copy of dashboard

    -From the copy, change the background image (for a solid color or another image)

    If you set a background image of a page, close and reopen your dashboard and then try to change the background to something else, you will encounter this error.

    Solution: If you have the original background image in your Camera Roll, you can fall as an image on the same page (Photo Palette, select in the library). Then you can remove this image and change the background also image.

    If you do not have the original image, you may need to start with a new dashboard. (For each page on the old dashboard, you can tap the bottom, select all, copy / paste on another dashboard).

    There is a similar problem with images removed, if you shared the dashboard and you work on a copy. In this case, the solution is to copy and paste the image before deleting. (Otherwise, you'll get a dialog error instead of an accident, but the image is not clear).

    I deposited cars for these issues internally. Sorry for the inconvenience.

Maybe you are looking for

  • CAN I DISABLE MY FIND MY IPHONE LOCK OF MY LAPTOP

    CAN I DISABLE MY FIND MY IPHONE LOCK OF MY LAPTOP

  • Toshiba T110 connects to router 3com

    Hello Just taken delivery of my new t110 notebook - very nice it is too - unless she refuses to work with my existing wifi ADSL 3com router. If I dig on my old router wireless netgear, the T110 and connects to that without problem - but can't get to

  • It can be found.

    It is exactly one day after I receive my Sansa Clip + SanDisk comes out with a new firmware for it. Anyone know where I could get an older firmware, so I can't Rockbox it? Fine thanks Ted

  • Understand our server system

    Hi all I'm sorry for the long question, that it is. I wonder if someone can help me understand how our system of hard drives and servers are configured. Our main server is a Poweredge 2950 with five physical hard disks. Three in a Raid 5 configuratio

  • The Jeopardy widget in Captivate 9 working for anyone?

    I spent almost 2 hours Friday with the support of chat who told me to use the Task Manager to quit the program because it does NOT save or Exit on screen.He sent me a new widget.  The same problem.He told me to remove the entire program 9 Captivate a