Configuring the Line2PDF conversion viewer (IBM Content Manager OnDemand)

You can use the Line2PDF conversion viewer as an alternative to the Line Data applet viewer to view your line data documents.

Before you begin

With IBM Content Manager OnDemand Version 9.5, ODWEK Version 9.5 or later is required.

Procedure

To configure the Line2PDF conversion viewer:

  1. Create and configure the transform.xml file.
    1. Specify custom transform settings under the TransformName element in the transform file. Use the name format line2pdf-application group name-application name.
    2. Specify default transform settings under another TransformName element in the transform file. Use the name format line2pdf-default.
    Example transform.xml file with application group name testAG and application name testAPP on a Windows system:
    <?xml version="1.0" encoding="utf-8"?> 
    <Transforms>   
     <transform> 
         <TransformName>line2pdf-testAG-testAPP</TransformName>
         <TransformDescription>Line2PDF transform for application group 
    testAG and application testAPP</TransformDescription>
         <OutputMimeType>application/pdf</OutputMimeType>
         <OutputExtension>pdf</OutputExtension>
         <ODFileType>L</ODFileType>
         <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>C:\\Program Files\\IBM\\OnDemand\\V10.1\\bin\\arsxline.exe</CmdLineExe>
        <OperationName>arsxline</OperationName>
        <Passthru>
            <cmdlineparm>-x P</cmdlineparm>
        </Passthru>
       </transform>
       <transform>
         <TransformName>line2pdf-default</TransformName>
         <TransformDescription>Default Line2PDF transform</
    TransformDescription>
         <OutputMimeType>application/pdf</OutputMimeType>
         <OutputExtension>pdf</OutputExtension>
         <ODFileType>L</ODFileType>
         <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>C:\\Program Files\\IBM\\OnDemand\\V10.1\\bin\\arsxline.exe</CmdLineExe>
        <OperationName>arsxline</OperationName>
        <Passthru>
            <cmdlineparm>-x P</cmdlineparm>
        </Passthru>
       </transform>
    </Transforms>
    Ensure that you follow the naming conventions so that IBM Content Navigator finds the appropriate settings. When you open and view a line data document, the custom settings or default settings are used, depending on naming conventions that you used in the transform file. If no custom or default settings are found in the transform.xml file, IBM Content Navigator returns an error.
  2. Open the IBM Content Navigator administration tool in the web client.
  3. Specify the location of the transform file for each IBM Content Manager OnDemand repository that you want to use the Line2PDF conversion viewer:
    1. Connect to the repository. In the Custom transform file field of the Configuration Parameters tab, enter the full path and file name of your transform file.
    2. Click Save.
  4. In the Viewer Maps tab, create a new viewer map and specify the Line2PDF conversion viewer for IBM Content Manager OnDemand line data.
  5. Associate the Line2PDF conversion viewer to the IBM Content Navigator desktop.

Results

You can retrieve a line data document as PDF from the IBM Content Manager OnDemand repository by right-clicking the document and opening it.