mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-27 13:48:51 +08:00
Create page resources when making new page
This commit is contained in:
parent
346e064292
commit
936bf446fc
@ -65,6 +65,8 @@ func NewPdfPage() *PdfPage {
|
||||
page := PdfPage{}
|
||||
page.pageDict = core.MakeDict()
|
||||
|
||||
page.Resources = NewPdfPageResources()
|
||||
|
||||
container := core.PdfIndirectObject{}
|
||||
container.PdfObject = page.pageDict
|
||||
page.primitive = &container
|
||||
|
Loading…
x
Reference in New Issue
Block a user