jbig2dec.1 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .TH jbig2dec 1 "2023 May 19" "Version 0.20" "jbig2dec Manual"
  2. .SH NAME
  3. jbig2dec \- File format converter specialized in JBIG2 decoding
  4. .SH SYNOPSIS
  5. .B jbig2dec
  6. .RI [ options ]
  7. .I file.jbig2
  8. .br
  9. .B jbig2dec
  10. .RI [ options ]
  11. .I global-stream page-stream
  12. .SH DESCRIPTION
  13. The
  14. .B jbig2dec
  15. command converts JBIG2 files to png or pbm files.
  16. When passed a single
  17. .I file
  18. argument it is interpreted as a JBIG2 file stream, with either
  19. sequential or random-access organization.
  20. When passed two stream arguments, they are interpreted as the
  21. global and page-specific portions of an embedded organization,
  22. as used in PDF. If a particular page references no global
  23. segment stream, /dev/null can be passed for the
  24. .I global-stream
  25. argument to request the embedded parser.
  26. .SH OPTIONS
  27. The options are as follows:
  28. .TP
  29. .BR -e ", " --embedded
  30. Expect embedded bit stream without file header.
  31. .TP
  32. .BI -o " file" ", --output" " file"
  33. Store the decoded output in
  34. .IR file .
  35. Defaults to the input with a different extension.
  36. Set to \fI-\fR for standard output.
  37. .TP
  38. .BI -t " type" ", --format" " type"
  39. Force a particular output file format. Supported are \fIpng\fR and
  40. \fIpbm\fR.
  41. .TP
  42. .BR -d ", " --dump
  43. Print the structure of the JBIG2 file rather than explicitly decoding it.
  44. .TP
  45. .BR -m ", " --hash
  46. Print a hash of the decoded document.
  47. .TP
  48. .BR -q ", " --quiet
  49. Suppress warnings and other diagnostic output.
  50. .TP
  51. .BR -v ", " --verbose
  52. Report additional information about the decoding process.
  53. Pass just \fB-v\fR for information about the file as it's being decoded.
  54. This is the same as \fB--verbose=2\fR.
  55. Pass \fB--verbose=3\fR or higher for debugging information.
  56. .TP
  57. .BR -V ", " --version
  58. Show program version information.
  59. .TP
  60. .BR -h ", " --help
  61. Show usage summary.
  62. .SH REPORTING BUGS
  63. Report bugs at https://bugs.ghostscript.com
  64. Contact the developers on Discord: https://discord.gg/taPnFQp5gb
  65. or via the mailing list <gs-devel@ghostscript.com>.
  66. .SH AUTHOR
  67. This manpage was initially written by Sebastian Rasmussen
  68. <sebras@gmail.com> for jbig2dec and the Debian Project.