tiffcheck.1m
上传用户:weiyuanprp
上传日期:2020-05-20
资源大小:1169k
文件大小:4k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. ." $Id: tiffcheck.1m,v 1.1.1.1 2005/11/11 21:32:03 faxguy Exp $
  2. ."
  3. ." HylaFAX Facsimile Software
  4. ."
  5. ." Copyright (c) 1995 Sam Leffler
  6. ." Copyright (c) 1995 Silicon Graphics, Inc.
  7. ." HylaFAX is a trademark of Silicon Graphics
  8. ." 
  9. ." Permission to use, copy, modify, distribute, and sell this software and 
  10. ." its documentation for any purpose is hereby granted without fee, provided
  11. ." that (i) the above copyright notices and this permission notice appear in
  12. ." all copies of the software and related documentation, and (ii) the names of
  13. ." Sam Leffler and Silicon Graphics may not be used in any advertising or
  14. ." publicity relating to the software without the specific, prior written
  15. ." permission of Sam Leffler and Silicon Graphics.
  16. ." 
  17. ." THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  18. ." EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  19. ." WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  20. ." 
  21. ." IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  22. ." ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  23. ." OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. ." WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  25. ." LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  26. ." OF THIS SOFTWARE.
  27. ."
  28. .if n .po 0
  29. .ds Fx fIHylas-1FAXs+1fP
  30. .ds Tf s-1TIFFs+1
  31. .TH TIFFCHECK ${MANNUM1_8} "January 18, 1996"
  32. .SH NAME
  33. tiffcheck - check *(Tf for *(Fx conversion requirements
  34. .SH SYNOPSIS
  35. .B ${SBIN}/tiffcheck
  36. [
  37. .I options
  38. ]
  39. .I file.tif
  40. .SH DESCRIPTION
  41. .B tiffcheck
  42. takes *(Tf input and writes a multi-line text message to the
  43. standard output describing any work needed to prepare the images
  44. for facsimile transmission.
  45. .I tiffcheck
  46. is usually invoked by
  47. .IR tiff2fax (${MANNUM1_8})
  48. script that is used by the *(Fx scheduler to prepare *(Tf documents
  49. submitted for transmission.
  50. .PP
  51. The first line of output is a series of ``+''-separated words that
  52. indicate if the input file should be:
  53. .IP (bu 3
  54. rejected (``s-1REJECTs+1''),
  55. .IP (bu 3
  56. reformatted with a different data-encoding scheme (``s-1REFORMATs+1''),
  57. .IP (bu 3
  58. scaled to different page dimensions (``s-1RESIZEs+1''),
  59. .IP (bu 3
  60. reimaged in a different vertical resolution (``s-1REVRESs+1''), or
  61. .IP (bu 3
  62. reimaged for other reasons such as conversion from color to black&white (``s-1REIMAGEs+1'').
  63. .PP
  64. The conversion requirements string
  65. will always have keywords in the above order; e.g. ``s-1RESIZE+REVRESs+1''
  66. if the input file needs to be scaled and converted to a different resolution.
  67. Information following the first line is descriptive text that explains
  68. the reason(s) for the file conversion(s); this text is suitable for return
  69. to a client (should document conversion fail or not be attempted).
  70. The descriptive text is ordered identically to the keywords in the
  71. conversion string; this makes it possible to match up conversion
  72. requirements to reasons.
  73. .SH OPTIONS
  74. The following operations are recognized:
  75. .TP 10
  76. .B -1
  77. Set output to be Group 3 1D-encoded.
  78. .TP 10
  79. .B -2
  80. Set output to be Group 3 2D-encoded.
  81. .TP 10
  82. .B -3
  83. Set output to be Group 4 MMR-encoded.
  84. .TP 10
  85. .BI -w " width"
  86. Set the output page
  87. .IR width ,
  88. in pixels.
  89. By default, pages are 1728 pixels wide.
  90. .TP 10
  91. .BI -l " length"
  92. Set the output page
  93. .IR length
  94. in millimeters.
  95. By default, pages are 297 millimeters long.
  96. .TP
  97. .BI -r " vres"
  98. Set the vertical resolution,
  99. in lines/inch, at which to image the *(Ps.
  100. .SH EXAMPLES
  101. The following color image needs to be converted to black&white,
  102. resized to the output page dimensions, and reformatted to use
  103. Group 3 1D-encoded data.
  104. .sp
  105. .nf
  106. .RS
  107. s-1fChyla% ${SBIN}/tiffcheck jello.tif
  108. REFORMAT+RESIZE+REIMAGE
  109. Document is not a bilevel image (bits/sample 8).
  110. Document requires reformatting, not in Group 3 format.
  111. Document requires resizing to adjust page width (convert to 1728, document is 256).fPs+1
  112. .RE
  113. .fi
  114. .PP
  115. This image is a facsimile received at high resolution (196 lpi); it only
  116. needs to be converted to 98 lpi.
  117. .sp
  118. .nf
  119. .RS
  120. s-1fChyla% ${SBIN}/tiffcheck faxix.tif
  121. REVRES
  122. Document requires reformatting to adjust vertical resolution (convert to 98, document is 196).fPs+1
  123. .RE
  124. .fi
  125. .SH "SEE ALSO"
  126. .IR tiff2fax (${MANNUM1_8}),
  127. .IR faxq (${MANNUM1_8}),
  128. .IR hylafax-server (${MANNUM4_5})