Generating PDF file in coldfusion version 5
Hello,
I have a task where in I need to generate the .pdf file from
coldfusion version 5.0. Can somebody help me how to do this task?
Thanks,
Satheesh.
satheesh_p wrote:
> I have a task where in I need to generate the .pdf file
from coldfusion version 5.0. Can somebody help me how to do this
task?
search these forums for "itext", you should see plenty of
examples. but i don't
recall we've ever made it work w/cf5. cf5 & java is
harder than mx.
i guess you also might look at some of the commercial apps
like activePDF, etc.
Similar Messages
-
Generate pdf file in coldfusion 6 or 6.1
hello,
would like to ask how to create a simple pdf file in
coldfusion 6 or 6.1?
thanksclyde_01 wrote:
> would like to ask how to create a simple pdf file in
coldfusion 6 or 6.1?
use the open source iText library, that powers cf7's
cfdocument PDF bits. search
the forums, plenty of examples. -
We have done toleration testing on firefox version 5 thru 6 and haven't got an issue with our website generating pdf files for our users. One of our users upgraded to firefox version 7.0.1 and they tried to generate a pdf report, now a screen pops up with Corrupted Content Error The page you are trying to view cannot be shown because an error in the data transmission was detected. I recreated this issue on my pc yesterday by installing firefox 7.0.1. Any hints as to what I need to look at would help. Cannot provide the url because it is a secure website for law enforcement. Thanks.
You can turn off compatibility checking, but more and more of the Google Toolbar will not work. Google is no longer supporting the Google Toolbar so you should use the alternatives.
Hi Mark,
See http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
If you have an aspect that is not covered, indicate what that is; otherwise, expect you to be fully functional within 1-2 weeks.
<br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small> -
Tagged PDF files from ColdFusion.
Does anybody know about the current -- and maybe future --
capabilities
of ColdFusion tools that generate PDF files, such as
<cfreport...> and
<cfdcoument...> tags, to create 'tagged' PDF files?
Tagged PDF files are PDF documents that have structural
markup
information along the lines of HTML to give accessibility
aids, such as
screen readers, more information on what content the PDF
document contains.
I have been looking high and low for information on how one
may create
tagged PDF's -- or add tag markup to a created PDF -- with
ColdFusion.
I'm getting a sinking feeling this is just beyond the
capability of our
beloved tool!This is a rather old version; you may need to run it in XP compatibility mode.
-
D:\dzbat\bin>genpdf
D:\dzbat\bin>javadoc -doclet com.sun.tools.doclets.mif.MIFDoclet -docletpath d:\
mifdoclet1.2\lib\mifdoclet.jar -J-Xmx20M -batch dzbatcher -print pdf -d d:\lsmap
isericsson\docs -sourcepath d:\lsmapisericsson com.mahindrabt.lsm
Loading source files for package com.mahindrabt.lsm...
Constructing Javadoc information...
MIF Doclet version 1.2 beta 2 (build date: 09 Aug 2002)
I installed mifdoclet1.2 and DZbatcher and tried to generate PDF file with the following batch file
javadoc -doclet com.sun.tools.doclets.mif.MIFDoclet -docletpath d:\mifdoclet1.2\lib\mifdoclet.jar -J-Xmx20M -batch dzbatcher -print pdf -d d:\lsmapisericsson\docs -sourcepath d:\lsmapisericsson com.mahindrabt.lsm
It gives the following output and does not genrate the PDF file and does not give any error. Is there any problem with my batch file? Please help me out from this.
Generating d:\lsmapisericsson\docs\mif\overview.mif...
Using default stylemap file...
Template Used: d:\lsmapisericsson\docs\mif\template.mif
Using default batchmap file...
Building tree for all the packages and classes...
Generating d:\lsmapisericsson\docs\fm\package-list...
Generating d:\lsmapisericsson\docs\mif\com.mahindrabt.lsm.mif...
Generating default overview page...
Generating d:\lsmapisericsson\docs\mif\almanac.mif...
Generating d:\lsmapisericsson\docs\mif\api.book.mif...
Generating d:\lsmapisericsson\docs\mif\mif-to-fm.batch...
Executing: dzbatcher -makername framemaker d:\lsmapisericsson\docs\mif\mif-to-fm
.batch...
Regards
TusharI see no problem with your batch file, and the messages
proceed properly. To troubleshoot this further, I suggest
you read the email (currently adjacent) titled:
"Error using MIF doclet to create PDFs".
It describes several different approaches, including
generating PS and using Distiller to generate PDF,
or trying dzbatcher with -v option to echo each
command to see where it stops.
Please let us know your results, as this seems to be
a common problem.
-Doug Kramer
Javadoc team -
Performance problems to generate PDF files using CR
Hi,
I develop an application that read TXT files and uses this information to generate PDF files, but I'm having problems with performance to generate this PDF, each files are taking at least 1 minute to create the file. I realized that some TMP and RPT files are generated and deleted in the temp folder of the machine which is running the application, but after some time creating the PDF's the RPT files aren't deleted and I have an exception on my app:
Memory full.
Failed to export the report.
Not enough memory for operation. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
The server who is running this application is a Dual Core AMD Opteron 2.61 ghz, 7 GB RAM
The framework version is 2.0 and the Crystal Reports dll version is 10.5.3700.0
Thanks.Hi,
If you are using IIS5 the give aspnet full permission to the Temp folders. For IIS6 give IIS_wpg permission.
For this you need to right click on the folder,
go to properties,
security tab,
click on Add,
Type aspnet/iis_wpg,
select top note in Location and click on check on check names.
Give full control and
click ok.
Also try using GC.Collect(), reportDocObject.Close() and reportDocObject.Dispose() as clean up code.
Regards,
AG. -
Difference in generated PDF file size between distiller 6.0 and 10.0
Hi,
we are currently using Distiller server 6.0.1 on Windows server 2003 to convert PS to PDF, we want to upgrade our operating system to Windows server 2008 R2 but distiller server is not supported on this,
so we are evaluating Acrobat distiller 10 which comes along with Acrobat pro x but we noticed some slight difference in the generated PDF file size, for the same PS the distiller server 6.0 generated PDF
file size of 55 KB whereas Acrobat distiller 10 generated PDF file is 53 KB. The output looks same but wondering whether is it safe to continue further with the file size difference, it would be good
if you could provide some insight into why the file sizes are different between these two versions.
Thanks,
AnandLiveCycle PDF Generator is the successor to Distiller Server
Modules | Adobe LiveCycle Enterprise Suite 4 -
Generate .PDF file from BlackBerry application
Hai,
Can anyone explain or give me some idea on generating pdf file in blackberry application programatically...
Thanks in advance.
Regards
Ratheesh R Kuruphi Kiriakos,
which version are you using ?
please test this with reports 9i since PDF support
has been enhanced there.
to test i would suggest to run the report from rwclient
as well and specify desformat=pdf and to a generate to
file within builder to see if the same behavior occurs.
if this problem reproduces there as well i suggest
to contact oracle support to log the problem.
regards,
christian -
Generating PDF file from PL/SQL
Hello,
I'm new using XML DB. I have XML data and a stylesheet stored into the database but i don't know how to generate PDF files.
I' ve already tried to load Apache FOP into the DB and that's work very well. Is there any other solution using only Oracle's PL/SQL environment ???
Thanks for your help.
Lionel from Switzerland.can you provide the steps that you used to load fop into the database?
which db version, and which fop version? When I tried to follow the cmsxdb load into a 10g instance I had numerous resolution errors.
please help -
Writing a java program for generating .pdf file with the data of MS-Excel .
Hi all,
My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
My Program is:
* Created on Apr 13, 2005
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
package forums;
import java.io.*;
import java.awt.Color;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import com.lowagie.text.Font.*;
import com.lowagie.text.pdf.MultiColumnText;
import com.lowagie.text.Phrase.*;
import net.sf.hibernate.mapping.Array;
import org.apache.poi.hssf.*;
import org.apache.poi.poifs.filesystem.*;
import org.apache.poi.hssf.usermodel.*;
import com.lowagie.text.Phrase.*;
import java.util.Iterator;
* Generates a simple 'Hello World' PDF file.
* @author blowagie
public class pdfgenerator {
* Generates a PDF file with the text 'Hello World'
* @param args no arguments needed here
public static void main(String[] args) {
System.out.println("Hello World");
Rectangle pageSize = new Rectangle(916, 1592);
pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
// step 1: creation of a document-object
//Document document = new Document(pageSize);
Document document = new Document(pageSize, 132, 164, 108, 108);
try {
// step 2:
// we create a writer that listens to the document
// and directs a PDF-stream to a file
PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
// step 3: we open the document
document.open();
Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
Iterator rows = hsheet.rowIterator();
while( rows.hasNext() ) {
Phrase phrase=new Phrase();
HSSFRow row = (HSSFRow) rows.next();
//System.out.println( "Row #" + row.getRowNum());
// Iterate over each cell in the row and print out the cell's content
Iterator cells = row.cellIterator();
while( cells.hasNext() ) {
HSSFCell cell = (HSSFCell) cells.next();
//System.out.println( "Cell #" + cell.getCellNum() );
switch ( cell.getCellType() ) {
case HSSFCell.CELL_TYPE_STRING:
String stringcell=cell.getStringCellValue ()+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(stringcell);
// document.add(new Phrase(string));
System.out.print( cell.getStringCellValue () );
break;
case HSSFCell.CELL_TYPE_FORMULA:
String stringdate=cell.getCellFormula()+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(stringdate);
System.out.print( cell.getCellFormula() );
break;
case HSSFCell.CELL_TYPE_NUMERIC:
String string=String.valueOf(cell.getNumericCellValue())+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(string);
System.out.print( cell.getNumericCellValue() );
break;
default:
//System.out.println( "unsuported sell type" );
break;
document.add(new Paragraph(phrase));
document.add(new Paragraph("\n \n \n"));
// step 4: we add a paragraph to the document
} catch (DocumentException de) {
System.err.println(de.getMessage());
} catch (IOException ioe) {
System.err.println(ioe.getMessage());
// step 5: we close the document
document.close();
My Input from MS-Excel file is:
Planning and Tracking Template for Interns
Name of the Intern N.Kesavulu Reddy
Project Name Enterprise Sales and Marketing
Description Estimated Effort in Hrs Planned/Replanned Actual Actual Effort in Hrs Complexity Priority LOC written new & modified % work completion Status Rework Remarks
S.No Start Date End Date Start Date End Date
1 setup the configuration 31/01/2005 1/2/2005 31/01/2005 1/2/2005
2 Deploying an application through Tapestry, Spring, Hibernate 2/2/2005 2/2/2005 2/2/2005 2/2/2005
3 Gone through Componentization and Cxprice application 3/2/2005 3/2/2005 3/2/2005 3/2/2005
4 Attend the sessions(tapestry,spring, hibernate), QBA 4/2/2005 4/2/2005 4/2/2005 4/2/2005
The o/p I'm gettint in .pdf file is:
Planning and Tracking Template for Interns
N.Kesavulu Reddy Name of the Intern
Enterprise Sales and Marketing Project Name
Remarks Rework Status % work completion LOC written new & modified Priority
Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
End Date Start Date End Date Start Date S.No
38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
2.0
38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
3.0
38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
The issues i'm facing are:
When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
and the second issue is:
It is not recognizing the date format..it is recognizing the date in first row only......
Plz Tell me wht is the solution for this...
Regards
[email protected]Don't double post your question:
http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
/Kaj -
Error when Generate PDF File on SAP BW 7.3
Hello friends i have a problem.
I have a report that was built using the web designer deployed on Production Environment. This report has the option for print a PDF file but this process fail. I ran the SAP Support Desktop tool over SAP BW and i find the following error:
I followed this note and the notes internally but i don't find the solution (Parameters of timeout, checking the web service, etc...)
Aditionally i check the "fatal erros" on the NWA and i get 3 types of errors just when i generate the PDF:
The first:
Failed to allocate a connection due to an exception (the
full stack trace is logged below): org.omg.CORBA.COMM_FAILURE: vmcid: SUN
minor code: 2 completed: No
The second:
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 2
completed: No
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 2 completed: No
at
com.sap.engine.services.iiop.server.portable.Delegate.invoke(Delegate.java:179)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at
com.adobe.service._ControlAgentStub.setLogLevel(_ControlAgentStub.java:22)
at
com.adobe.service.ProcessResource.allocateConnection(ProcessResource.java:572)
at
com.adobe.service.ConnectionResource.getConnection(ConnectionResource.java:39)
at
com.adobe.service.J2EEConnectionFactoryManagerPeerImpl.getConnection(J2EEConnectionFactoryManagerPeerImpl.java:117)
at com.adobe.ads.remote.ConnectionFactoryHandler.getConnection(Unknown
Source)
at com.adobe.ads.remote.EJB_XMLFormAgent.getConnection(Unknown
Source)
at com.adobe.ads.remote.EJB_XMLFormAgent.renderAll(Unknown Source)
at com.adobe.ads.operation.support.RemoteRenderer.renderAllRemote(Unknown
Source)
at com.adobe.ads.operation.support.RemoteRenderer.renderAll(Unknown
Source)
at com.adobe.ads.operation.support.RemoteRenderer.renderAll(Unknown
Source)
at com.adobe.ads.operation.Render.renderWithoutCache(Unknown Source)
at com.adobe.ads.operation.Render.execute(Unknown Source)
at
com.adobe.ads.operation.ADSOperation.doWork(Unknown Source)
at
com.adobe.ads.request.ADSRequest.processOperations(Unknown Source)
at
com.adobe.ads.request.ADSRequest.process(Unknown Source)
at
com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
at
com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.sap.engine.services.ejb3.util.BeanMethods.executeReflectMethod(BeanMethods.java:314)
at
com.sap.engine.services.ejb3.jacc.ExecuteMethodPrivilegedAction.run(ExecuteMethodPrivilegedAction.java:38)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.Subject.doAs(Subject.java:396)
at
com.sap.engine.services.ejb3.jacc.ContainerJ2EESecurityProviderBaseImpl.doAs(ContainerJ2EESecurityProviderBaseImpl.java:262)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_RunAs.invoke(Interceptors_RunAs.java:24)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at
com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)
at
com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at
com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)
at
com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:204)
at
com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:710)
at
com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:662)
at
com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:322)
at
com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:199)
at
com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:65)
at
com.sap.engine.services.webservices.servlet.SoapServlet.doPost(SoapServlet.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at
com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
at
com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
at
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457)
at
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at
com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at
com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at
com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at
com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at
com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at
com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
The Third and the last
Exception thrown:
com.sap.ip.bi.base.exception.BIBaseRuntimeException: EXPORT XFA exception when
calling the PDF object after 8882
msec
com.sap.ip.bi.base.exception.BIBaseRuntimeException: EXPORT XFA
exception when calling the PDF object after 8882 msec
at
com.sap.ip.bi.export.xfa.impl.Document.provideContentStream(Document.java:279)
at
com.sap.ip.bi.export.xfa.impl.Document.writeDocumentToByte(Document.java:527)
at
com.sap.ip.bi.export.xfa.impl.PDFConverter.getBinaryResultContainer(PDFConverter.java:183)
at
com.sap.ip.bi.export.impl.ExportController.getBinaryResultContainer(ExportController.java:537)
at
com.sap.ip.bi.export.controller.ExportResult.getExportResult(ExportResult.java:83)
at
com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:70)
at
com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.createPDF(PageExportRenderingRootNode.java:556)
at
com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.doExport(PageExportRenderingRootNode.java:142)
at
com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.processRendering(PageExportRenderingRootNode.java:389)
at
com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.processSnippetRendering(PageExportRenderingRootNode.java:274)
at
com.sap.ip.bi.webapplications.runtime.impl.page.Page.buildRenderingTree(Page.java:1299)
at
com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRenderingRootNode(Page.java:4780)
at
com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRendering(Page.java:4746)
at
com.sap.ip.bi.webapplications.runtime.impl.page.Page.doProcessRequest(Page.java:2750)
at
com.sap.ip.bi.webapplications.runtime.impl.page.Page._processRequest(Page.java:714)
at
com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRequest(Page.java:4802)
at
com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRequest(Page.java:4795)
at
com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.doProcessRequest(Controller.java:1191)
at
com.sap.ip.bi.webapplications.runtime.impl.controller.Controller._processRequest(Controller.java:1047)
at
com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.processRequest(Controller.java:1015)
at
com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.processRequest(Controller.java:72)
at
com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:446)
at
com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:362)
at
com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:26)
at
com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)
at
com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:129)
at
com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
at
com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
at
com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
at
com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
at
com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
at
com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
at
com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
at com.sap.portal.prt.pom.PortalNode.service(PortalNode.java:588)
at
com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:233)
at
com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
at
com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
at
com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:520)
at
com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:201)
at
com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at
com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
at
com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at
com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
at
com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at
com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
at
com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:432)
at
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at
com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at
com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at
com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at
com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at
com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at
com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Caused by:
com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument
Processor failed to process RenderRequest Due to the following Reason
Server
Exception: javax.ejb.EJBException: nested exception is:
javax.transaction.RollbackException: Transaction:with ID 43783 will be
rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
not able to prepare its transaction branch. Returned result from prepare is
TMFAIL.; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException:
javax.ejb.EJBException: nested exception is:
javax.transaction.RollbackException: Transaction:with ID 43783 will be
rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
not able to prepare its transaction branch. Returned result from prepare is
TMFAIL.
at
com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
at
com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentCreationContext.execute(PDFDocumentCreationContext.java:183)
at
com.sap.tc.adobe.pdfdocument.impl.PDFCreationContextImpl.execute(PDFCreationContextImpl.java:103)
at
com.sap.ip.bi.export.xfa.impl.Document.provideContentStream(Document.java:225)
... 83 more
Caused by:
com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException: Server
Exception: javax.ejb.EJBException: nested exception is:
javax.transaction.RollbackException: Transaction:with ID 43783 will be
rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
not able to prepare its transaction branch. Returned result from prepare is
TMFAIL.; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException:
javax.ejb.EJBException: nested exception is:
javax.transaction.RollbackException: Transaction:with ID 43783 will be
rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
not able to prepare its transaction branch. Returned result from prepare is
TMFAIL.
at
com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.invoke(PDFObjectDII.java:381)
at
com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.doSoapCall(PDFObjectDII.java:91)
at
com.sap.tc.adobe.pdfobject.base.core.PDFObject.execute(PDFObject.java:111)
at
com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentRenderHandler.handle(PDFDocumentRenderHandler.java:176)
at
com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
... 86 more
Caused by: java.rmi.ServerException: Server Exception:
javax.ejb.EJBException: nested exception is:
javax.transaction.RollbackException: Transaction:with ID 43783 will be
rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
not able to prepare its transaction branch. Returned result from prepare is
TMFAIL.; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException:
javax.ejb.EJBException: nested exception is:
javax.transaction.RollbackException: Transaction:with ID 43783 will be
rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
not able to prepare its transaction branch. Returned result from prepare is
TMFAIL.
at
com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.processFault(SOAPTransportBinding.java:2075)
at
com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1416)
at
com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:991)
at
com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:945)
at
com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:76)
at
com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.invoke(PDFObjectDII.java:328)
... 90 more
Caused by:
com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException:
javax.ejb.EJBException: nested exception is:
javax.transaction.RollbackException: Transaction:with ID 43783 will be
rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
not able to prepare its transaction branch. Returned result from prepare is
TMFAIL.
at
com.sap.engine.services.webservices.espbase.client.bindings.impl.FaultUtil.buildFaultException_SOAP11(FaultUtil.java:225)
at
com.sap.engine.services.webservices.espbase.client.bindings.impl.FaultUtil.buildFaultException(FaultUtil.java:65)
at
com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.processFault(SOAPTransportBinding.java:2031)
... 95 more
Finally i compare the environments (Production, Dev and QAS) and in DEV and QAS this report works perfectly (generate PDF file correctly). I compare configurations of them and they have the same parameters and values.
The Support Desktop tools set on green all (DEV and QAS)
I found an article about the ADS rfc that use the adobe document service, so i check in the environment production and this doesn't exists (using SM59). I check in the environments DEV and QAS and this doesn't exists, but in both evironments appears just "ADS is enabled" and works perfectly.
I tried to execute the program test of PDF's (FP_TEST_IA_01 and FP_TEST_00) on the three environments and not working on all.
Please help me with this, i am crazy with this!!!
Thanks and greetings.
AlexHi Alex,
follow up as per Note:
1052659
See defaultTrace.trc and create SAP customer message if needed.
cheers
m./ -
How to generate PDF file through reports using forms 6i
Hi all,
I am using oracle 10g with forms 6i and reports 6i.I need to generate pdf file where clicking a button a report should be called and the report should be generated as a .pdf file in the source i have specified(ex. d:\...).Is this popssible with forms?.how can i achieve this.Kindly help me with suitable answers.Thanks :)
Regards
Vidshi,
regarding report, there is a dedicated report forum. you should post there.
but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
In the report you should set the properties like
destype to 'file'
desname to 'path with file name'
desformat to 'pdf' -
Error while Generating PDF file from Datagridview .
Hi every one,
I'm trying to generate pdf file from datagridview,while executing my code getting nullvalue exception..
Here is my code:
private void btnexportPDF_Click(object sender, EventArgs e)
//Creating iTextSharp Table from the DataTable data
PdfPTable pdfTable = new PdfPTable(dataGridView1.ColumnCount);
pdfTable.DefaultCell.Padding = 3;
pdfTable.WidthPercentage = 30;
pdfTable.HorizontalAlignment = Element.ALIGN_LEFT;
pdfTable.DefaultCell.BorderWidth = 1;
//Adding Header row
foreach (DataGridViewColumn column in dataGridView1.Columns)
PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText));
cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
pdfTable.AddCell(cell);
//Adding DataRow
foreach (DataGridViewRow row in dataGridView1.Rows)
foreach (DataGridViewCell cell in row.Cells)
pdfTable.AddCell(cell.Value.ToString());//nullvalue exception
//Exporting to PDF
string folderPath = "C:\\PDFs\\";
if (!Directory.Exists(folderPath))
Directory.CreateDirectory(folderPath);
using (FileStream stream = new FileStream(folderPath + "DataGridViewExport.pdf", FileMode.Create))
Document pdfDoc = new Document(PageSize.A2, 10f, 10f, 10f, 0f);
PdfWriter.GetInstance(pdfDoc, stream);
pdfDoc.Open();
pdfDoc.Add(pdfTable);
pdfDoc.Close();
stream.Close();
Thanks & Regards RAJENDRAN MHi Rajendran,
The second question is about the usage of iTextSharp library, which is not a MS product, please post in their forum for help:
http://support.itextpdf.com/forum
Thanks for your understanding.
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. -
We are not able to generate pdf-files.
Hi ,
I am facing issue to generate pdf files in BI .Can anyone please help me in this. i am getting error "Error while generating pdf"
Regards
Brijesh Prasadhi brijesh,
make sure that ur ADS cofiguration is correct.
also u must know that max pdf page limit is 400.
hope it will help u
thanks. -
Open a generated pdf file in new window
Dear all,
I'm using JDev ADF 11.1.1.4.0
I use the command button method to generate pdf file with JasperReports and I store it into the public folder /reports/test5.pdf. To open this file I can use goLink or goButton with target frame _blank, but how can I open this file automatically after generation?
I was reading about fileDownloadActionListener, but it's not what I need, I just want to open the file in new window browser.
Any help will be appreciated.
Regards,
Wojtek.try this
HttpServletResponse response = (HttpServletResponse) FacesContext
.getCurrentInstance().getExternalContext().getResponse();
ServletOutputStream servletOutputStream;
servletOutputStream = response.getOutputStream();
byte[] bytes = null;
JasperDesign jasperDesign;
try {
jasperDesign = JRXmlLoader.load(ios);
jasperReport = JasperCompileManager.compileReport(jasperDesign);
JRPdfExporter exporter = new JRPdfExporter();
JasperPrint jasperPrint;
jasperPrint =
JasperFillManager.fillReport( jasperReport, parameters, connection );
} catch (JRException e) {
e.printStackTrace();
bytes =
JasperRunManager.runReportToPdf(jasperReport,parameters, connection);
response.addHeader("Content-disposition",
"attachment;filename=sale.pdf");
response.setContentType("application/pdf");
response.setContentLength(bytes.length);
servletOutputStream.write(bytes, 0, bytes.length);
servletOutputStream.flush();
servletOutputStream.close();
context.responseComplete();
} catch (IOException e) {
e.printStackTrace();
} catch (JRException e) {
e.printStackTrace();
}
Maybe you are looking for
-
How do I close a web site and get back to the home page?
When I click the close button on a web page I end up at the desktop with no visible means of using other sites. When I click on the fire fox logo again I am told that I am already connected. When I use the back button instead of the close button to g
-
How do I select multiple text in Pages
I'm using the newest version of pages. In MS office WORD, I can hold the Ctrl key and with multiple klick in the text I can select multiple text. Does pages has the similar function?
-
ADF valuechangeListener Problem
Hi, I am facing problem with ADF selectonechoice valuechangeListener. Problem is i have four valuechangeListeners. those are dependent List Boxes. If i perform action on one valuechangeListener all other VC 's also calling. due to this i am facing pr
-
Well, my power adapter has always buzzed....one of those high frequency sounds, or a low drone sound. However, I could only hear it if I had my ear close to the adapter. Today, for some reason, it was so loud, I heard it while playing music with earp
-
I have set up encumbrance & budget but when I check funds or reserve encumbrance, the encumberance entries are happening but even when the funds are not available i get funds check pass with the result message as " This transaction does not reduce fu