update polygon to gofpdf API