Example ARSXFORM.XML files
Examples of an ARSXFORM.XML file show the usage of some of the available XML elements.
ODF transform for Line data to PDF
In this example, a transform named OD_LINE2PDF is defined, which will call the transform program called od_arsxline_cmd defined by the <CmdLineExe> tag. In addition to those values, the od_arsxline_cmd program requires some additional information to be passed along on the command line. The -x P specified on the <cmdlineparm> tag has no meaning to Content Manager OnDemand, so it is just passed through and included on the command line call to the od_arsxline_cmd program.
<?xml version="1.0" encoding="utf-8"?>
<Transforms>
<transform>
<TransformName>OD_LINE2PDF</TransformName>
<TransformDescription>ARSXLINE Line Data Transform for OnDemand</TransformDescription>
<OutputMimeType>application/pdf</OutputMimeType>
<OutputExtension>pdf</OutputExtension>
<CmdParms>
<CCANSI>-a A</CCANSI>
<CCMACHINE>-a M</CCMACHINE>
<CCNONE>-a N</CCNONE>
<CODEPAGE>-c</CODEPAGE>
<LINEDELIMITER>-d</LINEDELIMITER>
<RECORDFORMATFIXED>-f F</RECORDFORMATFIXED>
<RECORDFORMATVARIABLE>-f V</RECORDFORMATVARIABLE>
<RECORDFORMATSTREAM>-f S</RECORDFORMATSTREAM>
<FONTNAME>-F</FONTNAME>
<PAGEHEIGHTPIXELS>-h</PAGEHEIGHTPIXELS>
<RECORDLENGTH>-l</RECORDLENGTH>
<MARGIN>-m</MARGIN>
<FONTSIZE>-n</FONTSIZE>
<PRMODENONE>-p N</PRMODENONE>
<PRMODESOSI1>-p 1</PRMODESOSI1>
<PRMODESOSI2>-p 2</PRMODESOSI2>
<PRMODESOSI3>-p 3</PRMODESOSI3>
<LINEPERPAGE>-q</LINEPERPAGE>
<LINEPERPRINTPAGE>-Q</LINEPERPRINTPAGE>
<LINESPACINGFACTORDIV100>-s</LINESPACINGFACTORDIV100>
<TRCNO>-t 0</TRCNO>
<TRCYES>-t 1</TRCYES>
<PAGEWIDTHPIXELS>-w</PAGEWIDTHPIXELS>
<INPUTFILE>-i</INPUTFILE>
<OUTPUTFILE>-o</OUTPUTFILE>
</CmdParms>
<CmdLineExe>od_arsxline_cmd</CmdLineExe>
<OperationName>Line to PDF Exe</OperationName>
<Passthru>
<cmdlineparm>-x P</cmdlineparm>
</Passthru>
</transform>
</Transforms>
ODF transform for AFP data to PDF
In this example, a transform named OD_AFP2PDF is defined, which will call the transform program called afp2pdf defined by the <CmdLineExe> tag. From this configuration, the transform interface will recognize that the transform program requires OUTPUTFILE and INPUTFILE information from Content Manager OnDemand, and will set those values on the command line using the options specified in each related XML tag. In addition to those values, the afp2pdf program requires some additional information to be passed along on the command line. The -l specified on the <cmdlineparm> tag has no meaning to Content Manager OnDemand, so it is just passed through and included on the command line call to the afp2pdf program.
<?xml version="1.0" encoding="utf-8"?>
<Transforms>
<transform>
<TransformName>OD_AFP2PDF</TransformName>
<TransformDescription>Ricoh AFP2PDF Transform</TransformDescription>
<OutputMimeType>application/pdf</OutputMimeType>
<OutputExtension>pdf</OutputExtension>
<CmdParms>
<RESOURCEFILE>-r</RESOURCEFILE>
<OUTPUTFILE>-o</OUTPUTFILE>
</CmdParms>
<CmdLineExe>/opt/afp2pdf/afp2pdf</CmdLineExe>
<OperationName>AFP2PDF Exe</OperationName>
<Passthru>
<cmdlineparm>-l</cmdlineparm>
</Passthru>
</transform>
</Transforms>