APEX and iText PDF generation

Hi,
Has any one used iText in apex to generate PDF documents in APEX. The reason for me to look for a solution to generate PDF documents like invoice, Purchase Order for different customer in different format. Since the online hosting companies have different reporting services like (JasperReport/Oracle BI publisher etc) it is a pain full procedure to have rtf and XML-FO. If I use iText within the PL/SQL procedure which will generate PDF document by supplying PDF form and XML data.
In this case the client can create there PDF form which can be filled by XML data.
Thank you.

I had a look but seems like I have use command line to execute the process. You do.
I want to generate from PL/SQL. My package does. Mind you -- I have to make use of a host command to perform the actual integration. When a process 'prints' to a PDF, it supplies the PDF form to be filled in, the specific fields to be filled in, and the values for the fields. I write these values out to an FDF file for the appropriate PDF form on the OS, then call PDFTK via a host command to integrate the blank PDF and the newly-created FDF into a 'filled' PDF form. I then email the completed PDF file to the user that requested it.

Similar Messages

  • Servlet and iText pdf creator

    Hi,
    I have seen that all examples using iText and servlets send the pdf through the browser by using:
    response.setContentType("application/pdf");
    PdfWriter.getInstance(document, response.getOutputStream());
    I would need that besides send that info, the servlet should store a pdf file on the local system where the web server is installed. Is that possible?
    Could you please attach a full example code?
    Thank you in advance.

    If you want to send output to two simultaneous output streams (one for the browser and the other to save the PDF in the server's filesystem), then the following may help:
    final public class Tee extends OutputStream {
        // Class Variables //
        /** First output stream to write to */
        final private OutputStream first;
        /** Second output stream to write to */
        final private OutputStream second;
        // Constructors //
         * Creates a Tee that will output to the two streams specified.
         * @param     first          First stream to write to
         * @param     second          Second stream to write to
        public Tee(final OutputStream first, final OutputStream second) {
            super();
            this.first = first;
            this.second = second;
        // Public Methods //
         * Writes the specified byte data to both streams.
         * @param     target          Data to output
         * @throws     IOException
         * @see          OutputStream#write(int)
        final public void write(final int target)
             throws IOException {
            first.write(target);
            second.write(target);
         * Flushes the data buffer of both streams.
         * @throws      IOException
         * @see          OutputStream#flush()
        final public void flush()
             throws IOException {
            first.flush();
            second.flush();
         * Closes both streams.  If an exception occurs when the first stream is closed, the
         * second stream will be closed before the exception is thrown.
         * @throws     IOException
         * @see          OutputStream#close()
        final public void close()
             throws IOException {
            IOException thrown = null;
            try {
                first.close();
            catch (IOException e) {
                thrown = e;
            try {
                second.close();
            catch (IOException e) {
                thrown = e;
            if (thrown != null) {
                throw thrown;
    }- Saish

  • How can I speed up PDF generation?

    I am working on 2 manuals in Frame 10, unstructured. I have installed all the latest FM patches. The smaller manual is 270 pages with 200 graphics inserted by reference. It takes 2.5 hours to "Save as PDF." The larger manual is 500 pages, 250 graphics and takes 3 hours to "Save as PDF".
    I have converted graphics to smaller .jpg files. I have freed up as much space on my PC as possible - it has 4GB memory and 300 GB hard drive space available, dual processor with i3 chip. I delete Temp files and reboot before creating PDF.
    If I turn off graphics (Esc+v+v), the PDF is created in just a few minutes.
    What else can I do to produce a complete PDF with graphics in a reasonable amount of time?

    I am a lone writer working on a single PC. No network drives. I open all files in the book before creating PDF.
    Many of the graphics are product photos - how to assemble, etc. I was provided with .psd and .jpg versions. Originally inserted the .psd ones, but then consultant advised us to use the .jpg instead. PDF generation is extremely long either way. Also had numerous huge .tif files that I saved to much smaller .jpg.
    Manuals will be localized and printed. What type of graphics are advised in this case - for good print quality and efficient PDF generation?  
    doolie
    Date: Thu, 26 Jan 2012 11:33:15 -0700
    From: [email protected]
    To: [email protected]
    Subject: How can I speed up PDF generation?
        Re: How can I speed up PDF generation?
        created by Error7103 in FrameMaker General Discussion - View the full discussion
    Are the Frame files and/or the imported objects coming from network servers? If so, you might get a speed up by saving to manual to the local machine prior to printing, and printing to PostScript, where the .ps file is on the local machine. Then Distill separately (if you have the full Acrobat product). Distilling separately* at least frees up Frame for that part of the rendering. I have converted graphics to smaller .jpg files. From what? And I wouldn't have bet that using JPEG would help. The files may be smaller, but they still need to be filtered for export to Ps or PDF, and if they are raster, they may be subject to further processing during PDF generation based on the subsampling specified. You might try sending the objects as EPS (which requires minimal processing into Ps), and you might try making sure that raster images are already at the desired dpi, and require no further downsampling in the rendering flow.

  • APEX 4.1 - APACHE FOP PDF generation problem.

    Hi all,
    I'm having problem with PDF generation using APACH FOP on OC4J.
    When I test my print server as described here:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    everything works without problem. But when I upload my Layout to APEX and try to generate PDF from apex I'm getting error:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:549)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1375)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:337)
         at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:714)
         at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:322)
         at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
         at apex_fop._jspService(_apex__fop.java:71)
         [SRC:/apex_fop.jsp:21]
    I could see similar post here:
    Handling Special characters in call to apex_util.download_print_document
    But it doesn't explain my case as it's crashing even when I generate empty pdf(no data so no special characters, only empty XML file with no data should be sent to print server)
    Is there any way to see what xml is sent do print server for processing? That could eventually show where is a problem.
    Palo

    My mistake, there was really an "&" character in my template. now when I replaced it with %26 it works.
    However I would be still interested if there is a way to see what data is APEX engine sending to print server cause it will help me to find this kind of errors.
    Palo

  • PDF generation on APEX applications Reports

    Hi all
    PDF generation on APEX applications is Facilitated in Interactive Reports in the Down load Option,
    When we Choose this pdf Down load Option,this is not Working.
    why this is not Working?
    But this Down load Facility in Interactive Reports is Working fine with Excel Format
    Do we need to Install & configure FOP/Cocoon or BI Publisher to Enable PDF Format DOWNLOAD
    OR
    any Other Work around Availble for this
    please Suggest
    tahnks Alot

    To generate PDF file from APEX reports, you either have to install & configure Bi Publisher or FOP/Cocoon..
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    There are alternatives (jasper reports, pl/pdf), but they are also items you need to install and configure..
    Thank you,
    Tony Miller
    Webster, TX

  • Create pdf using a .xdp file and iText

    Hello experts,
    my question is regarding the generation of a pdf file using a .xdp file and the iText API. I have an .xdp file of a designed form and I would like to generate a pdf using this file, the iText API and the context.
    Is it possible? are there any tutorials or examples? any help is welcome!
    Thanks in advance.
    Alperen

    Hi,
    Please check the following links:
    How to import an xdp-File to Web Dynpro Interactive Forms
    https://wiki.sdn.sap.com/wiki/display/XI/CODE-CreateaPDFFileviatheiText+Library
    Sample project how to use Itext (pdf) in webdynpro
    Itext PDF Creation
    Regards.
    Rajat

  • Create PDF report with APEX and Oracle 11g doesn't work

    Hi everyone,
    I have a problem with the downloading of PDF reports from APEX with Oracle 11g.
    When I try to download a PDF, Acrobat Reader says it can not open the file.
    I have done the same test in an environment with APEX and Oracle 10g and it works perfectly.
    Does anyone know if there is a known bug for version 11g.
    Thank you very much.

    Hi Munky,
    I open the generated file the Notepad++ I can read the next message:
    *<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1>OracleJSP:*
    An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param <code>debug_mode</code> to "true" to see the complete exception message.</BODY></HTML>
    I have not idea can I solve the problem.
    Have you got any solution for this problem??
    Thank you so much.
    Victor Muñoz.

  • PDF generation , FOP and Oracle Express DB

    Am I right in assuming that you can't use the FOP PDF generation utility with Oracle Express Edition Database? i.e. no oc4j directory etc..
    regards
    Paul P

    Am I right in assuming that you can't use the FOP PDF generation utility with Oracle Express Edition Database? i.e. no oc4j directory etc..
    regards
    Paul P

  • Apex and Jasper Report Integration

    Hi all,
    If someone was interested to try another way for pdf generation from an apex application can try our Report Chunker based on Jasper Report and now avaiable to download on :
    [http://sourceforge.net/projects/reportchunker/]
    The latest release includes an APEX DEMO APPLICATION.
    Any feedback will be welcome.
    Edited by: NeOGeO on 23-set-2008 1.28

    A few points here.
    Documentation:
    You need to state what permissions are required.
    eg create table, create sequence, create trigger, read/write directory.
    You should also mention the authentication method you use.
    Fortunately I could figure that out myself.
    Now bearing in mind I am your typical target audience, I have no knowledge of Jasper reports, and very little knowledge of java and xml. So I'm now stuck as I don't know what to use for the xml layout or how to write my report.
    At least provide an example xml layout, a example report and a link to where the reports cab be obtained.
    If we need to have anything on the system before we start (eg jasper reports) then this should also be stated (including minimum required version)
    Thats it. Unfortunately I can't go any further until I know more.

  • Oracle 11g with cocoon.war and glassfish pdf problem?

    Hi all,
    I m install oracle 11g express on CentOS 5.6 OS, oracle apex listener 1.1.2.131.15
    glassfish v2 and cocoon 2.1.11 and connect glasfish with oracle apex and working fine
    Problem begin when I was build cocon xml and deploy cocoon.war on glassfish,
    adding fop_post on cocoon/fop_post (as describe on http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html) but pdf dont work!
    (I was setting all this steps on open suse 11.2-32 byte machine and ubuntu 8.04-32 byte and pdf work ok )
    Is there any idea whats happen whith this pdf error?
    Is problem with 64 byte some specific settings, with java jdk, cocoon, glassfish or something on oracle 11g apex ?
    Gordan
    Edited by: useruseruser on Jun 20, 2011 9:49 PM

    Udo wrote:
    Hi Gordon,
    what kind of error do you receive? And did you receive any error when building the cocoon.war with the 64bit Java? And which JDK are you using anyway?
    -Udo
    >Hi Gordon,
    what kind of error do you receive? And did you receive any error when building the cocoon.war with the 64bit Java? And which JDK are you using anyway?
    -Udo
    Hi Udo
    When I make export to pdf from report theres error Could not open file ///tmp/Report-1.pdf
    I was installing on OpenSuse 11.3 oracle 11g 64 based OS and oracle
    next I was download and unzip and build cocoon2.1.11 as bash build.sh war -- and in build folder theres make cocoon.war
    next I was download apex listener and from command line I was type java -jar apex.war
    next download and build glassfish v2 and this two war files I was deploy on server, and making username as describe
    in apex listener conf documentations, so apex working good over glassfish only cocoon cant create pdf
    giving me error Could not open file ///tmp/Report-1.pdf. and jdk is 1.6 26 64 byte
    error messages from open suse 11.3 64 byte on cocoon/fop_post>
    An error has occured
    org.apache.cocoon.ProcessingException: Unknown request object encountered named template : null
    Cocoon stacktrace[hide]
    Exception in StreamGenerator.generate()
    context://fop_post/sitemap.xmap - 17:32     <map:serialize type="xml">
    context://fop_post/sitemap.xmap - 13:33     <map:generate type="stream">
    Unable to get transformer handler for cocoon://fop_post/xsl
    context://fop_post/sitemap.xmap - 38:37     <map:serialize type="fo2pdf">
    context://fop_post/sitemap.xmap - 31:39     <map:transform>
    context://fop_post/sitemap.xmap - 30:38     <map:generate>
    context://sitemap.xmap - 1055:92     <map:mount>
    Java stacktrace[show]
    org.apache.cocoon.ProcessingException: Unknown request object encountered named template : null
         at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:122)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
         at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
         at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414)
         at org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:306)
         at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:241)
         at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:331)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:398)
         at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:718)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:501)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:453)
         at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
         at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
         at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
         at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
         at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
         at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
         at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Java full stacktrace[show]
    org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon://fop_post/xsl
         at <map:serialize type="fo2pdf"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:38:37
         at <map:transform> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:31:39
         at <map:generate> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:30:38
         at <map:mount> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/sitemap.xmap:1055:92
         at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:339)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:398)
         at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:718)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:501)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:453)
         at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
         at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
         at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
         at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
         at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
         at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
         at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception when creating Transformer from cocoon://fop_post/xsl
         at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:300)
         at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:331)
         ... 56 more
    Caused by: org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate()
         at <map:serialize type="xml"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:17:32
         at <map:generate type="stream"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:13:33
         at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:424)
         at org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:306)
         at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:241)
         ... 57 more
    Caused by: org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate()
         at <map:serialize type="xml"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:17:32
         at <map:generate type="stream"> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/fop_post/sitemap.xmap:13:33
         at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:163)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
         at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
         at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
         at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414)
         ... 59 more
    Caused by: org.apache.cocoon.ProcessingException: Unknown request object encountered named template : null
         at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:122)
         ... 63 more
    The Apache Cocoon Project
    and other error from CentOS 64 byte same cocoon/fop_post >
    Resource not found
    org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: fop_post/
    <map:mount> - context://sitemap.xmap - 1055:92
    Cocoon stacktrace[hide]
    No pipeline matched request: fop_post/
    context://sitemap.xmap - 1055:92     <map:mount>
    Java stacktrace[show]
    org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: fop_post/
         at <map:mount> - file:///home/nadrog/glassfish/domains/domain1/applications/j2ee-modules/cocoon/sitemap.xmap:1055:92
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:149)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
         at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
         at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
         at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
         at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
         at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
         at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
         at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    The Apache Cocoon Project
    All this steps above, I was making with open suse 32 byte, with oracle 32 byte 10g with
    apex listener, cocoon and glassfish and apex and pdf export working good.
    is there any idea, whats solution for 64 byte cocoon, apex listener oracle express pdf export?
    regards
    Gordan
    Edited by: useruseruser on Jun 23, 2011 9:09 AM

  • OOTB PDF generation

    We are looking for a way to use the ootb pdf generation in Oracle BPM10.3 to create an attachment in a pdf file type from a business object.
    Anybody have any insights to this?

    1) What happens when we don't want to create a templateFile. How do we create a PDF then?2) What happens when there are repeatable fields in a group inside the templateFile which are completed at runtime. For e.g. we have a field which calculates total cost by adding all added costs to the table. Now these added costs can be a total 5 different costs or even 10 different costs. How do we accept this and set it as form field in the PDF as an array of costs? Again, there is no OOTB solution and what I described is just one approach. Whenever possible, I'll use a template file. It's quick - the code's already written to support this. As you point out, it's not the answer for everything. You can build PDF files without a template (again using iText as the PDF API is just one approach that will work). This will mean some Java development on your end to write the code necessary to build them from scratch.
    3) If we indeed are using this templateFile, where do we place it which deploying our code onto the server and what would be the access path to it? Will it be on Weblogic or physically located on the server or where4) Finally how do we get the contents in Binary format of this generated pdf file because the method Fuego.Lib.Attachment.create(contents : null, name : targetFile, description : "test"); accepts contents only in Binary format? xmpMetaData of the PDFStamper although in Binary format is ready only? So we cannot put it in the contents field of Fuego.Lib.Attachment.create(contents : null, name : targetFile, description : "test"); ?
    So what should we put?
    Even mailAttachments.extend(source : null, fileName : "test.pdf") requires source as Binary Contents. How we do this?? One approach is to put the binary for the PDF files in a database. If you have a content management system, use that to store the files.
    Dan

  • I am new to the Apple world and yesterday i bought an APPLE IPAD (4th Gen) .. My Question is "Can we connect a flash drive to the IPAD4 and transfer pdf files to and fro"??

    Hi all,
    I am a newbie to the Apple World and Yesterday I bought an APPLE IPAD (4th Generation).. My primary purpose is to read pdf files on IPAD4.
    I have 3 questions ..
    1. Can we connect a usb flash drive to the ipad4 and read pdf files from it?
    2.  I am using windows since 2000 and accustomed to the file explorer and file management in it. Can I get such kind of environment in IPAD4 ?
    3. Do I have to sync the IPAD too often?
    Regards,
    Manikanth

    Sandisk has recently come out with a device
    http://www.sandisk.com/products/wireless/flash-drive/
    Never used it so I can't comment on whether or not it works well. There are very few devices out there that allow file transfer without going through iTunes or via the internet. IMHO, one real weakness of the iPad, great for consuming data, however not very fully featured when it comes to moving data around, especially if that data doesn't come from iTunes or other online source.
    there is also a device called a WiDrive
    http://www.kingston.com/us/usb/wireless
    that is also a wireless drive for iPads.

  • Very slow PDF generation when conditional text is hidden in FM 9.0

    I am working on 96-page chapter of a larger book. A 7-page section of the chapter needs to be hidden until the next release, so I hid it with conditional text. After doing this, the "Save as PDF" printing process goes from taking 6-7 seconds to taking several minutes. If I unhide the conditional text in the same session, printing is very quick again.
    I have no problem generating very PDF files with the PDF printer in other applications (Word, PowerPoint). The issue is specific to FrameMaker and the use of conditional text. What might be causing this?
    I am using FrameMaker 9.0p255 and Distiller 9.0.
    - Chris

    Hi Jeff,
    These were good suggestions to try. Saving the document first has no effect on PDF generation.
    However, I did find that printing to the Adobe PDF printer remains fast when the conditional text is hidden. That's quite an interesting finding! I did also notice that these two methods of PDF generation aren't identical:
    "Save as PDF" opens an Adobe Distiller window, while printing to the Adobe PDF printer opens a different "Creating Adobe PDF" progress box (looks like it's from the printer driver itself).
    "Save as PDF" generates a 1188k PDF file, while printing to the Adobe PDF printer generates a 1049k PDF file.
    "Save as PDF" defaults to placing the PDF in FrameMaker's working directory, while printing to the Adobe PDF printer defaults to saving to the last place to saved a printed PDF file (awkward when working with multiple directories, as I often do).
    When I do a "Save as PDF", FrameMaker does still spool to the PDF printer. It is this spooling that takes a long time. Once spooling is complete, then the Distiller window opens and the PDF is created very quickly.
    I would still like to get "Save as PDF" working since it knows where to place the PDF file. No solution to the runtime yet, but at least there is progress...

  • Uploading PDF in to BLOB and Retrieve PDF from BLOB

    hi
    I have recently started working in apex and run into a bump while trying to handle PDF file Attachments and BLOBs.
    I am trying to upload a PDF file into BLOB database Column using APEX, and later view this file from DB.
    I require assistance on how to upload PDF file into BLOB, and how i can later view this inside the browser window, using APEX
    thanks

    Maybe this blog post can help you.
    Regards,
    Sergio

  • PDF generation with FOP throws NPE

    Hi,
    Stack trace
    at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:769)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:342)
    I'm using standard Java 1.4 API calls to create a PDF document from a DOM with Apache FOP 0.20.5.
    The servlet is deployed to Oracle 10g Application Server 9.0.4.0.0. With Tomcat 4.1.30 the same code executes without exceptions
    Because I have to port our web application to Oracle for a new customer it is important for me to get this fixed soon.
    Thank you
    Eckard

    Light at the end of the tunnel: It seems to work when FO and PDF generation are separated. Until now the DOM was piped into FOP who internally created the FO from SAX events and then seems to parse it again to create PDF.
    I separated the two steps: There is no problem in FO generation, but due to a namespace problem subsequent parsing fails
    ("org.apache.fop.apps.FOPException: null:2:10 Root element is missing the namespace declaration: http://www.w3.org/1999/XSL/Format")
    Now the correct exception comes up. Whether FOP SAX event listener is buggy or XML parser's error handling has a problem, I don't know
    Thank you anyway
    Eckard

Maybe you are looking for