mirror of https://github.com/CrimsonTome/tldr.git
pbmtolj, pjtoppm, pnmtopclxl, ppmtolj, ppmtopj, ppmtospu, sldtoppm, spctoppm, sputoppm, thinkjettopbm: add pages (#11409)
* pbmtolj, pjtoppm, pnmtopclxl, ppmtolj, ppmtopj, ppmtospu, sldtoppm, spctoppm, sputoppm, thinkjettopbm: add pages * Update pages/common/thinkjettopbm.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/common/pnmtopclxl.md * Update pages/common/ppmtopj.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>pull/23/head
parent
7b88278d15
commit
f7b68d70a1
|
@ -0,0 +1,16 @@
|
|||
# pbmtolj
|
||||
|
||||
> Convert a PBM file to an HP LaserJet file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pbmtolj.html>.
|
||||
|
||||
- Convert a PBM file to an HP LaserJet file:
|
||||
|
||||
`pbmtolj {{path/to/input.pbm}} > {{path/to/output.lj}}`
|
||||
|
||||
- Compress the output file using the specified method:
|
||||
|
||||
`pbmtolj -{{packbits|delta|compress}} {{path/to/input.pbm}} > {{path/to/output.lj}}`
|
||||
|
||||
- Specify the required resolution:
|
||||
|
||||
`pbmtolj -resolution {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}`
|
|
@ -0,0 +1,8 @@
|
|||
# pjtoppm
|
||||
|
||||
> Convert a HP PaintJet file to PPM.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pjtoppm.html>.
|
||||
|
||||
- Convert a HP PaintJet file to PPM:
|
||||
|
||||
`pjtoppm {{path/to/input.pj}} > {{path/to/output.ppm}}`
|
|
@ -0,0 +1,16 @@
|
|||
# pnmtopclxl
|
||||
|
||||
> Convert a PNM file to an HP LaserJet PCL XL printer stream.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmtopclxl.html>.
|
||||
|
||||
- Convert PNM files to an HP LaserJet PCL XL printer stream:
|
||||
|
||||
`pnmtopclxl {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}`
|
||||
|
||||
- Specify the resolution of the image as well as the location of the page from the upper left corner of each image:
|
||||
|
||||
`pnmtopclxl -dpi {{resolution}} -xoffs {{x_offset}} -yoffs {{y_offset}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}`
|
||||
|
||||
- Generate a duplex printer stream for the specified paper format:
|
||||
|
||||
`pnmtopclxl -duplex {{vertical|horizontal}} -format {{letter|legal|a3|a4|a5|...}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}`
|
|
@ -0,0 +1,16 @@
|
|||
# ppmtolj
|
||||
|
||||
> Convert a PPM file to an HP LaserJet PCL 5 Color file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtolj.html>.
|
||||
|
||||
- Convert a PPM file to an HP LaserJet PCL 5 Color file:
|
||||
|
||||
`ppmtolj {{path/to/input.ppm}} > {{path/to/output.lj}}`
|
||||
|
||||
- Apply a gamma correction using the specified gamma value:
|
||||
|
||||
`ppmtolj -gamma {{gamma}} {{path/to/input.ppm}} > {{path/to/output.lj}}`
|
||||
|
||||
- Specify the required resolution:
|
||||
|
||||
`ppmtolj -resolution {{75|100|150|300|600}} {{path/to/input.ppm}} > {{path/to/output.lj}}`
|
|
@ -0,0 +1,16 @@
|
|||
# ppmtopj
|
||||
|
||||
> Convert a PPM file to an HP PaintJet file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtopj.html>.
|
||||
|
||||
- Convert a PPM file to an HP PaintJet file:
|
||||
|
||||
`ppmtopj {{path/to/input.ppm}} > {{path/to/output.pj}}`
|
||||
|
||||
- Move the image in the x and y direction:
|
||||
|
||||
`ppmtopj -xpos {{dx}} -ypos {{dy}} {{path/to/input.ppm}} > {{path/to/output.pj}}`
|
||||
|
||||
- Explicitly specify a gamma value:
|
||||
|
||||
`ppmtopj -gamma {{gamma}} {{path/to/input.ppm}} > {{path/to/output.pj}}`
|
|
@ -0,0 +1,12 @@
|
|||
# ppmtospu
|
||||
|
||||
> Convert a PPM file to an Atari Spectrum 512 image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtospu.html>.
|
||||
|
||||
- Convert a PPM file to an Atari Spectrum 512 image:
|
||||
|
||||
`ppmtospu {{path/to/input.ppm}} > {{path/to/output.spu}}`
|
||||
|
||||
- Use a dithering matrix of the specified size (0 means no dithering):
|
||||
|
||||
`ppmtospu -d{{0|2|4}} {{path/to/input.ppm}} > {{path/to/output.spu}}`
|
|
@ -0,0 +1,12 @@
|
|||
# sldtoppm
|
||||
|
||||
> Convert an AutoCAD slide file to a PPM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/sldtoppm.html>.
|
||||
|
||||
- Convert an SLD file to a PPM image:
|
||||
|
||||
`sldtoppm {{path/to/input.sld}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Compensate for non-square pixels by scaling the width of the image:
|
||||
|
||||
`sldtoppm -adjust {{path/to/input.sld}} > {{path/to/output.ppm}}`
|
|
@ -0,0 +1,8 @@
|
|||
# spctoppm
|
||||
|
||||
> Convert an Atari compressed Spectrum image to a PPM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/spctoppm.html>.
|
||||
|
||||
- Convert an SPC file to a PPM image:
|
||||
|
||||
`spctoppm {{path/to/input.spc}} > {{path/to/output.ppm}}`
|
|
@ -0,0 +1,8 @@
|
|||
# sputoppm
|
||||
|
||||
> Convert an Atari uncompressed Spectrum image to a PPM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/sputoppm.html>.
|
||||
|
||||
- Convert an SPU file to a PPM image:
|
||||
|
||||
`sputoppm {{path/to/input.spu}} > {{path/to/output.ppm}}`
|
|
@ -0,0 +1,12 @@
|
|||
# thinkjettopbm
|
||||
|
||||
> Convert a HP ThinkJet printer commands file to a PBM file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/thinkjettopbm.html>.
|
||||
|
||||
- Convert a HP ThinkJet printer commands file to a PBM file:
|
||||
|
||||
`thinkjettopbm {{path/to/input}} > {{path/to/output.pbm}}`
|
||||
|
||||
- Print debug information to `stderr`:
|
||||
|
||||
`thinkjettopbm -d {{path/to/input}} > {{path/to/output.pbm}}`
|
Loading…
Reference in New Issue