func NewPdf(orientationStr, unitStr, sizeStr string) *gofpdf.Fpdf {
	pdf := gofpdf.New(orientationStr, unitStr, sizeStr, draw2d.GetFontFolder())
	// to be compatible with draw2d
	pdf.SetMargins(0, 0, 0)
	pdf.SetDrawColor(0, 0, 0)
	pdf.SetFillColor(255, 255, 255)
	pdf.SetLineCapStyle("round")
	pdf.SetLineJoinStyle("round")
	pdf.SetLineWidth(1)
	pdf.AddPage()
	return pdf
}
func NewPdf(orientationStr, unitStr, sizeStr string) *gofpdf.Fpdf {
	pdf := gofpdf.New(orientationStr, unitStr, sizeStr, draw2d.GetFontFolder())
	
	pdf.SetMargins(0, 0, 0)
	pdf.SetDrawColor(0, 0, 0)
	pdf.SetFillColor(255, 255, 255)
	pdf.SetLineCapStyle("round")
	pdf.SetLineJoinStyle("round")
	pdf.SetLineWidth(1)
	pdf.AddPage()
	return pdf
}
func NewPdf ( orientationStr , unitStr , sizeStr string ) * gofpdf . Fpdf { pdf := gofpdf . New ( orientationStr , unitStr , sizeStr , draw2d . GetFontFolder ( ) ) // to be compatible with draw2d pdf . SetMargins ( 0 , 0 , 0 ) pdf . SetDrawColor ( 0 , 0 , 0 ) pdf . SetFillColor ( 255 , 255 , 255 ) pdf . SetLineCapStyle ( " " ) pdf . SetLineJoinStyle ( " " ) pdf . SetLineWidth ( 1 ) pdf . AddPage ( ) return pdf }
// NewPdf creates a new pdf document with the draw2d fontfolder, adds
// a page and set fill color to white.
NewPdf creates a new pdf document with the draw2d fontfolder adds a page and set fill color to white .