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

传真(Fax)编程

开发平台:

C/C++

  1. ." $Id: choptest.1m,v 1.1.1.1 2005/11/11 21:32:03 faxguy Exp $
  2. ."
  3. ." HylaFAX Facsimile Software
  4. ."
  5. ." Copyright (c) 1994-1996 Sam Leffler
  6. ." Copyright (c) 1994-1996 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. .TH CHOPTEST ${MANNUM1_8} "October 3, 1995"
  31. .SH NAME
  32. choptest - *(Fx page chopping test program
  33. .SH SYNOPSIS
  34. .B ${SBIN}/choptest
  35. [
  36. .I options
  37. ] input.tif
  38. .SH DESCRIPTION
  39. .I choptest
  40. is a program for testing the page chopping support in
  41. the *(Fx software (specifically, in the
  42. .IR faxq (${MANNUM1_8})
  43. program).
  44. .I choptest
  45. analyzes a
  46. .SM TIFF/F
  47. (c
  48. .SM TIFF
  49. Class F) file with 1-D MH- or 2-D MR-encoded data and
  50. reports what the automatic page chopping logic would do
  51. if the file were submitted for transmission.
  52. Options are provided for controlling 
  53. whether
  54. .I choptest
  55. checks the last page or all pages of the document, and
  56. what whitespace threshold to use in deciding if a page
  57. should be chopped.
  58. .SH OPTIONS
  59. .TP 10
  60. .B -a
  61. Chop all pages in the document.
  62. This is equivalent to setting the
  63. .B PageChop
  64. configuration parameter to ``all''; c.f.
  65. .IR hylafax-config (${MANNUM4_5}).
  66. By default only the last page of the document is considered.
  67. .TP
  68. .BI -t " inches"
  69. Set the minimum whitespace threshold that must be present on
  70. a page for it to be chopped.
  71. This is equivalent to the
  72. .B PageChopThreshold
  73. configuration parameter; c.f.
  74. .IR hylafax-config (${MANNUM4_5}).
  75. By default 
  76. .I choptest
  77. requires that at least 3 inches of trailing whitespace be present.
  78. .SH EXAMPLES
  79. The following shows a multi-page, high-resolution document.
  80. Each page has insufficient whitespace for it to be chopped.
  81. .PP
  82. .nf
  83. hyla% ./choptest -a ~/tiff/pics/faxix.tif
  84. Chop pages with >=3" of white space at the bottom.
  85. Don't chop, found 67 rows, need 588 rows
  86. Don't chop, found 67 rows, need 588 rows
  87. Don't chop, found 67 rows, need 588 rows
  88. Don't chop, found 53 rows, need 588 rows
  89. Don't chop, found 91 rows, need 588 rows
  90. Don't chop, found 99 rows, need 588 rows
  91. Don't chop, found 47 rows, need 588 rows
  92. .fi
  93. .SH "SEE ALSO"
  94. .IR faxq (${MANNUM1_8}),
  95. .IR hylafax-config (${MANNUM4_5})