Skip to content

Commit

Permalink
johnfercher#149 Specified inputs of new method
Browse files Browse the repository at this point in the history
  • Loading branch information
sandera authored and sandera committed May 22, 2020
1 parent 2e7aaec commit 68eff3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/pdf/pdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ type PdfMaroto struct {
// Receive an Orientation and a PageSize.
// Use if custom page size is needed. Otherwise use NewMaroto() shorthand if using page sizes from consts.Pagesize.
// If using custom width and height, pageSize is just a string value for the format and takes no effect.
// Width and height inputs are measurements of the page in Portrait orientation.
func NewMarotoCustomSize(orientation consts.Orientation, pageSize consts.PageSize, unitStr string, width, height float64) Maroto {
fpdf := gofpdf.NewCustom(&gofpdf.InitType{
OrientationStr: string(orientation),
Expand Down

0 comments on commit 68eff3b

Please sign in to comment.