FOP it!

Hi,
I am using Apache FOP tool to convert an xml file into PDF.
I have written up an xsl file.
When working from the cmd prompt I would execute the following as required by FOP
FOP --> Fop -xsl foo.xsl -xml foo.xml -pdf foo.pdf and this works fine.
The problem is when I try to get this same funtionality from within a java programme using Runtime.exec().
This is what I have so far.....
String[] env = {"cmd",
     "/c",
     "fop.bat",
"Fop",
"-xsl",
"styleSheet.xsl",
"-xml",                                   "xmlFile.xml",
"-pdf",
"outputPDF.pdf" };
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(command);
When this code is executed, it either
1) Hangs and nothing happens
2) If it does execute it throws up an error:
"java' is not recognized as an internal or external command, operable program or batch file"
What I noticed were the following:
1) FOP does work when no arguements are passed, i.e it displays a list of options (similar to what you would get if you entered 'javac' at the cmd prompt without the filename.)
2) By calling FOP, I am running the fop.bat file which has the following line in it
java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
Once this is removed, the error is also removed - but I get no output.
Is it because my java programme is calling the batch file which is then calling java again?
Anybody experienced similar problems, or have any hints/tips or suggestions??
Any help, much appreciated.
Thank you.

The most common cause that a process started with exec will hang is that its output is never read.
However, is there any reason why you want to use a batch file to run FOP rather than calling it directly (http://xml.apache.org/fop/embedding.html)?

Similar Messages

  • SVG in pdf created with FOP

    Hello,
    is it possible to include SVG`s to a pdf report, which is created with FOP?
    I read something like Batik....
    Does anybody have any experiences about that?
    Thanks,
    Tim

    Thank you, CtDave, for your speedy reply and for the 'Acrobat Technical Evangelist' knowledge base article. Word 2000 is one of Microsoft's masterpieces - by disabling 'autosave', the application is totally stable, does not require 'activation' by Microsoft. Acrobat 9 enables 'saving' of interactive .pdf forms, a most valuable feature and one much appreciated by anyone completiing such forms. There must be more to this issue than 'incompatibility', because I can create a test Word 2000 document, hyperlink a valid URL, convert to .pdf with Acrobat 9, and the hyperlink works fine in Acrobat 9. When I attempt to do this using a much more complex Word 2000 document, embedded with scores of hyperlinks, these links fail to work following conversion to .pdf with Acrobat 9, but work fine following conversion to .pdf with  Acrobat 6. I can then use Acrobat 9 to open the .pdf created with Acrobat 6, and successfully edit any of these fully functional hyperlinks using the 'Link tool'. I don't know who prepared the 'Acrobat Technical Evangelist' article (AF1908DCd01) - no credits were cited, and I'm far from certain that this authentically belongs to Adobe's knowledge base. So I appreciate your sharing this information with me, but I cannot say that my question has been definitively answered. If you have any further information or tips, please reply in this thread. /rmbrown

  • How to generate one report in multiple formats with FOP or BIP?

    Hi all,
    Is it possible to generate multiple formats of one report in a single "call" using Apache FOP or BI Publisher? (something similar to reports bursting).
    Right now I can only select one format at a time.
    Thank you,
    Ana-Maria

    Hi Ana-Maria,
    When you enable printing on a report region or add a button to download a report query to your application, then you get a single document download. How would you see this working with "multiple formats"? Given that APEX is a development environment, you can pretty much implement anything you like. The built-in printing capabilities in APEX come with an API that allow for customization of the default functionality, e.g. you can use apex_util.download_print_document to dynamically assign report layouts at rumtime or to use you own XML data sources or XSL-FO style sheets. More relevant to you question though, there's also apex_util.get_print_document. What that allows you to do is to generate report documents inside the database and e.g. store them in database tables or email them out to a list of recipients. You can call this API as often as you like to, requesting any combination of available report formats.
    The API function is documented here:
    http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#CHDDECIA
    Regards,
    Marc

  • Generate PDF with FOP : Specific charactar are wrong

    Hello,
    I've finally tested FOP to convert HTML to PDF. It's GREAT.
    I have just a little problem, german specific characters are shown well under html,
    but not under PDF. Any idea about this issue ?

    Hello,
    I've finally tested FOP to convert HTML to PDF. It's GREAT.
    I have just a little problem, german specific characters are shown well under html,
    but not under PDF. Any idea about this issue ?

  • How to embed font into PDF - Listener 2.0.2 FOP configuration

    I need to embed custom font into PDF report in order to print one of Slovenian characters: Č (C with caron) This character shows as # sign when I generate standard PDF report using Apex 4.2.2 and Listener 2.0.2. As far as I understand 14 native Adobe PDF fonts are based on Windows 1252 encoding. This encoding doesn't include mentioned Slovenian character.
    Oracle White paper http://www.oracle.com/technetwork/developer-tools/apex/learnmore/custom-pdf-reports-1953918.pdf says:
    "APEX Listener 2.0.2 supports only the Base-14 fonts. To configure additional fonts, see this document: Apache(tm) FOP: Fonts "
    I was able to embed my custom font into standard Apache FOP report server. Solution consist of saving two files my_font.ttf and my_font.xml to server and update of FOP userconfig.xml file (fonts part where path to saved 2 files have to be specified)
    How can I do this on Apex Listener 2.0.2 ? Where is located userconfig.xml file?
    Simon

    Hello Ivaylo Mutafchiev,
                                           There is no way we can control the fonts in the created PDF / while creating the PDF using the class cl_document_bcs in your PDF creation logic.
    You can try some other approach of creating PDF from the Smartforms OTF stream data .
    Try using the follosing FM for the PDF creation and sending email:
    CONVERT_OTF_2_PDF
    CONVERT_OTF_AND_MAIL
    SO_OBJECT_SEND
    CONVERT_OTF_AND_MAIL_NEW (Try this but this FM still uses  the class that you are using currently. But give it a try and see the results)
    Hope this answers your question.
    Thanks,
    Greetson

  • Error while configuring apache FOP for printing

    Dear All,
    I have a requirement to print a report using custom layout.
    I have installed apex 4.2 by configuring embedded PL/SQL gateway. I used the link:
    http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/overview.htm#CJABBFIH
    And for printing purpose I am installing apache FOP. I have installed oc4j in standalone mode. I followed the link:
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html
    But after setting oc4jadmin password, I am getting following error
    13/01/15 12:52:07 WARNING: EJBContainer.postInit Error generating wrappers for f
    ile:/E:/app/OracleDb/j2ee/home/applications/admin_ejb.jarjava.lang.Instantiation
    Exception: javac.exe not found under C:\Program Files\Java\jre7, please use a va
    lid jdk or specify the location of your java compiler in server.xml using the <j
    ava-compiler .../> tag
    I have JAVA_HOME and ORACLE_HOME system environment variables set up as mentioned in the guide.
    I am not well versed with java.
    Can anyone please throw light on this issue and help me resolve this problem. This is an urgent requirement.
    Thanks and regards,
    Deepika.

    Deepika R wrote:
    13/01/15 12:52:07 WARNING: EJBContainer.postInit Error generating wrappers for f
    ile:/E:/app/OracleDb/j2ee/home/applications/admin_ejb.jarjava.lang.Instantiation
    Exception: javac.exe not found under C:\Program Files\Java\jre7, please use a va
    lid jdk or specify the location of your java compiler in server.xml using the <j
    ava-compiler .../> tag
    I have JAVA_HOME and ORACLE_HOME system environment variables set up as mentioned in the guide.
    Seems like the Java EE container is looking for the Java compiler. Try installing the Java Development Kit (JDK) and respecify your JAVA_HOME accordingly. HTH.

  • PDF: How to get date/time into the heading of a FOP/PDF file?

    Hi!
    What changes do I need to make to the PDF report template or what else can I put in the heading block of the "Print" page so that it will include the date and time the PDF was generated?
    Also how would I add this so that it prints on the bottom of the page like the page number?
    Thanks in advance for any tips, tricks, ideas, examples, etc.!
    Dave Venus

    Hi!
    Perhaps I missed this some place but you can get the value of a page item or application item into the header or footer of a (FOP) PDF report by using a "&<item>." format substitution string. For example I have a 1 time application process that puts todays date in an application item named F106_SYSDATE (F106_ is the application id). Then in my headers I use:
    XXXX Report on: &F106_SYSDATE.
    Simple. Works great! And better yet my users are a little happier! :)
    Thank for everyone's help and suggestions!
    Dave Venus

  • PDF Printing with FOP/Apache Tomcat/J4LFOPServer in windows

    Hi everyone,
    I have been learning to create pdf report with Apex 4.2 and BI Publisher 10 which I have been successful with. Now I like to learn how to create pdf reports using FOP thinking of the customers who will not spend money on BI Publisher. I have gone through the documents and procedures described in Java 4 Less. http://www.java4less.com/apache/fop.php and http://www.java4less.com/fopdesigner/fodesigner.php?info=apex. Configured Apex instance setting accordingly.
    For default layout a tabular pdf report is created.
    I have created an xsl-fo file named Formatted_report.fo on same query and xml file from report query with BI Desktop. But when I try to print a formatted output with Formatted_report.fo report layout it does not work(J4LFOPServer ). but same layout with .rtf template works fine (BI Publisher Print Server).
    Please help
    Hasan Al Mamun
    Programmer/Assistant Systems Analyst
    Bangladesh Bank
    Dhaka, Bangladesh
    Edited by: 913230 on Dec 15, 2012 9:37 AM

    hi,
    if you use the J4lFOPServer as you write, you can set it in debug mode as described here:
    http://www.java4less.com/apache/fop.php?info=faq#debug
    you will then see the XML data and the FO data in the server window. Maybe you can see there if there is an error and that can help you fixing it.
    Jon

  • Problem with number-fields in PDF Output Using FOP

    When generating PDF Output using FOP as described in the utilitiy provided in the HTMLDB Studio http://htmldb.oracle.com/pls/otn/f?p=18326:44:12104450162492733947::::P44_ID:1522
    formatted numbers over 1,000 are resolved as characters (because of the comma) and are therefore right justified. This results in alignment issues for numeric columns.
    Does anyone have any ideas on how to work around this.
    Thanks,
    David

    Hello,
    Your probably going to have to edit the xslt to get the result either by stripping out the comma or by setting that column to explicitly align the way you want it.
    Carl

  • LOGO in PDF file (Apache FOP)

    Hi all...I'm using the Apache FOP PDF printing option with the jsp packaged in the AppEx 3.0.1 install. I would like to put a logo in the header of the generated PDF file. I made a compy of the default generic columns layout and added this to the header section in Page Template:
    <fo:block>
    Test Header Changes
    <fo:external-graphic src="file:///tmp/FastenalLogo.png"/>
    </fo:block>
    The following error is then generated in the logs:
    07/10/31 10:50:44 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    07/10/31 10:50:44 [INFO] building formatting object tree
    07/10/31 10:50:44 [INFO] setting up fonts
    07/10/31 10:50:51 [INFO] [1]
    07/10/31 10:50:51 [WARNING] table-layout=auto is not supported, using fixed!
    07/10/31 10:50:53 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
    07/10/31 10:50:54 [INFO] [2]
    07/10/31 10:50:55 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
    07/10/31 10:50:55 [INFO] [3]
    07/10/31 10:50:55 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
    07/10/31 10:50:56 [INFO] Parsing of document complete, stopping renderer
    I also tried using a URL (with appropriate syntax), but that generated these errors:
    07/10/31 10:44:14 [ERROR] Error while creating area : No ImageReader for this ty pe of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
    07/10/31 10:44:14 [INFO] [3]
    07/10/31 10:44:15 [ERROR] Could not load external SVG: http://epsilon.fastenal.c om:7784/i/FastenalLogo.jpg<Line 1, Column 50>: XML-20190: (Fatal Error) Whitespa ce required.
    07/10/31 10:44:15 [ERROR] Error while creating area : No ImageReader for this ty pe of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
    07/10/31 10:44:15 [INFO] Parsing of document complete, stopping renderer
    Is it not possible to import an external image file into a PDF rendered by the Apache FOP? Any help would be greatly appreciated.
    Thanks,
    Leigh

    Hi Carl --
    I changed the image source to this:
    <xsl:variable name="_SECTION_NAME" select="string('master0')"/>
    <fo:static-content flow-name="region-header">
    <fo:block>
    Test Header Changes
    <fo:external-graphic src="http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg" />
    </fo:block>
    <fo:block xsl:use-attribute-sets="text text_2 text_0 #PAGE_HEADER_ALIGNMENT#">
    <fo:inline xsl:use-attribute-sets="page-header">#PAGE_HEADER#</fo:inline>
    </fo:block>
    </fo:static-content>
    I can access the image through my web browser using the URL, but my log is throwing these errors:
    07/10/31 13:01:18 [WARNING] table-layout=auto is not supported, using fixed!
    07/10/31 13:01:20 [ERROR] Could not load external SVG: http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg<Line 1, Column 50>: XML-20190: (Fatal Error) Whitespace required.
    07/10/31 13:01:20 [ERROR] Error while creating area : No ImageReader for this type of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
    07/10/31 13:01:20 [INFO] [2]
    07/10/31 13:01:21 [ERROR] Could not load external SVG: http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg<Line 1, Column 50>: XML-20190: (Fatal Error) Whitespace required.
    07/10/31 13:01:21 [ERROR] Error while creating area : No ImageReader for this type of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
    07/10/31 13:01:21 [INFO] Parsing of document complete, stopping renderer
    Could the fo block be in the wrong place in the document? I'm not very familiar with XSL-FO and may have just placed it wrong.
    One other thing I just noticed. The webserver is actually using SSL, which on windows systems results in a pop-up about security. If I change the URL to https using the SSL port, I receive a message about security certificates.
    Thanks,
    Leigh
    Message was edited by:
    ljohnson74

  • Issue in PDF printing using FOP

    We have configured Print server as per http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html section #5
    However when we try to print pdf, it says "Page Cannot be found"
    In the print server oc4j log, here is what we see:
    =============
    08/11/18 09:58:03 [ERROR] Logger not set
    08/11/18 09:58:03 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    08/11/18 09:58:03 [INFO] building formatting object tree
    08/11/18 09:58:03 [INFO] setting up fonts
    08/11/18 09:58:03 [INFO] [1]
    08/11/18 09:58:03 [WARNING] table-layout=auto is not supported, using fixed!
    08/11/18 09:58:03 [INFO] area contents overflows area in line Solicitation
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Proposal
    08/11/18 09:58:03 [INFO] area contents overflows area in line Proposal
    08/11/18 09:58:03 [INFO] area contents overflows area in line Project
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Created
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Project
    08/11/18 09:58:03 [INFO] area contents overflows area in line ETECH
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Request
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Stephen
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Serena
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line assessment
    08/11/18 09:58:03 [INFO] area contents overflows area in line station
    08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore,
    08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore,
    08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore
    08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore
    08/11/18 09:58:03 [INFO] area contents overflows area in line Buffalo,
    08/11/18 09:58:03 [INFO] Parsing of document complete, stopping renderer
    ===============
    Is there any setting that we are missing.Any help will be appreciated.

    Mary
    I too use multiple report queries which are then converted to XML and passed to the FOP server, I'm not sure what you want is achievable in the report queries. Alternatively you can use XSL in the style sheet to conditionally display output.
    e.g.
    <fo:block font-size="8pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'URL'">
    <fo:block><xsl:value-of select="CONTACT_TYPE_VALUE"/></fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    Hope that helps
    Paul

  • PDF generation with FOP

    Hello, I'm trying to create a simple XML2PDF generator using FOP but I get the following error after executing:
    "PDFGenerator.java": Error #: 314 : cannot access class org.apache.avalon.framework.logger.Logger; neither class nor source found for org.apache.avalon.framework.logger.Logger at line 61, column 20
    "PDFGenerator.java": Error #: 300 : method setLogger(org.apache.log4j.Logger) not found in class org.apache.fop.apps.Driver at line 61, column 20
    I've tried using log4j but Driver.setLogger won't accept it because:
    "PDFGenerator.java": Error #: 314 : cannot access class org.apache.avalon.framework.logger.Logger; neither class nor source found for org.apache.avalon.framework.logger.Logger at line 61, column 20
    "PDFGenerator.java": Error #: 300 : method setLogger(org.apache.log4j.Logger) not found in class org.apache.fop.apps.Driver at line 61, column 20
    Any ideas?
    Thanks.

    cannot access class org.apache.avalon.framework.logger.Logger
    Add
    avalon-framework-cvs-20020806.jar to Classpath.

  • Header in pdf overlaping body of pdf doc:using fop

    I'm generating PDF file with FOP, but my header contents are not fixed, they keep on changing with each report and with each locale of browser.
    Because of this my static width / height setting like
    margin-top="0.25in"or
    margin-top="0.95in"is failing for some reports, i.e my header is overlapping with body contents.
    Is there a generic solution which can fix this?
    More details:
    Header of pdf is overlapping on the contents of body of pdf, because of which I am not able to see my top contents in my body of pdf document.
    I want to way by which ,if header contents are increased then body should start after the layout of header.
    But in pdf api it is required to set:
    <fo:region-body margin-top="1.25in" margin-bottom="0.50in" />
    <fo:region-before extent="1.25in"/>
    <fo:region-after extent="0.50in"/>which is causing problem bec. when my text in header increases beyond 1.25in which is specified in
    <fo:region-body margin-top="1.25in"then in that case header text overlapps body text.

    When you distribute a form using the distribute process, Acrobat replaces whatever code you placed in the button with its own. You do not need to use the distribution process to set this up. Instead, Reader-enable the form and your button should work like you want.

  • Apache FOP not displaying Cyrillic properly

    Hi,
    I am using apache FOP to generate pdfs' in Russian. I have embedded the fonts into the application but the output is being displayed as html numerical codes.
    The html numerical codes are stored in the database but I am unable to render them properly. I know the fonts are embedded correctly because when I apply the fonts to English text, Russian characters are displayed in the pdf correctly.
    e.g the Russian characters are displayed like this:
    &#1087;&#1088;&#1086;&#1076;... etc
    Why are my codes not displaying properly ? I'm a bit lost at this point.
    thanks in advance

    Hi,
    thanks for the reply.
    To clarify things a bit. My web page is submitting Russian text which is being stored in an Oracle database. This text is being stored in the &#xxxx; format. This formatting is displayed properly in a web browser but I am using Apache FOP to produce a pdf and the Russian text is not being displayed as the Russian characters but as the relative &#xxxx; codes. So these codes are not being translated back into their Russian Cyrillic symbols.
    I have configured FOP and embedded the Cyrillic TTF but these codes are still not displayed. I can apply the Cyrillic font style to English text and Russian characters are displayed so it seems that that cyrillic TTF is embedded properly.
    I am not generating an serialized xml file but rather creating a javax.xml.transform.dom.DOMSource object and with my xsl file I create the pdf code snippet below:
    thanks
    Paul
              //Setup a buffer to obtain the content length
              ByteArrayOutputStream out = new ByteArrayOutputStream();
              // add fonts for Russian and Chinese certificates
              String fontConfig = path + "fonts/fontcfg.xml";
           FopFactory fopFactory = FopFactory.newInstance();
           fopFactory.setUserConfig(fontConfig);
           FOUserAgent foAgent = fopFactory.newFOUserAgent();
              //Setup FOP
              Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,foAgent , out);
              //Setup Transformer
              Source xsltSrc = new StreamSource(new File(xslFile));
              TransformerFactory tFactory = TransformerFactory.newInstance();
              Transformer transformer = tFactory.newTransformer(xsltSrc);
              //Make sure the XSL transformation's result is piped through to FOP
              Result res = new SAXResult(fop.getDefaultHandler());
              //Setup input
              Source domSrc = new DOMSource(xmlDom);         
           //Start the transformation and rendering process
              transformer.transform(domSrc, res);
              //Prepare response
              response.setContentType("application/pdf");
              response.setContentLength(out.size());
              //Send content to Browser
              response.getOutputStream().write(out.toByteArray());
              response.getOutputStream().flush();

  • 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

  • Create PDF from PL/SQL-Interface XML FOP / Oracle BI / Oracle APEX packages

    Hi All,
    I think this is perhaps the most often asked question. And people suggest using PL-FPDF or PL PDF. There is a constraint, I can't use PL PDF because of monetary reasons.
    I wish I could use some method to output PDF from the PL/SQL. I already have a document (word document stored as CLOB). Now, I need to output this file as PDF. I know doing this outside database is easy and advisable, but this what I have been asked to do.
    Is there any method of implementation, using either XML - FOP or Oracle BI publisher or Oracle APEX tools (and not Oracle APEX itself, I know how to do this if the application is built, run using Oracle APEX, but this is plain Oracle HTP).
    Database: Oracle 9.2 running in Windows server.
    Thanks in advance.
    Guru
    Edited by: guru paran on Oct 22, 2009 12:55 PM
    Added tags

    Apologies for that.
    I am looking into ways to use Apex. Like calling the FOP in Oracle OC4J server and generating PDF from it. As I told already, we have this application built on Oracle HTP, we can't move to Oracle Apex now. I can install Oracle APEX and use the tools it offers. No problem in that.
    PL-FPDF is free, but I can see this doesn't help much. What I have is CLOB, not data from table. :(
    I am just looking into different ways one can do this.

Maybe you are looking for