IBM Support

The Copy Document Pages to File in ASCII Text feature in the OnDemand client might produce unexpected character and line spacing when it converts AFP documents to ASCII

Troubleshooting


Problem

Viewing an AFP document in the IBM® Content Manager OnDemand client and using the Edit --> Copy Document Pages to File feature with ASCII Text selected as the Format might result in an ASCII text file with incorrect spacing between characters and lines.

Cause

The defined grid size is either too large or too small for the document page.

The AFP viewer that is used by the OnDemand client divides each document page into a grid when it converts AFP to ASCII. The grid size is determined from the parameters: AsciiCPI (characters per inch), AsciiLPI (lines per inch), and actual paper size. The default for AsciiCPI is 10 characters per inch. The default for AsciiLPI is 6 lines per inch. The actual paper size is defined by the AFP document.

Depending on the size of the grid and how many characters fit into each cell, the resulting ASCII text file might not contain sufficient space between characters or might wrap lines of text in unexpected ways.

Resolving The Problem

You can adjust the spacing between each character and line to produce the correct ASCII display of the AFP document by overriding the defaults for AsciiCPI and AsciiLPI.

Important: The following procedures contain instructions to edit the registry file. Always make a backup copy of the registry file before you edit it.

To adjust spacing between characters, choose to edit the registry or the ftdport2.ini file:

Option 1: Edit the registry

  1. Go to Start --> Run and type the following command: regedit
  2. Open the following registry key:HKEY_CURRENT_USER\Software\IBM\OnDemand32\Client\Misc
  3. Create a new String Value (Right-click--> New --> String Value). Set the label to AsciiCPI and set the value to 20. (You can increase or decrease this value as needed).

Option 2: Edit the ftdport2.ini file
  1. Open the ftdport2.ini file in your OnDemand client directory (by default, C:\Program Files\ibm\OnDemand32).
  2. Under the [MISC] section, add the following parameter and value: AsciiCPI=20. (You can increase or decrease this value as needed).
  3. Save the ftdport2.ini file.

To adjust spacing between lines, choose to edit the registry or the ftdport2.ini file:

Option 1: Edit the registry
  1. Go to Start --> Run and type the following command: regedit
  2. Open the following registry key: HKEY_CURRENT_USER\Software\IBM\OnDemand32\Client\Misc
  3. Create a new String Value (Right-click --> New --> String Value). Set the label to AsciiLPI and set the value to 12. (You can increase or decrease this value as needed).

Option 2: Edit the ftdport2.ini file
  1. Open the ftdport2.ini file in your OnDemand client directory (by default, C:\Program Files\ibm\OnDemand32).
  2. Under the [MISC] section, add the following parameter and value: AsciiLPI=12. (You can increase or decrease this value as needed).
  3. Save the ftdport2.ini file.

After you make any changes, close and start the OnDemand client. Attempt the Copy Document Pages to File operation again.

[{"Product":{"code":"SSEPC6","label":"Content Manager OnDemand Clients"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Windows User GUI","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5;8.4","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
17 June 2018

UID

swg21368299