How to copy a Layout::Page?

Given a Layout::Page, I would like to create a new one by copying an existing page. Is it possible?

Pages has the add method. But no copy method.

1 Like

What about the source page would need to be copied to the new page ?

Keep in mind that unshared entities cannot be used by other pages and entities on shared layers will appear on the new if that layer is set visible on the new page.