Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ctoif(1) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xif(1)

lpf_clsif(8)

lpf_lbpif(8)

CTOIF(1)  —  NEWS-OS Programmer’s Manual

NAME

ctoif − CDFF-to-CDIF converter

SYNOPSIS

ctoif [ option list ]

DESCRIPTION

ctoif converts CDFF format files into CDIF format files. 

OPTIONS

−D Outputs debug messages on the standard error output, during conversion from CDFF to CDIF. 

−F The shapes of the frames in the given CDFF document are included in the resulting CDIF output data. 

−S Uses "CDIF source file format" as the resulting output.  If not specified, binary file format is used by default. 

−s start-page
Specifies the page number from which to begin conversion when converting from CDFF to CDIF.

−e end-page
Specifies the page number at which to end conversion when converting from CDFF to CDIF.

−i cdff-file
Specifies the CDFF file to be input. Uses the standard input when this option is not specified.

−o cdif-file
Specifies the CDIF file to be output. Uses the standard output when this option is not specified.

−p copies
Specifies the number of times each separate page is to be output. Output is one-to-one when this option is not specified.

−R scale
Specifies the scale of shrinkage/enlargement of the figure in percent. No shrinkage/enlargement is done unless this option is specified, that is, the default value is 100.
This scaling is done by changing the "resolution" value in the CDIF output.

−U v-offset
Specifies the top margin of the page. margin means the distance between the edge of the paper and the boundary of the printing area (frame).  The unit of BMU (1200 BMU = 1 inch) is used when b or no unit is specified after the number.  The unit of centimeter, millimeter, or inch is used when c, m or i is specified after the number, respectively.  All the numbers are stored in the unit of BMU in the CDIF format file.  Default value is 0.  This unit specification applys for the −L, −X, −Y options as well. 

−L h-offset
Specifies the left margin of the page. margin means the distance between the edge of the paper and the boundary of the printing area (frame).  Default value is 0. 

−X page-width
Specifies the horizontal width of the page when altering the value of the page width forcefully from the one specified in CDFF files. This change of horizontal width applies on every page in the file.

−Y page-height
Specifies the vertical width of the page when altering the value of the page width forcefully from the one specified in CDFF files. Nomally the value of the page width is specified within the CDFF file. This change of vertical width applies on every page in the file.

−m mode
Specifies the mode of the resulting CDIF output. mode can be:

  monomonochrome output, within CDIF specification Ver.1.0
  pseudo88-bit palette color output, within CDIF extended Ver.1.1
  direct2424-bit full color output, within CDIF extended Ver.1.1

  compressbi-level and compressed monochrome images are output
directly, within CDIF extended specification Ver.1.1

mono, pseudo8, or direct24 can be specified exclusively.  compress can be specified independently, but it does not affect unless the given CDFF document does not include bi-level & compressed monochrome images. 

−C codeset
Specifies character codeset of output cdif source file on using −S option (and debug messages on using −D option).  codeset is sjis or euc.  sjis specifies Shift-JIS and euc specifies EUC.  If this option is not set, character codeset is specified according to environment variable LANG.  If LANG is not specified, character codeset is specified to Shift-JIS. 

SEE ALSO

cdff(g5), xif(1), lpf_clsif(8), lpf_lbpif(8)

BUGS

The vertical height and horizontal width of the page are compared and the longer of the two is aligned with the vertical direction for the printer when switching between landscape and potrait modes. 

Current ctoif does not support the following CDFF specifications. 

(1) Layout entities not supported
(iii) Graphic Data Rotation Angle
(iv)  Graphic Data X-Direction Enlargement Rate
(v)   Graphic Data Y-Direction Enlargement Rate
(iix) Image Data Rotation Angle
(2) Text attributes not supported
(i)   Rubi
(ii)  Page Number format
(iii) Edge
(3) Graphics not supported
(i)   Pict
(ii)  DefinePict
(4) Images not supported
(i)   Xposition/Yposition
(ii)  Free Byte Offsets/Free Offsets
(iii) Cell Width/Cell Length
(iv)  White Point/PrimaryChromaticities
(v)   Threshouldings
(vi)  MaxSampleValue/MinSampleValue
(vii) Compression(LZW)

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026