0 Replies Latest reply: Apr 10, 2014 5:06 AM by 1023950 RSS

    What are the tags allowed in the XML passed to FOProcessor.setdata()

    1023950

      hello

       

      I am trying to convert a RTF file to a PDF

       

      RTF file I am given is having tags like these {:NAME}, {:ADDR} instead of Text Form Areas

       

      when I created a XSLT from using RTF processor it created tags like this

       

      <fo:inline height="11.0pt" font-family="Arial" white-space-collapse="false" font-size="11.0pt">{:NAME}</fo:inline>

       

      can you tell me a way to feed into this XSLT since its not having the "value of select tags" (<xsl:value-of select=".//NAME" xdofo:field-name="PERSONNAME"/>):

       

       

      This is my Code to convert RTF to XSLT:

                      RTFProcessor rtfprocessor;

              try {
                  rtfprocessor = new RTFProcessor(RTFTEMPLATE);
                  rtfprocessor.setOutput(XSLTOUT+fileName);
                  rtfprocessor.process();

      }

       

      Below is the code I am using to convert XSLT to pdf:

       

         byte[] b = constructXML( name, address, title,surname, letterDate, company).getBytes();

                 FOProcessor processor = new FOProcessor();

        processor.setData(new java.io.ByteArrayInputStream(b));     

        processor.setTemplate(XSLTEMPLATE);

        processor.setOutput(LOCATION+pdfName);

       

        try {

         processor.generate();

        }

      catch (XDOException e) {

                          e.printStackTrace();

       

      Thanks

      Navpreet