Created
January 9, 2018 14:12
-
-
Save mandolyte/9acc3e6c034479a97af7616115c5631f to your computer and use it in GitHub Desktop.
The help message for the textToList.go example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go run textToList.go -help | |
Help Message | |
Usage: textToList [options] | |
Note: font and line height are 'points', 1/72 inch | |
This example takes a text file of paragraphs and | |
demonstrates how to create a numbered list in PDF format | |
Blank lines are skipped! | |
-compressed | |
Don't add blank line between items | |
-font string | |
Font 'Arial', 'Courier', or 'Times'; default Arial (default "Arial") | |
-fs float | |
Font size; default 12 (default 12) | |
-help | |
Show usage message | |
-i string | |
Input text filename; default is os.Stdin | |
-lh float | |
Line height; default 15 (default 15) | |
-o string | |
Output PDF filename; required | |
-ps string | |
Paper size; default 'Letter' (default "Letter") | |
-style string | |
Style: B for bold, U for underline, I for Italics or any combo thereof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment