Create page resources when making new page

This commit is contained in:
Gunnsteinn Hall 2019-03-25 21:50:05 +00:00
parent 346e064292
commit 936bf446fc

View File

@ -65,6 +65,8 @@ func NewPdfPage() *PdfPage {
page := PdfPage{} page := PdfPage{}
page.pageDict = core.MakeDict() page.pageDict = core.MakeDict()
page.Resources = NewPdfPageResources()
container := core.PdfIndirectObject{} container := core.PdfIndirectObject{}
container.PdfObject = page.pageDict container.PdfObject = page.pageDict
page.primitive = &container page.primitive = &container