Skip to content

Add font to new page only if one exists. #179

@MacGritsch

Description

@MacGritsch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions