Skip to content

v0.4.0

Choose a tag to compare

@Lockyc Lockyc released this 02 Oct 02:08
· 8 commits to main since this release

Documents and PDFs.

  • plate pdf inspects a PDF. info prints its metadata and whether it has a text layer, text extracts layout-preserved text, pages renders pages to PNG, and images extracts embedded rasters. pages and images print every path they write. They create --out if it is missing and refuse to write into one that already holds a file of the same name. images refuses a PDF with no embedded rasters instead of exiting 0 with nothing written. --dpi is bounded to 1–1200.
  • plate doc renders markdown or HTML to a PDF with a plain document look: A4, a running head taken from the first heading, page numbers, and ruled tables. --css replaces the stylesheet. Relative images resolve next to the input whatever the working directory, and an HTML file's own styles take precedence over the default. Markdown goes through pandoc, which is now checked by plate doctor.
  • Every integer flag is now read in base 10. Before this, --height 0800 was read as octal 512, and --budget 0100 as 64 ms.