Use FOP to generate PDF

Hi:
I downloaded the FOP and followed the instruction and had it working on my test box (laptop with windows XP/Oracle10g DB/HtmlDB standalone(no app server)). However, I encountered a java error when I tried to deploy it to Linux box (RedHat ES/Oracle10G DB/HtmlDB standalone(no app server)). The error message is:
500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:
Errors compiling:/opt/app/oracle/product/10.1.0/Db_1/oc4j/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages//_htmldb__fop__render.java
directory does not exist: -J-Xmx1024m
Eclipse Java Compiler 0.319_R21x
Copyright IBM Corp 2000, 2003. All rights reserved.
Usage:
where options include:
Any help is appreciated.

I have the same problem with FOP. The problem come from xerces.jar , xalan.jar versions needed by FOP. Weblogic load a previously version of this jar file.

Similar Messages

  • Using FOP for generating PDF report

    Hi,
    I followed the otn article for generating pdf files uing FOP.
    But I was unable to do so. When I debugged it I found that when the javascript tries to get the XMLFO output from htmldb it gets a blank xml output. I tried to use the exact same url the java script uses ( I got the url by using alerts in java script) I got back an empty xml file.
    I am using htmldb 2.0 on 9.2.0.5.
    Can any one point me to the right direction
    thanks
    amit

    Hi,
    I am using iAS 1.0.2.2.2 (Jserv) it is an Oracle Applications Environment.
    I finished the whole note.
    1. Downloaded the FOP jar files.
    2. Unzipped the jar files in the JAVA_TOP of the Applications environment
    3. JAVA_TOP is already in the class path of the jserv
    4. Added the jsp file to the correct directory
    5. Created the htmdb application with the java script
    6. I put some debugging alerts in the java script
    Now when I click on the pdf link I don't get any output. Because of the debugging statement in the java script I was able to figure out that the java script is not getting any output when it calls back the htmldb for the XML FOP outout.
    I finally tried the URL which the java script uses directly. It came back with an empty xml file.
    thanks
    amit

  • Using cfdocument to generate PDF

    Hi all,
    The actual table is a lot larger than the mock-up one that I am going to show you but this mock-up one does explain the problem.  Please go to http://www.monteandjanicechan.com/test_table.cfm
    The thickness of the grid lines in the table are coming up the way I want in the HTML version.  You can do a View Source to see the actual HTML stuff that gets generated. Now, I put these HTMl codes within the cfdocument tag with format="pdf"; please go to http://www.monteandjanicechan.com/test_table_pdf.cfm.  You will see the inconsistent thickness of the grid line for sneezing and for flu.  To further illustrate my point, I removed the background colors and generate a PDF; please go to http://www.monteandjanicechan.com/test_table_pdf_nocolor.cfm.  The thickness of the grid lines is back to normal.
    This leads me to believe that the background color of one cell somehow goes over to the cell right next to it and cover up the border.  Here are the strange things:
    1) This is ONLY happening in rowspan and ONLY happening from the second row on to the rest of the rowspan.  For example, first Sneezing is okay but the border of the second sneezing is not correct; the first Flu is okay but the borders of the second and the third Flu are not correct.
    2) The background color does NOT cover the border of its own cell at all; it only cover the border of the cell right next to it.
    My question is, how can I fix this issue?
    Any suggestions and pointers are greatly appreciated.

    Two things:
    1) Whether or not this is a bug. The cfdocument style implementation seems to differ from the browser's. It seems that, in cfdocument, the style of an element overrides that of the element preceding it. For example, the style of the row
    <tr>
        <td class="b">Joe Schmo</td>
        <td class="c" style="background-color:#99FF99">Sneezing</td>
      </tr>
    overrrides the style of the row
    <tr>
        <td class="b">John Doe</td>
        <td class="c" style="background-color:#99FF99">Sneezing</td>
        <td class="d_style" rowspan="2" style="background-color:#99FF99">Nose Spray</td>
      </tr>
    Therefore, as there is no d_style in the Joe Schmo row, this row overrides the d_style inherited from the rowspan. This might or might not be a bug. However, it should make you wonder whether or not you've over-designed.
    2) Your styling is inefficient. For example, the following style settings draw 2 borders at the same place
    .c_first {border-right:1px solid black;}
    .d_first {border-left:1px solid black;}
    <td class="c_first" style="background-color:#ffff99">Cough</td>
    <td class="d_first" style="background-color:#ffff99">Vitamins</td>
    If your intention is to emphasize a border, then it is easy to improve your styling. One way to do so is to remove the border-right setting of the first TD, and double the border-left of the next TD. Alternatively, you may double the border-right setting of the first TD, and remove the border-left of the next TD.
    Also, it is best-practice to transfer all the CSS to the style sheet, so that your table contains no CSS code.
    The following HTML is based on what I've just said:
    <html>
      <head>
        <title>Test Table</title>
        <style type="text/css">
        .a_style
            {border-left: 1px solid black;
            border-bottom: 1px solid black;
            border-top: 1px solid black;
            border-right: 1px solid black;
        .a2_style
            {border-left: 1px solid black;
            border-bottom: 1px solid black;
            border-top: 1px solid black;
            border-right: 2px solid black;
        .a3_style
            /* border-left: 2px solid black;*/
            border-bottom: 1px solid black;
            border-top: 1px solid black;
            border-right: 1px solid black;
        .b_first
            {border-right: 1px solid black;
            border-bottom: 1px solid black;
            border-left: 1px solid black;
            border-top: 1px solid black;}
        .b_last
            {border-right: 1px solid black;
            border-bottom: 1px solid black;
            border-left: 1px solid black;}
        .b
            {border-right: 1px solid black;
             border-bottom: 1px solid black;
             border-left: 1px solid black;}
        .c1
            border-right: 2px solid black;
            border-bottom: 1px solid black;
            background-color: 99FF99;}
        .c2
            {border-right: 2px solid black;
            border-bottom: 1px solid black;
            background-color: cccccc;}
        .c_first
            border-right: 2px solid black;*/
            border-bottom: 1px solid black;
            border-top: 1px solid black;
            background-color: ffff99;}
        .c_last
            {border-right: 1px solid black;
            border-bottom: 1px solid black;
            background-color: cccccc;}    
        .d_style
            /* border-left: 1px solid black;
            border-right: 1px solid black;
            border-bottom: 1px solid black;
            background-color: 99FF99;
        .d_first
            border-right: 1px solid black;
            border-bottom: 1px solid black;
            /* border-left: 2px solid black;*/
            background-color: ffff99;}
        .d_last
            border-right: 2px solid black;
            border-bottom: 1px solid black;
            /* border-left: 1px solid black;*/
            background-color: cccccc;}                
        </style>
      </head>
      <body>
    <table border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td class="a_style">Name</td>
        <td class="a2_style">Problem</td>
        <td class="a3_style">Treatment</td>
      </tr>
      <tr>
        <td class="b_first">Jane Doe</td>
        <td class="c_first">Cough</td>
        <td class="d_first">Vitamins</td>
      </tr>
      <tr>
        <td class="b">John Doe</td>
        <td class="c1">Sneezing</td>
        <td class="d_style" rowspan="2">Nose Spray</td>
      </tr>
      <tr>
        <td class="b">Joe Schmo</td>
        <td class="c1">Sneezing</td>
      </tr>
      <tr>
        <td class="b">Joe Six Pack</td>
        <td class="c2" >Flu</td>
        <td class="d_last" rowspan="3">Flu Shot</td>
      </tr>
      <tr>
        <td class="b">Joe The Plumber</td>
        <td class="c2">Flu</td>
      </tr>
      <tr>
        <td class="b_last">Joe Doe</td>
        <td class="c2">Flu</td>
      </tr>
    </table>
    </body>
    </html>

  • Creating template file using ireport while generating PDF(jasperreports)

    Hi,
    I need to create a PDF report with multiple pages.the layout is as follows.
    each page has text on the left and bar graph/pie chart on the right along with some more text below and a table below at the end of the page.
    and so on for all the other pages................
    I have been trying to do this using jasperreports(creating the template file(.jrxml) using ireport)but i have no idea how to create all these pages(the formatting and layout)...any help would be appreciated...
    thanks.

    Hi,
    since 10.1.3 does not have templates I am wondering what you were attempting to do? It appears as if the Faces libraries are not available for the project, so you may want to give us a steb-by-step instruction of how to reproduce the error
    Frank

  • Problem with printing generated pdf.

    Hello!
    I need to print pdf file, that was generated by my application. I am using Apache FOP to generate pdf (xml+xslt). For printing I am using Maxatec MT-150 receipt printer. Seems, that pdf is generated successfully, because I can open it and I also can print it using Windows interface. However, when I am sending it to printer in my JAVA application, printed file is just set of unreadable characters and black lines. I was trying to use different DocFlavors, like DocFlavor.INPUT_STREAM.AUTOSENSE, DocFlavor.URL.AUTOSENSE, but neither had a luck. My code looks like this:
    PrintService receiptPrintService = getReceiptPrinterService(printerName);
    DocPrintJob printJob = receiptPrintService.createPrintJob();
    FileInputStream fis = new FileInputStream(new File("StatusReport.pdf"));
    Doc doc = new SimpleDoc(fis, DocFlavor.INPUT_STREAM.AUTOSENSE, null);
    printJob.print(doc, null);
    private static PrintService getReceiptPrinterService(String printerName) {
              PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
              for (PrintService printService : services) {
                   if (printerName.equals(printService.getName())) {
                        return printService;
              return null;
         }For some reason I cannot set DocFlavor.INPUT_STREAM.PDF, as it throws following exception: sun.print.PrintJobFlavorException: invalid flavor. (despite the fact that I can pdf using the same printer, but through Windows interface)
    So, I really don't see what is the problem. Should I use something in my xslt template to specify content type? currently I have:
    <xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/>Any help would be appreciated.
    Alexander.

    @Dick_Adams
    I am sorry, but what error message are you talking about? The only error I get is "sun.print.PrintJobFlavorException: invalid flavor" and as far as I understand it depends on printer, what is supported and what is not supported. Or am I wrong? I am using standard java.awt.print library.
    @AndrewThompson64, thanks for the tip!)) It does print correctly, but in this case I am not sure I have enough possibilities to control printing. For instance, my pdf was printed as landscape, but I need portrait.

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • Unable to generate PDF files

    D:\dzbat\bin>genpdf
    D:\dzbat\bin>javadoc -doclet com.sun.tools.doclets.mif.MIFDoclet -docletpath d:\
    mifdoclet1.2\lib\mifdoclet.jar -J-Xmx20M -batch dzbatcher -print pdf -d d:\lsmap
    isericsson\docs -sourcepath d:\lsmapisericsson com.mahindrabt.lsm
    Loading source files for package com.mahindrabt.lsm...
    Constructing Javadoc information...
    MIF Doclet version 1.2 beta 2 (build date: 09 Aug 2002)
    I installed mifdoclet1.2 and DZbatcher and tried to generate PDF file with the following batch file
    javadoc -doclet com.sun.tools.doclets.mif.MIFDoclet -docletpath d:\mifdoclet1.2\lib\mifdoclet.jar -J-Xmx20M -batch dzbatcher -print pdf -d d:\lsmapisericsson\docs -sourcepath d:\lsmapisericsson com.mahindrabt.lsm
    It gives the following output and does not genrate the PDF file and does not give any error. Is there any problem with my batch file? Please help me out from this.
    Generating d:\lsmapisericsson\docs\mif\overview.mif...
    Using default stylemap file...
    Template Used: d:\lsmapisericsson\docs\mif\template.mif
    Using default batchmap file...
    Building tree for all the packages and classes...
    Generating d:\lsmapisericsson\docs\fm\package-list...
    Generating d:\lsmapisericsson\docs\mif\com.mahindrabt.lsm.mif...
    Generating default overview page...
    Generating d:\lsmapisericsson\docs\mif\almanac.mif...
    Generating d:\lsmapisericsson\docs\mif\api.book.mif...
    Generating d:\lsmapisericsson\docs\mif\mif-to-fm.batch...
    Executing: dzbatcher -makername framemaker d:\lsmapisericsson\docs\mif\mif-to-fm
    .batch...
    Regards
    Tushar

    I see no problem with your batch file, and the messages
    proceed properly. To troubleshoot this further, I suggest
    you read the email (currently adjacent) titled:
    "Error using MIF doclet to create PDFs".
    It describes several different approaches, including
    generating PS and using Distiller to generate PDF,
    or trying dzbatcher with -v option to echo each
    command to see where it stops.
    Please let us know your results, as this seems to be
    a common problem.
    -Doug Kramer
    Javadoc team

  • PDF Output: Why is "PDF Review" styled different than "Generate PDF"?

    I am new to RH.  I have imported a folder of HTML files (used in an Eclipse Help plugin) into RH9 for HTML as a project. My goal is to produce a PDF document.
    When I generate a PDF from Printed Documentation in the Single Source Layouts pad, many styles are incorrect. I've tried generating to Word and from there to PDF with the same effect.
    However, when I use Create PDF for Review from Project Manager the styles shown in the PDF (fonts, alignment, etc) are nearly perfect! Is the PDF Review option using a different CSS?
    I have tried exploring the CSS specified in the Generate PDF flow, but I am unable to make changes, perhaps due to my massive state of confusion.  So I'm losing hope that I could manually tweak to CSS that I think I use in the Generate PDF flow to appear like the "PDF Review" flow. I specified the same CSS used in the Eclipse Help system, but evidently there must be some defaults built into the Eclipse viewer that are not specified in the CSS we use.
    Thanks in advance,
    Charly in SJ

    Here's what I think is happening. You say PDF review is good but printed documentation gives wrong styles. You also say you assume PDF review uses the Stylesheet (CSS) for each topic, yes it does. Now if that is giving the correct styles it tells you that is what you need when you generate printed documentation.
    When you use a Word template you will get very different styles unless you have set up the template to mirror your CSS. Using the Map to CSS option you have two choices, you can select None when each topic will be printed according to the CSS attached to the topic or you can select one of the CSS files available in the project.
    I suspect that if you select the None option, you will get the same as you are seeing in the PDF review.
    If your document is not going to be worked on by anyone, such as a training department using it as a based document, then the CSS options are fine. If others will be working on it, then the Word template option is better as lists will be true lists and headings will be true heading styles.
    See Printed Documentation on my site.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Sync Text alignment in HTMLEditor and a PDF generated using FOP

    Hi,
    How to sync text alignment in HTMLEditor and a PDF generated using FOP ?
    I tried setting the dimensions of HTMLEditor and PDF in pixels by calculating the size in Pixels for A4 paper size with a particular dpi value.
    Have done the font settings as well. The problem is I see uneven line cuts in the PDF as compared to HTMLEditor.
    Thanks.

    It's not a realistic expectation. You are expecting the PDF produced by whoever provided your FOP implementation to observe exactly the same typographical rules as HTMLEditor. Basically it won't, and there is no way to enforce it. Line breaking/hyphenation/word spacing algorithms can be of great complexity. You are expecting two systems that aren't specified to agree, to agree.

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

  • Including image in FO fille to generate PDF using FOP

    Hi, we are trying out generating PDF files in JDK1.1.7 environment by using FOP.
    While we are testing we are encountering problem with writing images.
    In .fo file if the image is included, it is giving the following exception.
    We are of no clue regarding this. If any one can help in this regard, please help us out.
    Help of any kind is greatly appreciated.
    Following is the Exception:
    java.lang.UnsatisfiedLinkError: parseImage
    at sun.awt.image.GifImageDecoder.readImage(GifImageDecoder.java:558)
    at sun.awt.image.GifImageDecoder.produceImage(Compiled Code)
    at sun.awt.image.InputStreamImageSource.doFetch(Compiled Code)
    at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
    at sun.awt.image.ImageFetcher.run(Compiled Code)
    Error while creating area : Error while loading image file:/C:\fop1.4\src\xml_fe
    ather.gif : class java.lang.Exception - Image error
    Hisun.awt.image.URLImageSource
    Regards
    Ramavardhan.

    java.lang.UnsatisfiedLinkError: parseImage
    means that a native library is missing (ie .dll on windows, .so on most unix, .sl on other unix). The default behaviour is to try and load librarys from the CLASSPATH variable, but apps can try to locate them in other ways.
    asjf

  • 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

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

  • Arabic pdf using FOP

    hello all ..
    i m able to generate the pdf in arabic format using FOP 0.20.4 but the problem is that the data that comes from database (arabic data in oracle database) is not displayed properly and the direction of the data is not correct. Please help me if someone has tried to generate the arabic pdf.
    thanks in advance
    gurpreet singh

    No i m not using iText. I m using FOP. But if u know
    the solution for iText then please help me as i tried
    to use that too but arabic data is not displayed.
    Gurpreet SinghKaaka, yeh dekho. http://itextdocs.lowagie.com/tutorial/#part3
    There are a number of examples using Unicode and fonts- they might be of some help.
    I am not too familiar with iText, so you may want to ask specific questions over there.
    Here is a link for FOP:
    http://www.javaranch.com/journal/200409/CreatingMultipleLanguagePDFusingApacheFOP.html

  • Converting xml file with arabic content to pdf using FOP

    Hello all
    I am trying to convert a dynamically generated xml file in which most of the data comes from the oracle database with arabic content, to pdf using FOP. I have used "Windows-1256" encoding for the xml. If i open the xml generated with the internet explorer the arabic content displays properly but the pdf is not generated and the acrobat reader shows the file as corrupted or not supported. Please help me. Its very urgent.
    Thanks & Regards
    Gurpreet Singh

    There is no direct support for importing RTF from an XML extract. Perhaps feature 1514 "Mapping formatted XML data into multiline field" will be of some use. This was released in 11.0, I believe.
    Essentially you can establish paragraph and certain text formatting like bold and underline when you include the proper token information in the data. I believe this is similar to simple HTML tokens.
    Example: &lt;FIELD>&lt;P>First paragraph of data.&lt;/P>&lt;P>New paragraph with &lt;B>&lt;U>bold and underline text&lt;/U>&lt;/B>. Rest of paragraph normal.&lt;/P>&lt;/FIELD>
    The result is something like this:
    <P>First paragraph of data.</P><P>New paragraph with <B><U>bold and underline text</U></B>. Rest of paragraph normal.</P>

Maybe you are looking for

  • Call sql file from plsql

    Hello, I am stuck for many days in this issue. Hope someone helps me out. I am using Oracle 11. I am writing an utility of Purging the data from the database base on certain criteria. We don't have physical(actual) partitions present on our system(si

  • Understanding the TextLoc.offset property

    I am working on a script that, among other things, converts autonumber strings in a structured document into regular text. One thing that has been surprisingly unintuitive is setting up the TextLoc object that is passed to the AddText() function in o

  • IDOC - Message FIDCCP1 - Error reading company code

    Hi all, I am trying to create a FI document using an IDOC type FIDCCP01. Everything seems to be OK, but always my IDOC gets status 51 and message: Error reading company code Message no. F1309 I am sure that I am using the correct company code, I actu

  • TS3221 how to fix error 0xE800000A in itunes

    and ive tried the whole thing with deleting the lockdown folders that doesnt work

  • Black screen when adjusting anything in photoshop cc. Windows 8

    Black screen when adjusting anything in photoshop cc. Windows 8