MURASTER(1)

πŸ“¦
version 1.27.0 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay bestie, the title line up top says muraster(), so that's the manual name, and the whole page is about muraster πŸ’–

muraster is literally a much simpler version of the mutool draw command. As such, it can be used to quickly rasterize an input file with a set of options. no cap, that's the whole point.


πŸŽ€ COMMAND LINE OPTIONS πŸŽ€

here's the vibe, the synopsis, the whole shape of it:

muraster [options] file [pages]

🌸 [options]

  • -p password β€” the password needed to open a password protected PDF file. πŸ”
  • -o filename β€” the output file name. πŸ’Ύ
  • -F format β€” the output format (default inferred from output file name), e.g. pam, pbm, pgm, pkm, ppm. πŸ–ΌοΈ
  • -s information β€” show extra information:
    • m: show memory use. 🧠
    • t: show timings. ⏱️
  • -R rotation β€” set a rotation for the output (default auto):
    • auto.
    • 0.
    • 90.
    • 180.
    • 270.
    • clockwise.
  • -r x,y β€” comma separated x and y resolution in DPI (default: 300,300). πŸ“
  • -w width β€” printable width (in inches) (default: 8.27). πŸ“
  • -h height β€” printable height (in inches) (default: 11.69). πŸ“
  • -f β€” fit file to page if too large. 🫢
  • -B height β€” set the minimum band height (e.g. 32). 🎚️
  • -M memory β€” sets the maximum band memory (e.g. 655360). πŸ’Ύ
  • -W width β€” page width for EPUB layout. πŸ“–
  • -H height β€” page height for EPUB layout. πŸ“–
  • -S size β€” font size for EPUB layout. πŸ”€
  • -U filename β€” file name of user stylesheet for EPUB layout. 🎨
  • -X β€” disable document styles for EPUB layout. 🚫
  • -A level β€” set anti-aliasing level.
    • 0: off.
    • 2: 4 levels.
    • 4: 16 levels.
    • 8: 256 levels.
  • -A graphics level / text level β€” independently set the anti-aliasing levels for graphics and text. e.g. -A 0/4. ✨

πŸ¦‹ [pages]

a comma separated list of page numbers and ranges. like, you can pick exactly which pages you want, bestie. πŸ“„

πŸ’… Example usage #1

this will render a raster file from page one of the input file mupdf_explored.pdf. the output file will be called test.ppm, have a clockwise rotation and specific graphics/text anti-aliasing applied. iconic.

muraster -o test.ppm -R clockwise -A 0/8 mupdf_explored.pdf 1

and that's the whole manual, fr fr. the footer down there just says muraster() β€” no version, no date, just the name, minimal main character energy πŸ’…βœ¨. so yeah, that's the source/version/date situation: it's literally just muraster() on its own. periodt. 🫢

πŸ“¦ where this page comes from