Describe the bug
When a new page is added without adding a font previously, an exception is thrown.
This can be the case if you try to create a PDF by importing other PDF files or also when the font is set inside the header/footer using defaultPageContent.
Attached is a possible patch.
patch.diff.zip
To Reproduce
Simply add a page.
Expected behavior
No exception should be thrown
Environment:
- OS: any
- PHP version: any
- Version: latest
Describe the bug
When a new page is added without adding a font previously, an exception is thrown.
This can be the case if you try to create a PDF by importing other PDF files or also when the font is set inside the header/footer using
defaultPageContent.Attached is a possible patch.
patch.diff.zip
To Reproduce
Simply add a page.
Expected behavior
No exception should be thrown
Environment: