Skip to content

Commit

Permalink
Added information about placeholder feature.
Browse files Browse the repository at this point in the history
Thanks to @AnkurGel and @Clouz for your kind contribution! ❤️
  • Loading branch information
ajaxray authored Dec 11, 2022
1 parent d64b5c4 commit 336e2c5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ markpdf "path/to/source.pdf" "The Company Name" "path/to/output.pdf" --center --
markpdf "path/to/source.pdf" "The Company Name" "path/to/output.pdf" -cf times_bold_italic -s 24.0 -l 0000FF
```

#### Using placeholders with text watermark

The following placeholder can be used in text watermark:
- `{{.Page}}` prints the current page number
- `{{.Pages}}` prints the total page numbers
- `{{.Filename}}` prints name of the source file

```bash
# Using placeholders in text watermark
markpdf "path/to/083.pdf" "File: {{.Filename}} Page {{.Page}} of {{.Pages}}" "path/to/voucher_083.pdf" --position=10,-10
```

_Note: This (placeholder) feature will be available in upcoming release. If you want to use it right now, please build from the `master` branch._

#### Allowed font identifiers

Expand Down

0 comments on commit 336e2c5

Please sign in to comment.