CaseLeaf

Handbook / The `vectorise` command

The vectorise command

A cover goes to a commercial printer who does not have your fonts.

Turns glyphs into outlines. After it the text is shapes: it will look identical anywhere, on any machine, with no font to go missing, and it can no longer be searched, selected or read aloud. It is for the copy that goes to print, and the trade is the whole point.

How you run it

caseleaf vectorise report.pdf --to reviewed.pdf

caseleaf vectorise report.pdf --to reviewed.pdf --pages 1,2,3

What each part means

In full, every part it will take:

caseleaf vectorise <file> --to <output> [--pages 1,2,3]
part what it is for
<file> The PDF to work on, as a path, such as report.pdf beside you, or the full path to it. It is read and not written.
--to Where to write the result, as a path. The shape above shows which format this command writes. This command needs it, and writes only there: the document you named is left exactly as it was.
--pages Which sheets, as numbers or ranges separated by commas, so 1,3,5-7 is five sheets. Every command reads that spelling the same way, and a number the document does not have is refused rather than skipped.

What comes back

Asked of a short sample document, it answers as below. The sample has eight sheets, a highlight and a note left by a reviewer, a web link, a small table, two pictures and one form field already filled in.

{
  "pages" : 8,
  "wrote" : "reviewed.pdf"
}

The same thing from AppleScript

Everything above can be asked for from a script instead. There is one AppleScript command, perform: on names the document, and options takes the rest exactly as you would type it.

tell application "CaseLeaf"
    perform "vectorise" on "/path/to/report.pdf" ¬
        options "--to reviewed.pdf"
end tell

tell application "CaseLeaf"
    perform "vectorise" on "/path/to/report.pdf" ¬
        options "--to reviewed.pdf --pages 1,2,3"
end tell

All the commands · Asking from a script · Contents