Regarding FOP

Hi,
I know this is not the right forum to post my fop question. if, someone can point me to right direction or can help would really appreciate.
I'm trying to setup fop environment on windows xp machine. I thought I did set up FOP correct but when i run one of the sample which converts xml to pdf I keep getting errors. I'm using fop-0.92beta.
Below is the erro that i get when i run XML2PDF
java.lang.ClassNotFoundException: com.ibm.bsf.BSFManager
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.xalan.extensions.ExtensionHandler.getClassForName(Extensio
nHandler.java:136)
at org.apache.xalan.extensions.ExtensionHandlerGeneral.<clinit>(Extensio
nHandlerGeneral.java:140)
at org.apache.xalan.templates.ElemExtensionDecl.runtimeInit(ElemExtensio
nDecl.java:329)
at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1239)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3070)
at java.lang.Thread.run(Unknown Source)
javax.xml.transform.TransformerException: Could not initialize BSF manager
at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1269)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3070)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.transform.TransformerException: Could not initialize BSF ma
nager
at org.apache.xalan.extensions.ExtensionHandlerGeneral.<init>(ExtensionH
andlerGeneral.java:227)
at org.apache.xalan.templates.ElemExtensionDecl.runtimeInit(ElemExtensio
nDecl.java:329)
at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1239)
... 2 more
javax.xml.transform.TransformerException: Could not initialize BSF manager
at org.apache.xalan.extensions.ExtensionHandlerGeneral.<init>(ExtensionH
andlerGeneral.java:227)
at org.apache.xalan.templates.ElemExtensionDecl.runtimeInit(ElemExtensio
nDecl.java:329)
at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1239)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3070)
at java.lang.Thread.run(Unknown Source)
I have set bsf in classpath provided it throws me this error.
Thanks for your help.
Message was edited by:
agammehta

Hello,
For PDF printing on this scale you would probably be much better off looking at using Oracle Reports.
The XML-XSLT-FOP solution we created is geared more to provding a PDF download to a user during an active HTML DB session.
Carl

