CFDOCUMENT times out on generating simple PDF

I generate content from query and it takes some seconds to
show up corresponding HTML piece.
When I enclose this into cfdocument tag - it hangs, then
gives me the following error:
"The content of this document process takes more than 60000
milliseconds to process.."
Sometimes, after also quite a long time, it gives me "pdf
contains no pages" error.
I tried to remove some tags, like <DIV> - instead, i
put <P> (i tried this on simple example). Other from this, I
have <A> tags. Somebody of you said, it could have a problem
with evaluating some hrefs - so I used <CFSAVECONTENT> tag to
save whole output to var, and then used content var inside of
<CFDOCUMENT> - no luck, error is the same...
I use MX7 Enterprise edition.
Please, help!

Thanks for information. Ok, I've created parser (i will
anyway need parser for content field - i will be evaluating
variable by names there, etc...) So - parser temporary copies all
resources into current www folder, especially for cfdocument. Then
replace command replaces corresponding links. Again - html shows
ok. But damned cfdocument doesn't work, anyway!
And now i even can't name all the reasons it doesn't work! It
works only when i remove almost everything from my output!
Seems it even doesn't like my css style! I don't have idea
what to do...
Here is the code
quote:
<cfoutput>
blablabla...
<cfdocument
filename="C:\UserResources\#checkuser.userid#\#drplantemplateDetails.drplan_name#.pdf"
format="pdf" overwrite="yes">
<cfdocumentsection>
<html>
<head>
<title>
</title>
<link rel="stylesheet"
title="#client.theme##client.fontSize#" type="text/css"
href="/#client.theme##client.fontSize#.css" title="Default"/>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body class="headerStyle">
#drplantemplateDetails.header#
</cfdocumentsection>
<cfloop query="drplantemplatestepDetails">
<cfdocumentsection>
<cfdocumentitem type="header">
<H2>#drplantemplateDetails.header#</H2>
</cfdocumentitem>
<p><a
name="#drstep_id#">#step_name#</a></p>
<p>#parseDRPlan(content, "pdf",
GetDirectoryFromPath(GetCurrentTemplatePath()),
"/members/Planning/resources", "create")#</p>
<cfloop index="i" from="1" to="3">
<cfset step_id = Evaluate("step_" & i &
"_id")>
<cfset step_header = Evaluate("step_" & i &
"_header")>
<cfset step_description = Evaluate("step_" & i &
"_description")>
<cfif step_id is not "" and (not
IsDefined("form.drstep_id") or IsDefined("form.drstep_id") and
ListFind(form.drstep_id, step_id) is not false)>
<p><a href="#ListGetAt(CGI.SCRIPT_NAME,
ListLen(CGI.SCRIPT_NAME, "//"),
"//")#?#CGI.QUERY_STRING####step_id#"><cfif step_header is
"">Unnamed<cfelse>#step_header#</cfif></a></p>
<cfif step_description is not
""><p>#step_description#</p></cfif>
</cfif>
</cfloop>
<cfdocumentitem type="pagebreak"/>
</cfdocumentsection>
</cfloop>
<cfdocumentsection>
#drplantemplateDetails.footer#
</body>
</html>
</cfdocumentsection>
</cfdocument>
blabla...
</cfoutput>

