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')#">

Similar Messages

  • 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?

  • Possible bug using go tag with redirection under SSL?

    I've been testing an application under SSL and have noticed that some links "pop-out of SSL". Upon further inspection I noticed the links were using <go> tags with redirect set to true.
    Does anyone know where <go> gets the URL it uses? I'm wondering if this might be a webcache configuration issue or appserver config issue.
    note: using AS 10g 9.0.4.1.1
    Thanks in advance!
    /SFL

    Hi all,
    Just thought I'd update on resolution. As suspected, an AS config issue was responsible for this glitch. Long story short WebCache can communicate in 2 ways w/ an origin server (HTTP or HTTPS). You can have WebCache use SSL w/ the client and still communicate with the origin server using HTTP (which was our case). PITFALL: the origin server is unaware of the use of SSL by the client (WebCache only "knows"). SINCE THE ORIGIN SERVER IS THE ONE EXECUTING THE <GO> TAG, when using redirect=true attribute with the tag, the URL generated by the rewrite routine is HTTP and not HTTPS as one might expect when accessing the app via SSL.
    Hope I can spare someone else the headache...
    Cheers!
    /SFL

  • Anyone using iMovie 6 with OS 10.5.3

    Anyone using iMovie 6 with OS 10.5.3
    I am now using iMovie 06 and iDVD 08 with OS 10.5.2 on a MacPro (working fine).
    I would like to here from a 10.5.3 user before getting 10.5.3
    Thanks.

    thanks Bengt.
    I've never done video editing so this is new to me. was surprised at how easy it was with the test video, in this case, being a "flipvideo camcorder" the first step is taking the video clips and then making them into a movie - hence the need for imovie 6.
    I will have to now actually read the instructions for doing the next step of editing. initially just wanted to see if it worked with the FLIP cam. now I can have fun learning something totally new.
    first think I'm going to do is check what format iMovie6 saves the movie in. the clips are AVI. The tech said they could be saved to another format, but haven't gotten that far yet.
    thanks
    Sue

  • Anyone using Database 11g with UCM?

    Anyone using Database 11g with UCM? Can't find anything on the customer reference site. Customer wants to be reassured that they are not the first, etc...
    Thx.
    ft

    I know of a few companies that are using 11g ;)
    They wont be the first.

  • Has anyone used an app with the Maverick software to burn iPhoto slideshows to DVD disks that will play on any DVD player?

    Has anyone used an app with the new Maverick software to burn iphoto slide shows to DVDs that will play on a standard DVD player?  This probably cannot be a demo app in that the amout of photos on the slideshows is large.  
    Thank you,
    Jim

    Export the slideshow from iPhoto, that makes a movie of it.
    Do you want to use this DVD in a domestic DVD player? If so, then the disk will have to be 'authored' to make it the correct form for that. If you have iDVD then that's the app you use. However, iDVD is no longer developed or distributed by Apple. You may be able to get it on an old iLIfe install disk.
    Other options:
    Burn: http://macupdate.com/app/mac/21992/burn
    Toast: http://macupdate.com/app/mac/6351/toast-titanium
    But there are lots of others too. Search on the App Store or MacUpdate

  • Has anyone used iPhone 4s with Oticon Streamer Pro

    Has anyone used iPhone 4s with Oticon Streamer Pro

    I downloaded it today. Doesn't seem to work. It gives you to the option of playing from "Logic Pro" or "Logic Express". When I click "SET" to set the project to fire, all of my logic files are grayed (assuming that means they are not an option)... Waste of 20 bucks.
    Steve
    Branson, Missouri

  • - it doesnt want to drag? Has anyone used this software with imovie?

    I am trying to transfer vhs movies to my harddrive using videglide  I have successfully recorded it and saved it onto my desktop but I cant seem to transfer the movie to iphoto for editing - it doesnt want to drag? Has anyone used this software with imovie?

    I presume you mean Videoglide - which I had never heard of.
    Having read the specs:
    http://www.echofx.com/videoglide.html
    I am wondering how it manages to digitise analogue video from a VCR. For that I use an analogue to digital converter that imports straight into iMovie via firewire.
    You should contact the developers of Videoglide for instructions on how to use it.

  • Has anyone use camptune x with mountain lion even though says it does not support it yet

    HAs anyone used camptune x with mountain lion even though it is not yet specific to moutain lion yet?

    Tried it yesterday on my imac 21Jan 2013 running mountain lion 10.8.2, total disaster.
    Backed up my boot camp image using winclone (great programme)
    Purchased and ran camptune x and everything went fine.
    Rebooted into windows 7 and recieved error messages find--set--root--ignore floppies--ignore cd/bootmgr
    ERROR 15
    Gave me a list of options on screen but none resolved the issue.
    Booted back into winclone and used the backup image i had just created to reinstall on bootcamp.
    Have emailed the company but have had no reply as yet
    **** STAY AWAY until updated for mountain lion YOU HAVE BEEN WARNED ****

  • Issue with generating large pdf file using cfdocument tags in CF9

    We are in the process of upgrading our code to use cf9 and the cfdocument tag (from the old cfx_pdf tags).  We have successfully gotten one piece of our code to work but the file size of the pdf that we are generating now is huge in comparison to what it was using the CFX_PDF tags. (I.E.  with the new code the file is 885 KB in comparison to the old code generating only a 11KB file). We are not embedding fonts so the Fontembed = "no" didn't work for us.  We do have all of our images as .jpgs but unfortunately due to the volume of images that we have we can not switch all these files into another format.  Is there is way to shrink or optimize the pdf file size that we are generating? 
    Thanks so much for your help.
    Claudia

    We are in the process of upgrading our code to use cf9 and the cfdocument tag (from the old cfx_pdf tags).  We have successfully gotten one piece of our code to work but the file size of the pdf that we are generating now is huge in comparison to what it was using the CFX_PDF tags. (I.E.  with the new code the file is 885 KB in comparison to the old code generating only a 11KB file). We are not embedding fonts so the Fontembed = "no" didn't work for us.  We do have all of our images as .jpgs but unfortunately due to the volume of images that we have we can not switch all these files into another format.  Is there is way to shrink or optimize the pdf file size that we are generating? 
    Thanks so much for your help.
    Claudia

  • JSPs using Custom Tag with Boolean attribute cannot compile

    Hi,
    In Oracle9iAS(9.0.3), a jsp using a tag extension, which has a Boolean attribute, caused the following compile error, although the jsp is valid in other web containers.
    ERROR:
    /opt/oracle/j2ee/home/application-deployments/simple/simple/persistence/_pages/_test.java:56: Method toBoolean(java.lang.Boolean) not found in class _test.
    __jsp_taghandler_1.setExists( OracleJspRuntime.toBooleanObject( toBoolean( b)));
    JSP:
    <%@ page language="java" %>
    <%@ page errorPage="error.jsp" %>
    <%@ taglib prefix="jnpr" uri="/WEB-INF/testtag.tld" %>
    <%
    Boolean b = Boolean.valueOf("true");
    %>
    <jnpr:TestTag exists="<%= b%>"/>
    The boolean value is <%= b %>
    Tag Handler:
    package defaultpak;
    import javax.servlet.jsp.tagext.*;
    import javax.servlet.jsp.*;
    public class TestTag extends TagSupport{
    private Boolean exists = null;
    private java.lang.Boolean getExists() {
    return exists;
    public void setExists(java.lang.Boolean newExists) {
    exists = newExists;
    public int doStartTag() throws JspException {
    return super.doStartTag();
    Is this a known problem? Is there a way to get around this?
    Thanks in advance.
    Fred

    This is a known issue with 903, fixed in coming 904.
    In 903 the workaround is to use primitive type "boolean" instead of Object type "java.lang.Boolean" in user's getter and setter code for the taglib.
    -Prasad

  • Anyone using Lacie NAS with Mac?

    Hi. I'm not sure if this is the right place to post this question. I want to buy a NAS with about 4TB capacity and currently am looking at the LaCie Network Space Max. I plan to move my iTunes library to the LaCie, and load it up with a bunch of other movies and content. I plan to use TimeMachine to back up my MacBook Pro onto the LaCie. I also plan to stream movies from the LaCie to my TV using the new Apple TV (which I haven't purchased yet).
    Does anyone have any experience with this particular LaCie device, or with LaCie NAS devices in general. Do you find them to work well with Mac computers in the manner I describe above? Thank you!

    Do you have a particular reason for purchasing this specific device?
    i.e I use a QNAP TS410 nas which does all that you want on mac flawlessly, so at the minimum add this to your potential list.

  • N95 will crash when using voice tags with HS-4W

    When I try and use my Nokia Bluetooth Head Set HS-4W to access voice tags it always resets!
    Anybody else got this problem?

    I finaly got it to work by resetting the headset.
    No problem whatsoever with voice dialing.
    I have firmware V30.0.15
    Do you have the problem when using voice tags on the phone alone?

  • Anyone using durable topics with high data volumes?

    We're evaluating JMS implementations, and our requirements call for durable subscribers, where subscribers can go down for several hours, while the MQ server accumulates a large number of messages.
    Is anyone using Sun MQ in a similar scenario? How is it holding up?
    Sun folks, do you know of production installations that use durable topics with high data volumes?
    thanks,
    -am

    We are using a cluster of Sun�s JMS MQ 3.6 with durable message queues and persistent topics. In a 4 hour window each night we run over 20,000 messages through a queue. The cluster sits on two Windows servers, the producer client is on a AIX box and the consumer is running on a iSeries. Within the 20,000 messages are over 400,000 transactions. Each message can have many transactions. Yes, the iSeries client has gone down twice and the producer continued with the message queue pilling up, as it should. We just use the topic to send and receive command and status inquiries to the clients. So every thing works fine. We have only had a couple issues with a client locking and that maybe fixed with sp3, we are in the process of installing that. The only other issue we have had is that once in a while the producer tries to send an object message with to many transactions and it throws and JMS exceptions. So we put a cap on the size of the messages, if its over a set number of transactions it send each transaction as separately, otherwise it sends all the transactions in one object type (linked list of transactions) message. Compare the cost of this JMS system with Tibco or Sonic and you�re looking at big savings.

  • Does anyone use Cineform Neoscene with Canon t2i footage and Premiere Elements 10?

    I'm wondering if its worth the $100.00 investment - not looking to spend more money but I really want to avoid the hassle I've had with other editing programs...... I will be using MOV H.264 footage from Canon Elph 500 and Canon t2i and looking ffor the easiest workflow and I came across this item and am wondering if people have used it.
    Thanks!
    Maureen

    QT Pro can do Cut-and-Butt editing, and if that is all done, can Export without Retranscoding the footage.
    For much more than that, however, it lacks the capabilities.
    I do not know how well CineForm's NeoScene works with PrE, but before PrPro got full AVCHD native support, was very popular with the PrPro users. I cannot recall anyone having an issue with it, in that program, but might have missed a complaint, or two.
    Good luck,
    Hunt

Maybe you are looking for