Skip to content

Commit 2aacc38

Browse files
committed
Mention maximum tile size in docs
1 parent 9495fa2 commit 2aacc38

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

main.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ func (v *TileSizeFlag) Set(s string) error {
8989
}
9090

9191
var (
92-
inputFile = flag.String("in", "-", "input PDF")
93-
outputFile = flag.String("out", "-", "output PDF")
94-
tileTitle = flag.String("title", "", "title to show on margin of each tile (defaults to input filename)")
95-
debugMode = flag.Bool("debug", false, "run in debug mode")
92+
inputFile = flag.String("in", "-", "input PDF")
93+
outputFile = flag.String("out", "-", "output PDF")
94+
tileTitle = flag.String("title", "", "title to show on margin of each tile (defaults to input filename)")
95+
debugMode = flag.Bool("debug", false, "run in debug mode")
9696
longTrimMarks = flag.Bool("long-trim-marks", false, "Use full width/height trim marks")
97-
hideLogo = flag.Bool("hide-logo", false, "Hide the logo")
98-
tileSize TileSizeFlag
97+
hideLogo = flag.Bool("hide-logo", false, "Hide the logo")
98+
tileSize TileSizeFlag
9999
)
100100

101101
func init() {
102102
tileSize.Set("A4")
103103
flag.Var(&tileSize, "tile-size",
104-
"can be a standard paper size (eg A5), or width x height dimension with a unit (mm, cm, in, pt) (e.g. 6cm x 12in)")
104+
"maximum size - can be a standard paper size (eg A5), or width x height dimension with a unit (mm, cm, in, pt) (e.g. 6cm x 12in)")
105105
}
106106

107107
// getNextFreeObjectId returns the largest object id in the document + 1
@@ -413,10 +413,10 @@ func createOverlayForPage(overlayId int, p *page) string {
413413
%f %f m %f %f l S
414414
Q `,
415415
trimMarkLineWidth,
416-
mb.llx-1, tb.lly, mb.urx+1, tb.lly, // bottom trim line
417-
mb.llx-1, tb.ury, mb.urx+1, tb.ury, // top trim line
418-
tb.llx, mb.lly-1, tb.llx, mb.ury+1, // left trim line
419-
tb.urx, mb.lly-1, tb.urx, mb.ury+1, // right trim line
416+
mb.llx-1, tb.lly, mb.urx+1, tb.lly, // bottom trim line
417+
mb.llx-1, tb.ury, mb.urx+1, tb.ury, // top trim line
418+
tb.llx, mb.lly-1, tb.llx, mb.ury+1, // left trim line
419+
tb.urx, mb.lly-1, tb.urx, mb.ury+1, // right trim line
420420
)
421421
}
422422
// Draw tile ref

0 commit comments

Comments
 (0)