Similar Messages

  • Transaction time out for a simple query

    I have a table with 39 million records in the table. When I try to fetch data from teh table with one single where clause. it is raising Transaction timed Out.
    What is the best way to fetch full data with out Time Out.
    Can we use the first_rows hint to fetch data batch by batch ?
    Thanks,
    CD

    What is the exact error code? I.e. the ORA-nnnn error code.
    It is not possible to diagnose a problem if the actual problem is not known. Responders are guessing at what the problem is and offering solutions.. and these could be very far of the mark.

  • Cfdocument times out due to img tag

    Hello there, i've got a similar problem once the user 'Ken'
    got:
    I've programmed a script which generates a PDF with
    HTML-Tags, nothing special. There are 2 image tags included, one
    that looks up an image within the same directory, the other is
    going to request a chart image from
    http://img.cash.ch
    On my local dev machine, everything worked just fine, on the
    production, everything WOULD HAVE worked if it wasn't for the 2
    image tags. They are really making problems. But once I remove the
    image tags, everything works again, even on the production.
    Can anybody tell me what is the problem here and how to solve
    it?
    Here's the code.:

    Hi,
    You may try
    this
    workaround for your first <img> tag that is,
    <img src="images/cash_logo.gif">
    But as with the other <img> tag,
    i.e,
    <img src="
    http://img.cash.ch/idcharts/MONTH3/#qArticleValors.valor#-#qArticleValors.bc#-#qArticleVal ors.currencycode#.png">
    I am not sure the same workaround will do the trick here, as
    you may need to explicitly download the image into your server then
    start it over.

  • Time out for opening a PDF File

    I would like to create a file that can only be opened for a small amount of time, say 1 day from the time it is first opened.
    I would like to have a password on the file. I know how to do that.  For example, I have a file that I send out on Feb 18, 2014 and is opened at 12:20 PM.  I would like to set it so once it is opened, It can't be opened again after 1 day, or Feb 19, 2014 at 12:20 PM.  Is this possible to set up?
    Thanks,

    DRM solutions are usually quite expensive, so I do not know whether they are applicable in your case. Adobe LifeCycle is one of them (http://www.adobe.com/manufacturing/resources/drm/). There are others. You can Google "Adobe PDF DRM" to find more.

  • Read Time Out Exception while generating PDF Document

    Hi,
    We are working on Netweaver 04,Patch SP 16 and trying to generate a Non Interactive PDF on ADS Version SP 14 for printing purpose (Eg.Invoice). This extracts data using EJBs. We used Interactive Form UI element which has various sub elements like static image, etc.
    We are using Acrobat Reader 7.0 for generating PDF.
    The form fetches the records and prints perfectly in the Development System, While creates a 'java.net.SocketTimeoutException: Read timed
    out ' Exception in Production.
    Time Out period for web service container is set to 180 sec in both Dev and Prod.
    Default trace in the production is continously throwing following  error."com.adobe.document.XMLFormService#com.adobe/AdobeDocumentServices#com.adobe.document.XMLFormService
    Thread[XMLForm.exe Error Reader,5,SAPEngine_Application_Thread[impl:3]
    _Group]##0#0#Error##Plain###Service XMLFormService: Native process
    (PID=0) /usr/sap/NWP/JC00/j2ee/os_libs/adssap/XMLFormService/bin/XMLForm.exe terminated abnormally with error code 127# "
    We are running following services in both Prod and Dev for using ADS.
    1. IIOP Provider
    2. Data Manager Service
    3. Data Font Manager Service
    4. XML Module
    5. Document Services Configuration
    6. Document Services License Support Service
    Could some one please  let us know what could be the problem?
    Thanks And Regards,
    Apeksha.

    Hi Markus,
    Thanks for the prompt reply. However, SAP notes 867502
    and 811342 speak about PDF manipulation services, which we are not using in our application. We need to create non interactive form which simply reads the data from the DB and displays it to the users for printing.
    The other 2 notes-826419 and  849851 talk about SP 10,11 and 12, while we are using SP14 for Adobe Services and SP 16 for Netweaver Java Stack.
    The application works perfectly on the Development Server, but not on Production Server. Though all the configurations are same on both the servers, still can you suggest what all things need to be considered ?
    Thanks and Regards,
    Apeksha

  • Cfdocument running slow when generating PDF

    I have two servers configured the same way. They're running CF 8 Enterprise (exact version is 8,0,1,195765), Java version is 1.6.0_04. Servers are Windows 2008 Server Standard. On one of them, generating PDFs using CFDOCUMENT is very fast. On the other it's painfully slow, can take minutes for a simple PDF. I've checked everything I can think of on the two servers and they seem pretty much the same. I checked the iText jars, they appear to be the same as well. I've seen other people post with slowness issues, but many posts relate to dynamic images, which are not an issue here because I have a PDF with no images in it. I'm totally out of ideas as to what could be causing the difference in performance. Anybody else run into this and find a solution?

    Actually, I have emailed the support and they have done it for me.
    But, I believe that they went into Policies --> Desktop Protection Policy
    Then, if you go to “Browser Protection & Web Filtering” go to the “Exception” tab and add in there the URL of your excluded coldfusion server.
    Also, in Virus & Spyware protection, exclude the extension “.cfm” from the “Excluded Files and Folders” and it should work.
    If it doesn’t, just email the support and ask them to do it for you
    Stéphane Péharpré
    IT Manager
    Description: cid:[email protected]

  • Takes a long time to Generate a PDF from Frame 9. Why?

    It takes approximately 1 hour to generate a PDF from a 200 page Frame 9 doc (PDF file size Standard). There are lots of xrefs in the doc (more than 1500) but taking one hour to generate a PDF seems unusual. I remember the Frame 5 days when it took only minutes to generate large PDFs.

    tv95 wrote:
    It takes approximately 1 hour to generate a PDF from a 200 page Frame 9 doc (PDF file size Standard).
    It might help to know your system configuration. I have experienced such long times for PDF creation, when using FM9 in Parallels/Win XP Pro and saving to a shared volume on the same Mac. Now we are saving all documents (including PDFs) to a server, and we're back to PDFs in minutes
    Bernd

  • After the last update that was pushed out by Adobe, my Acrobat 9 Pro will not generate a PDF file fr

    After the last update that was pushed out by Adobe, my Acrobat 9 Pro will not generate a PDF file from; [right click], Combine files into one PDF multiple files chosen in the explorer.  A message pops up asking if I want to run repair.  Answering in the afirmative results in another message stating files are missing.  And we are back at square one.

    What is the exact error?  Else you could always reinstall your software.

  • Autocad to Acrobat PDF time out?

    I have atocad 2008 LT, Acrobat 9 standard on a windows 7 machine.  Printing to pdf from autocad was no problem until recently...  now, after maybe 20 prints, it times out and no longer allows me to print to pdf.  I have to completely restart the machine to get it to work again.
    Anyone else have this issue?
    Anyone have a solution?
    Thanks!

    BUMP!
    I have the same issue.  I need to fix this, as I work in a print shop and need to save separations for our offset printer.  This never used to happen, so I have no idea what the fix could be?
    Please help and thank you!

  • Can I automatically generate a PDF each time I close an InDesign document?

    Hello. Is there any way that I can automatically generate a PDF each time I close an InDesign document? I’d appreciate any help with this at all. Thanks a lot. 

    Hi,
    Surely with JavaScript!
    As for me, writing a little shortcut in 2 minutes, using QuicKeys [OSX or Windows]! 
    What I do [here, using InDesign CS4]:
    I don't directly close the doc. I only play, e.g. here : Cmd-F7 (OSX).
    Process: the doc. is saved [1] ; export to pdf [2-3-4] ; the doc. is closed [5]

  • Time Out Issue When Converting from PDF to .doc or .dox format

    I have a couple of PDF documents that I'm trying to convert to word doc (doc or dox) format.  I subscribe to the online Adobe Export PDF.  The export always times out.  The PDF is 18.08 MB.  Does anyone have have any suggestions?

    Hi riversideredhead63,
    Are you able to convert other PDFs without issue? Here are a few things to try for starters:
    Clear your browser cache (steps vary by browser).
    If you're using a work computer, check with your IT team to confirm if you have firewall/proxy settings that restrict the ability to upload files to the Internet.
    Try another web browser.  A list of supported browsers for accessing the ExportPDF service is available here: http://www.adobe.com/acom/systemreqs/
    If those don't work, please get back to us. It would be helpful to know what sort of content is in the PDF file that you're trying to convert, and what application created the PDF. (If you don't know, choose File > Properties in Reader. The source application is listed in the middle of the dialog box.)
    I look forward to hearing back from you.
    Best,
    Sara

  • Export Report times out - how do I export all my customers?

    We have about 35,000 customers in our BC database.
    I'm trying to export them for use in a direct mailing campaign (and other reports for other reasons) but the export always times out.
    The reports are very simple; ie.
    Custom Report -> Add customer report
    Select Customers (Contacts & Companies)
    Select CRM ID, Customer Name, Default Address Type
    Next
    Generate report (no filters)
    About 33,000 results are in the report.
    I then select Export Report as CSV or Excel and it will sit there for up to an hour or more and do nothing.
    Notes:
    I keep the session live by having a login in another tab.
    Have tried differenty browsers and internet connections.
    I even filtered the results (based on create date) and same problem occurred with just 15,000.
    How can I export this report and other simple reports I need?
    Regards,
    Troy.

    After Sanjit took a look at this it turns out all I needed to do was to save the report before exporting the results. The export was much quicker and, now we have more cutomers in our database, it actually exports!
    Thanks again Sanjit.
    Troy.

  • Images present in datagridview not exporting to file only text contents are generating into PDF file..

    Hi Everyone,
       I have created simple Desktop app in that I trying to generate PDF file from Datagridview...when I click on ExportPDf button Pdf file is generation successfully but the issue is in that pdf whatever the images has present in datagridview that images
    are not generation into PDF only the text contents are Present in PDF file.
      Does any one can tell me how to generate the PDF file along with images.
    Here is my code:
      private void btnexportPDF_Click(object sender, EventArgs e)
                int ApplicationNameSize = 15;
                int datesize = 12;
                Document document = null;
                try
                    SaveFileDialog savefiledg = new SaveFileDialog();
                    savefiledg.Filter = "All Files | *.* ";
                    if (savefiledg.ShowDialog() == DialogResult.OK)
                        string path = savefiledg.FileName;
                        document = new Document(PageSize.A4, 3, 3, 10, 5);
                        PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(path + ".pdf", FileMode.Create));
                        document.Open();
                        // Creates a phrase to hold the application name at the left hand side of the header.
                        Phrase phApplicationName = new Phrase("Sri Lakshmi Finance,Hosur-560068", FontFactory.GetFont("Arial", ApplicationNameSize, iTextSharp.text.Font.NORMAL));
                        // Creates a phrase to show the current date at the right hand side of the header.
                        Phrase phDate = new Phrase(DateTime.Now.ToLongDateString(), FontFactory.GetFont("Arial", datesize, iTextSharp.text.Font.NORMAL));
                        document.Add(phApplicationName);
                        document.Add(phDate);
                        iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance("D:\\logo.JPG");
                        document.Add(img);
                        iTextSharp.text.Font font5= iTextSharp.text.FontFactory.GetFont(FontFactory.TIMES_ROMAN, 5);
                        iTextSharp.text.Font font6 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 6);
                        //float[] columnDefinitionSize = { 2.5f, 7.0f,6.6f, 8.6f, 6.6f, 5.0f, 4.5f, 7.0f, 6.3f, 7.0f, 3.5f, 6.0f, };
                        PdfPTable table = null;
                        table = new PdfPTable(dataGridView1.Columns.Count);
                        table.WidthPercentage = 100;
                        PdfPCell cell = null;
                        foreach (DataGridViewColumn c in dataGridView1.Columns)
                            cell = new PdfPCell(new Phrase(new Chunk(c.HeaderText,font6)));
                            cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
                            table.AddCell(cell);
                        if (dataGridView1.Rows.Count > 0)
                            for (int i = 0; i < dataGridView1.Rows.Count; i++)
                                PdfPCell[] objcell = new PdfPCell[dataGridView1.Columns.Count];
                                for (int j = 0; j < dataGridView1.Columns.Count - 0; j++)
                                    cell = new PdfPCell(new Phrase(dataGridView1.Rows[i].Cells[j].Value.ToString(), font5));
                                    cell.HorizontalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.VerticalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.Padding = PdfPCell.ALIGN_LEFT;
                                    objcell[j] = cell;
                                PdfPRow newrow = new PdfPRow(objcell);
                                table.Rows.Add(newrow);
                        document.Add(table);
                        MessageBox.Show("PDF Generated Successfully");
                        document.Close();
                    else
                        //Error 
                catch (FileLoadException fle)
                    MessageBox.Show(fle.Message);
                    MessageBox.Show("Error in PDF Generation", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    Runtime Gridview content:
    Generated PDF File:
    Thanks & Regards RAJENDRAN M

    Hi Everyone,
       I have created simple Desktop app in that I trying to generate PDF file from Datagridview...when I click on ExportPDf button Pdf file is generation successfully but the issue is in that pdf whatever the images has present in datagridview that images
    are not generation into PDF only the text contents are Present in PDF file.
      Does any one can tell me how to generate the PDF file along with images.
    Here is my code:
      private void btnexportPDF_Click(object sender, EventArgs e)
                int ApplicationNameSize = 15;
                int datesize = 12;
                Document document = null;
                try
                    SaveFileDialog savefiledg = new SaveFileDialog();
                    savefiledg.Filter = "All Files | *.* ";
                    if (savefiledg.ShowDialog() == DialogResult.OK)
                        string path = savefiledg.FileName;
                        document = new Document(PageSize.A4, 3, 3, 10, 5);
                        PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(path + ".pdf", FileMode.Create));
                        document.Open();
                        // Creates a phrase to hold the application name at the left hand side of the header.
                        Phrase phApplicationName = new Phrase("Sri Lakshmi Finance,Hosur-560068", FontFactory.GetFont("Arial", ApplicationNameSize, iTextSharp.text.Font.NORMAL));
                        // Creates a phrase to show the current date at the right hand side of the header.
                        Phrase phDate = new Phrase(DateTime.Now.ToLongDateString(), FontFactory.GetFont("Arial", datesize, iTextSharp.text.Font.NORMAL));
                        document.Add(phApplicationName);
                        document.Add(phDate);
                        iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance("D:\\logo.JPG");
                        document.Add(img);
                        iTextSharp.text.Font font5= iTextSharp.text.FontFactory.GetFont(FontFactory.TIMES_ROMAN, 5);
                        iTextSharp.text.Font font6 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 6);
                        //float[] columnDefinitionSize = { 2.5f, 7.0f,6.6f, 8.6f, 6.6f, 5.0f, 4.5f, 7.0f, 6.3f, 7.0f, 3.5f, 6.0f, };
                        PdfPTable table = null;
                        table = new PdfPTable(dataGridView1.Columns.Count);
                        table.WidthPercentage = 100;
                        PdfPCell cell = null;
                        foreach (DataGridViewColumn c in dataGridView1.Columns)
                            cell = new PdfPCell(new Phrase(new Chunk(c.HeaderText,font6)));
                            cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
                            table.AddCell(cell);
                        if (dataGridView1.Rows.Count > 0)
                            for (int i = 0; i < dataGridView1.Rows.Count; i++)
                                PdfPCell[] objcell = new PdfPCell[dataGridView1.Columns.Count];
                                for (int j = 0; j < dataGridView1.Columns.Count - 0; j++)
                                    cell = new PdfPCell(new Phrase(dataGridView1.Rows[i].Cells[j].Value.ToString(), font5));
                                    cell.HorizontalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.VerticalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.Padding = PdfPCell.ALIGN_LEFT;
                                    objcell[j] = cell;
                                PdfPRow newrow = new PdfPRow(objcell);
                                table.Rows.Add(newrow);
                        document.Add(table);
                        MessageBox.Show("PDF Generated Successfully");
                        document.Close();
                    else
                        //Error 
                catch (FileLoadException fle)
                    MessageBox.Show(fle.Message);
                    MessageBox.Show("Error in PDF Generation", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    Runtime Gridview content:
    Generated PDF File:
    Thanks & Regards RAJENDRAN M
    Hello,
    Since this issue is mainly related to iTextSharp which belongs to third-party, I would recommend you consider posting this issue on its support website to get help.
    Maybe the following forum will help.
    http://support.itextpdf.com/forum/26
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My client asks ... can we generate a PDF not via Word...?

    Using: RH HTML 7.0.3.
    Hi all,
    A client has invested time into developing a good CSS style sheet and RoboHelp template for creating a nice looking CHM HTML Help. My client wants to find a way of creating a nice looking PDF document without investing more time in developing a good Word template for export to PDF.
    The client asked me what seems to me to be a dumb question about PDF generation. Is there such a thing as generating a PDF not via Word? - (Whatever that means.) My client seems to think there is a way. But since my client asked, I have to ask you all...
    I tried out the quick way of simply clicking on the PDF icon, and seeing what happens. So RH generated for me a PDF, without asking me for any more info. The Output logger showed clearly that RH was first creating a *Word file*. And sure enough when I looked in its target folder I saw there was also a *Word doc* there, completed a minute earlier. A definite sign, I think, that RH first created the Word doc and then from it created the PDF. (Btw, I don't know where RH got the TOC from for this PDF generation - it seems like a ghost of the TOC I used months ago.) 
    Then I tried using the Generate wizard from the Single Source Layouts pod. One of the stages of this wizard prompts you to select a template, including any *Word templates* you have fed RH in the past. Again a good sign, IMO, that the initial process for making a PDF is the same as for making a Word doc.
    Over to you all.
    TIA
    avraham

    RH has to create a Word document but if you deselect the Word check box, it is not saved. What you saw was probably an old document. Delete it and publish just a PDF and you should not be able to see the temporary Word document that is created.
    In the wizard you don't have to select a Word template, that is just one of the options.
    The content of the print layout is not related to your TOC. It takes the content of a TOC when you first create the print layout but then the two are standalone. You might not want the print layout to be the same as the TOC. If you do, use the arrows to clear the content and then replace it with the current TOC.
    This is covered in Printed Documents on my site.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Generate a PDF export and getting the file or the bytestream to modify it

    Hi everybody
    I have a web dynpro application and want to get the bytestream or the PDF file itself.
    Is there a function (RFC, J2EE-Method, ABAP methode/class) where I can say
    "Hey function, generate a PDF export of a BI report and save the PDF file <br>somewhere in the KM or return the bytestream of the PDF"
    I must be able to define following parameters
    -BI template name
    -values for the selection mask (the same as the BEx BI-Commands to prefill a field in the selection mask)
    -KM path + filename (if the function saves the file in the KM)
    What I already tried:
    Broadcast to KM
    I can start the broadcast automatically using the report RSRD_BROADCAST_STARTER. But the problem is that I can't generate a broadcast setting and so I'm not able to define the filename and selectionmask data dynamically.
    Package RSRD
    When you enter the transaction SE80 and look for the package "RSRD" there are a lot of interesting classes and methods. But I couldn't figure out how to call them to generate a PDF export of a BI report.
    FM RSADOB_PDFREPORT_GENERATE
    This function module have all the parameters I wish. The problem is that it does not work anymore. It's just an internal test for the SAP guys themselves.
    So ...
    Have anybody an idea how to solve this?
    How to generate a PDF export of a BI report and fill the selection mask and get the PDF (as bytecode or file in the KM) ?
    Thanks lot
    Klaudio

    hi,
    Like you said.. steps are simple and clearly mentioned in guide.
    1. create a variable of type string
    2. after configuring the file adapter , go to corresponding receive activity , go to properties tab
    3. search for a property with name as jca.file.FileName . This basically keeps track of file name
    4. for this property, give the value as name of variable created in step 1 above
    5. Use this variable anywhere in assign / transform
    HTH,
    Ketan

Maybe you are looking for