Similar Messages

  • How to print my SQL Report

    Hi all,
    I want to print the SQL Report returned from a simple query returning 5 columns, and n number of rows. I don't want to use Oracle BI Publisher as its needs licence to work with. Can anyone let me know which software i can use with my application express. Moreover, do let me know the steps to integrate it in Application Express and finally to an SQL Report. Thanks a lot.
    I am using Oracle Application Express 3.2 + 10G XE
    With Regards,
    Krishna Vashishtha

    Hi Krishna,
    "Report printing is currently not available, there is no print server configured."
    For the above error, run the APEX Administration application and have a look at:
    --Manage Service
    ----Instance Settings
    ------Report Printing
    This might get you started with the built in functionality (I am not sure about this but have a look). You will also probably need to set up this area for FOP and JASPER.
    Sorry, I do not know which is better regarding FOP or JASPER. I have no personal experience with either of them. Perhaps you could try the "Ask Tom" web site. It might have a few hints.
    Can anyone else jump into this one with a pointer to a tutorial or two?
    Cheers,
    Patrick

  • Keep-With-next

    hi,
    i create a PDF file from xml & xsl files
    i use FOP for that in my Java app.
    now i what to use the attribute Keep-With-next in the xsl but the fop do not support it.
    anybody can say anything about that?
    or any knows if fop supports this feature.
    regards

    I recommend the FOP user mailing list for questions regarding FOP:
    http://xml.apache.org/fop/maillist.html#fop-user
    ... and for general information on FOP the following site is just great:
    http://xml.apache.org/fop/

  • 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

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

  • Writing FOP output to BLOB

    Hi Experts !
    i am using Apache FOP to generate PDF from xml. I am able to generate PDF file from the xml by using fol code :-
    public void convertXML2PDF(File xmlfile, File xsltfile, File pdffile)
    throws IOException, TransformerException {
         //OutputStream pdfout = null;
         try {
    // configure fopFactory as desired
    FopFactory fopFactory = FopFactory.newInstance();
    FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
    // configure foUserAgent as desired
    // Setup output
    OutputStream out = new java.io.FileOutputStream(pdffile);
    out = new java.io.BufferedOutputStream(out);
    try {
    // Construct fop with desired output format
    Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
    // Setup XSLT
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer(new StreamSource(xsltfile));
    // Set the value of a <param> in the stylesheet
    transformer.setParameter("versionParam", "2.0");
    // Setup input for XSLT transformation
    Source src = new StreamSource(xmlfile);
    // Resulting SAX events (the generated FO) must be piped through to FOP
    Result res = new SAXResult(fop.getDefaultHandler());
    // Start XSLT transformation and FOP processing
    transformer.transform(src, res);
    } finally {
    out.close();
    System.out.println("Success!");
    } catch (Exception e) {
    e.printStackTrace(System.err);
    System.exit(-1);
    this code writes the output to a file on disk. I am required to write the output to BLOB as File IO is not an option. Can someone please help me out in directing the outputstream to BLOB with no file IO.
    Best Regards !

    Use PreparedStatement.setBlob(int, java.io.InputStream) (with a PipedInputStream/PipedOutputStream pair if you can't get an InputStream from FOP?).
    http://download.oracle.com/javase/6/docs/api/java/sql/PreparedStatement.html#setBlob(int,%20java.io.InputStream)

  • FOP PDF Printing Fails with 500 Internal Server Error in APEX 4.1

    Hi,
    We have Oracle Application Server 10.1.3.5 (Apache + J2ee) installation in our environment. I configured Apache FOP for Apex 4.1 running on Oracle 11.2.0.1 database using" Section 5 - Installing and Configuring Apache FOP - http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html document". I am getting "500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details."
    Do I need to configure Apache FOP only using Standalone OC4J containers as mentioned in the document instead of using j2ee containers installed as part of OAS 10.1.3.5 install? If so, any idea why this restriction?
    Thanks in advance for your help.
    Regards,
    Lavanya

    Thanks Hussein for your response.
    Do you have proper entry in the hosts file?I do have the correct entries in both host and guest OS. As I mentioned, I'm able to ping in command prompt both linux guest (DNS) name and ip address. It is just the login page load. It could be not just R12...may be any other web page as well...
    I don;t know how these DNS Server name is resolved and so on..this networking stuff in windows 7...it may be irrelevant to this forum...but chancing my luck if someone had this issue in the past.
    I believe the main issue with the ping, so once this is fixed you should be able to access the application (assuming it is up and you can access from other machine -- If I understand you correctly, I believe you did from XP).Yes..the same config works fine in XP.

  • Blank PDF in IE with FOP+Tomcat

    Does someone finally know why PDF generated by FOP are not displayed in Internet Explorer ? (they are displayed well in Netscape, or by opening directly the PDF file with IE on the server)
    Regards.
    PS : the problem of the double call to FOP - still with IE - was solved... Just the problem above remains...

    with IE5.5, we solved this by always including the following headers in the servlet response:
    response.setContentType("application/pdf");
    response.addHeader("Content-disposition", "filename=result.pdf");
    response.setContentLength(pdf_byte_size);hope this works for you,
    david

  • Problems with PDF printing, using Apache FOP!

    When I click on "print" link I reseive an empty file!
    I done each step that was described in manual.
    I don't know what to do.
    Best Regards, Kostya Proskudin!

    Ok, let me describe all my actions:
    1. I download from http://archive.apache.org/dist/xmlgraphics/fop/source/ file fop-0.20.5-src.zip.
    2. I extract it.
    3. go to $ORACLE_HOME/oc4j/j2ee and copied folder fop-0.20.5.
    ($ORACLE_HOME - means DB home, is it right?)
    4. Then I add to the end of file $ORACLE_HOME/oc4j/j2ee/home/config/application.xml
    <!-- libraries below added for FOP support -->
    <library path="../../../j2ee/fop-0.20.5/build/fop.jar"/>
    <library path="../../../j2ee/fop-0.20.5/lib/batik.jar"/>
    <library path="../../../j2ee/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar" />
    <!-- above libraries added for FOP support -->
    5. Go to $ORACLE_HOME/oc4j/j2ee/home/default-web-app and copied there apex_for_render.jsp.
    6. Open my apex_dmin .... and fill host (my DB host 10.10.10.4), port (DB port 1521 the same as tns has, is it right?) at least script "/apex_fop_render.jsp" (with "/")
    Thank you!

  • PDF printing by Apache FOP : what are the prerequisites ?

    Hello,
    I'm actually looking for a way to print reports, and I've 2 questions :
    1) If I'm not wrong there are three means : BI Publisher, Apache FOP and an other XSL-FO like Cocoon...
    -> For budgetary reasons, we can't use BI Publisher.
    -> Besides, my company owns the Oracle Standard Edition, so I'm not even sure we can use Apache FOP : in every documentation FOP is deployed in App Server or Enterprise Manager, and we don't have those. OC4J seems installed on our server but it may not work without Application Server...
    -> So is Cocoon the solution ?
    2) We're about installing Apex 4.0. We want to be able to print interactive reports, with aggregations and sums. Does it possible and are there differences between report engines ?
    Thanks a lot !
    Fanny

    Hi Fanny,
    I stand to be corrected, but my understanding regarding OC4J licensing is this.
    OC4J can be downloaded and installed in standalone configuration from OTN under the OTN license, which is fairly restrictive and means that it cannot be used for production or commercial purposes. This applies whether it is installed on the database server or on a separate server. In order to license it you need to buy an OAS or Weblogic license. This is in contrast to Oracle's HTTP server, which can be installed standalone and is included in the database server license provided it is installed on the same server as the database. If the HTTP server is installed on a separate server to the database then it too requires an OAS or Weblogic license.
    My guess for this anomally is that the HTTP server is based on Apache, an open source product and it was originally installed as part of the database up until version 9i. After that it was separated out as a companion product. Where as OC4J is based on a proprietary product called Onion, which Oracle acquired. Commercially going forward, Oracle is pushing Weblogic. If you want a free app server then you can opt for the free version of Glassfish, an Oracle product or Tomcat.
    If you do need a supported environment you can also get Standard One versions of Weblogic and OAS which are considerably cheaper than the Enterprise versions and you can get a supported version of Glasfish for around the same cost.
    You should also note that Oracle BI plus OAS or Weblogic is a complete development and deployment product for business intelligence reporting, whereas Apache FOP and an app server is purely a deployment environment. If you wish to do something more sophisticated than the standard PDF option available in Apex, which is pretty basic, you will need to acquire some sort of XSL-FO production tool. As alluded to previously, Java4less produce a minimally priced one, but there are others in the market place.
    Regards
    Andre

  • PDF PRINTING using Apache FOP and Oracle Containers for J2EE

    Hi,
    I am having major confusion about the pdf printing in Oracle XE and Apex 3.1.2.00.02
    It clearly states that this is an available option on the Oracle website.
    According to Apex there are two options for printing report regions.
    Standard - which is free
    Advanced - which uses BI and requires a licence
    Standard requires me to have Apache FOP (which is provided by Oracle in the Apex release) and Oracle Containers for J2EE (OC4J)
    Where my understanding of all this falls down is the part where I am downloading the Oracle Containers for J2EE and the license agreement states this cannot be used in a production system (only as a protptype). Can anyone clarify this? This is surely a required componenet and for the standard report printing which is supposed to be free.
    My problem is that I need to have a database system on a laptop that will go off site for a number of weeks. We need report printing options.
    Can anyone help with this. im desperate.
    Kind regards
    colin mclay

    no not yet with Application Server.
    I have tried to compare the settings to another installation with a separeted oc4j as described in the howto. But at the moment i found no mistakes.
    If i call the url adresse like:
    http://localhost:18101/fop/apex_fop.jsp
    i get:
    500 Internal Server Error
    Servlet error: java.lang.ClassNotFoundException: fop.apex__fop
    I installed it another time with these settings:
    Web Anwendung= .../fop.war (selected war file from apex install directory)
    Anwendungsname= fop
    URL zuordnen= /fop
    I would like to know if its possible to use the fop.war out of apex install directory with the Application server? In the standalone version (as described in howto) it works. But if you install it there you don't need to define an URL.
    Is the URL /fop correct or what do i have to insert there?

  • PDF Printing with XSL-FO and Apache FOP

    Can anyone show me in the right direction for this? I've been hitting a wall for the past 2 weeks or so and it's really starting to infuriate me. How am I supposed to work this out? Where do I start? Let's say I create a layout file with a WYSIWYG XSL editor, in what format do I export it? XSL, XSLT or XSL-FO? I figured it was XSL-FO, but who knows. I tried them all anyways, but nothing seems to work. I seem to be missing a step or something, 'cause something's definitely not right.
    I created a report query (which actually contains two queries):
    select distinct
    V_Usager.NUMEROPERSONNE NoPersonne,
    V_Usager.NOMUSUEL || ', ' || V_Usager.PRENOM Usager,
    V_Usager.DATENAISSANCE DateNaissance,
    V_Usager.DESCRIPTION Sexe,
    ID_Demande,
    NomNature || nvl2(PrecisionNature,', Précision: ' || PrecisionNature,'') Nature,
    NomCadre,
    decode(IND_Securitaire, 1, 'Oui', '0', 'Non') Securitaire,
    NomRessource,
    DT_Demande,
    Note,
    ltrim(decode(IND_DEMANDEIVAC,1,'Dossier IVAC','') || decode(IND_DEMANDEFLORES,1,', Dossier Florès','') || decode(IND_RISQUECRISE,1,', Risque de crise','') || decode(IND_MENOTTES,1,', Menottes nécessaires','') || decode(IND_ADRESSECONFIDENTIELLE,1,', Adresse confidentielle','') || decode(IND_TELEPHONECONFIDENTIEL,1,', Téléphone confidentiel','') || decode(IND_RISQUEFUGUE,1,', Risque de fugue','') || decode(IND_RISQUEVIOLENCE,1,', Risque de violence','') || decode(IND_MALDESTRANSPORTS,1,', Mal des transports','') || decode(IND_MEDICAMENT,1,', Médicament à remettre','') || decode(IND_SIEGE,1,'',2,', Siège fourni',3,', Siège d''enfant requis',4,', Siège de nouveau-né requis',5,', Siège d''appoint requis') || decode(IND_HANDICAP,1,'',2,', Handicap mental',3,', Handicap physique') || decode(IND_MEDICAMENT,1,', Médicament à remettre','') || decode(IND_JUMELER,1,'',2,', Ne pas jumeler',3,', Ne pas jumeler avec une fille',4,', Ne pas jumeler avec un garçon') || decode(IND_TRANSPORTEUR,1,'',2,', Transporteur féminin',3,', Transporteur masculin') || nvl2(REMARQUEPRECISIONS,', ' || REMARQUEPRECISIONS,''),',') Precisions,
    Disp1.PRENOM || ' ' || Disp1.NOM SaisiePar,
    Disp2.PRENOM || ' ' || Disp2.NOM || nvl2(Elem2.Description, ', ' || Elem2.Description,'') Requerant,
    ltrim(nvl(NOMPERSONNEAVISER,'') || nvl2(TELEPHONEPERSONNEAVISER_1,' ' || substr(TELEPHONEPERSONNEAVISER_1,1,3) || '-' || substr(TELEPHONEPERSONNEAVISER_1,4,3) || '-' || substr(TELEPHONEPERSONNEAVISER_1,7,4),'') || nvl2(TELEPHONEPERSONNEAVISER_2,' ' || substr(TELEPHONEPERSONNEAVISER_2,1,3) || '-' || substr(TELEPHONEPERSONNEAVISER_2,4,3) || '-' || substr(TELEPHONEPERSONNEAVISER_2,7,4),''),',') PersonneAAviser
    from
    TBL_Demande_1,
    TBL_Demande_TRSP_1,
    V_Dispensateur Disp1,
    V_Dispensateur Disp2,
    V_ElemStruct Elem2,
    V_Usager,
    TBL_CadresLegaux,
    TBL_Natures,
    TBL_Ressources
    where
    DemandeID = :P7_IDDEMANDE
    and ID_Demande = DemandeID
    and ID_Usager = UsagerID
    and ID_CLegal = IDCadre
    and ID_Nature = IDNature
    and IND_Ressource = IDRessource
    and ID_Intervenant LIKE Disp1.NumeroDispensateur
    and ID_SaisiePar LIKE Disp2.NumeroDispensateur
    and Elem2.ElemStructID = ID_ElemStructSaisiePar
    select
    to_char(DT_TRANSPORT, 'dd/mm/yyyy') || ' à ' || HR_TRANSPORT || nvl2(DUREE,' durée: ' || DUREE,'') DateTRSP,
    decode(IND_TYPETRANSPORT,1,'Aller',2,'Retour',3,'Aller/Retour') TypeTransport,
    case IND_TYPETRANSPORT
    when 1 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    when 2 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    when 3 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    end AdresseDEP,
    case IND_TYPETRANSPORT
    when 1 then
    DEP_PRECISION
    when 2 then
    DEST_PRECISION
    when 3 then
    DEP_PRECISION
    end ContactDEP,
    case IND_TYPETRANSPORT
    when 1 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    when 2 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    when 3 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    end TelDEP,
    case IND_TYPETRANSPORT
    when 1 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    when 2 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    when 3 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    end AdresseDEST,
    case IND_TYPETRANSPORT
    when 1 then
    DEST_PRECISION
    when 2 then
    DEP_PRECISION
    when 3 then
    DEST_PRECISION
    end ContactDEST,
    case IND_TYPETRANSPORT
    when 1 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    when 2 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    when 3 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    end TelDEST,
    decode(RET_NOM || ', ' || RET_ADRESSE || ', ' || RET_CPOSTAL, ', , ', '', RET_NOM || ', ' || RET_ADRESSE || ', ' || RET_CPOSTAL) AdresseRET,
    RET_PRECISION ContactRET,
    substr(RET_TELEPHONE,1,3) || '-' || substr(RET_TELEPHONE,4,3) || '-' || substr(RET_TELEPHONE,7,4) || nvl2(RET_POSTE,' poste ' || RET_POSTE,'') TelRET
    from
    TBL_Demande_1,
    TBL_Demande_TRSP_1
    where
    DemandeID = :P7_IDDEMANDE
    and ID_Demande = DemandeIDI then created a report layout in XSL-FO with XSLfast, but it won't work at all. I always get the dreaded "corrupted file" when I test my PDF Report... any ideas why it doesn't work? Have I missed something obvious?
    Best regards,
    Mathieu

    Hello Mathieu
    i assume that the default PDF printing is working, but that you want to create some better looking reports and therefore use a different non-generic XSL-FO.
    You can do several things in Apex but you can use the Apache-Fop conversion also indepent from Apex.
    What you need is:
    1) An XML (Data) File. You can get it from your report query when you say export it to XML.
    2) The XSL-FO (Layout) file. THis is the processing instruction that says how convert the XML Data into an XML-FO. You can create it manually or with some tool.
    3) The next step is to render the XML-FO into any output format (pdf, rtf, html)
    The creation of the XML-FO and of the PDF are done by the apache fop converter (cocoon or Batik framework if I remember correctly) in a single process but you can influence it so that both steps are done separately. See also: http://xmlgraphics.apache.org/fop/0.95/running.html
    The advantage is that you usually get much better error messages from the single steps.
    My recommendation would be to do all the steps with a very basic report first.
    Then gradually improve the complexity of the report, the data and the layout.

  • PDF printing with oc4j apache fop not working

    I am configuring PDF printing in Apex 3.1.1. I have set up a shared component report query with a simple query. I have implemented the oc4j standalone and implemented the fop.war as specified in the "pdf printing in Apex" documentation. When I use the test button to verify the output of the report, I am redirected to a 404-page not found and the oc4j instance logs the following:
    08/09/09 12:02:36 [ERROR] Logger not set
    08/09/09 12:02:36 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    08/09/09 12:02:36 [INFO] building formatting object tree
    08/09/09 12:02:36 [INFO] setting up fonts
    08/09/09 12:02:36 [INFO] [1]
    08/09/09 12:02:36 [WARNING] table-layout=auto is not supported, using fixed!
    08/09/09 12:02:36 [WARNING] Sum of fixed column widths 662000 greater than maximum specified IPD 658800
    08/09/09 12:02:36 [INFO] Parsing of document complete, stopping renderer
    Any ideas why this is happening?
    Database is oracle 9.2.0.7
    OC4J standalone 10.1.3

    Hello,
    Just did some more search on this, and apparently it's a more common problem:
    Re: PDF problem FOP mod_plsql: /pls/apex/wwv_flow.accept ORA-22293
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Recover PDF file from FOP

    Hello everybody.
    I have install the OC4J with Apache FOP for printing PDF Files from Apex. All near work good, I have some problems with ORMI server, but sometimes it work good.
    My question is, when I call the the OC4J from Apex it work good and open the Adobe Acrobat and show the PDF file. But I want manage this file, I want take it and can work with it . From where I can read it?
    Regards everybody.

    Not, I must to be wrong. I think that PDF files that I see in /tmp directory was store by the browser download or by the PDF reader application, not by OC4J & FOP.
    I start Enterprise Manager Apliccation Server Control of OC4J and in the property settings of FOP application I see that the temporal directory was /temp (and this directory dont exist in my server) I change this with a new temporal directory, but after stop and restart HTTP Server and OC4J, and send to print a new report nothing was in this directory, it was empty.
    Now I think Im more near solution, but not find yet.
    Regards.

  • Generating PDF file using FOP API in Web Dynpro

    Hi experts,
    I would like to generate PDF files from a WebDynpro application without using Adobe Interactive forms.
    I think that I can export context data to XML stream and then apply XSLT transformation to produce XSLFO format and then pass it to xlfo processor i.e FOP to generate the PDF file.
    Has someone already try this way of generating PDF files?
    Is it a good way of processing ?
    Thanks in advance.
    Thomas.

    hi Thomas,
    You can make use of the iText API to create pdf documents through webdynpro.
    For this you'll have to download  the Itext api jar file.
    Right click your webdynpro project include this jar file using the 'add external jar files'.Now you'll be able to make use of this api in your webdynpro project.
    http://javaboutique.internet.com/tutorials/iText/ .
    The above link will help you in using iText API.
    hope this one helps you.
    Regards,
    Rahul.

Maybe you are looking for

  • Ipod touch no longer showing up in itunes after connecting to laptop.

    I downloaded itunes on my new laptop that runs windows 7.  Since I hadn't updated itunes on the pc, I connected the ipod to my pc (which runs windows xp). A screen pops up that basically alerts me that I have a digital camera installed.   I have upda

  • Itunes 7 WONT Validate INSTALL!

    I downloaded it fine. So now im in the setup, and when it says "validating install" it stops and a screen comes up saying "errors encountered before itunes could configure, please try again later" It always says this! i even tried downloading it agai

  • Video imports as only 1 frame

    I recorded a video on my digital camera and uploaded it to my computer. I wanted to add images into the movie and control the duration of how long the image is displayed before the movie continues. I tried to upload the video into imovie but it only

  • Loading Infoobject Master data

    Hi Freinds, Can u please any body tell me how to load the data from the BW infoobject  to the BPC infoobject for example master data from the 0comp_code to Entity dimension. Thanks Prem

  • BAPI for Changing Applicant Master Data

    Hi, We are trying to access our SAP R/3 remotely for the creation and maintenence of Applicant Master Data. We were able to identify the BAPI "BAPI_applicant_create" for the creation of an applicant but are unable to determine the BAPI required to ma