2023-11-09 10:30:02 +01:00
|
|
|
# pnmtops
|
|
|
|
|
|
|
|
> Convert a PNM image to a PostScript file.
|
|
|
|
> More information: <https://netpbm.sourceforge.net/doc/pnmtops.html>.
|
|
|
|
|
|
|
|
- Convert a PNM image to a PS file:
|
|
|
|
|
|
|
|
`pnmtops {{path/to/file.pnm}} > {{path/to/file.ps}}`
|
|
|
|
|
|
|
|
- Specify the dimensions of the output image in inches:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pnmtops {{[-imagew|-imagewidth]}} {{imagewidth}} {{[-imageh|-imageheight]}} {{imageheight}} {{path/to/file.pnm}} > {{path/to/file.ps}}`
|
2023-11-09 10:30:02 +01:00
|
|
|
|
|
|
|
- Specify the dimensions of the page the output image resides on in inches:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pnmtops {{[-w|-width]}} {{width}} {{[-h|-height]}} {{height}} {{path/to/file.pnm}} > {{path/to/file.ps}}`
|