Photos project extensions basics

Hi there,


I would like to recreate the photos albums experience of macOS in order to build a product that could be distributed throught mac appstore allowing users to create, edit and print their photo albums.


I've read the relevant 2018 WWDC documentation, specifically:


[1] - https://developer.apple.com/videos/play/wwdc2018/505/

[2] - https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionCreation.html#//apple_ref/doc/uid/TP40014214-CH5-SW1

[3] - https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Photos.html

[4] - https://developer.apple.com/documentation/photokit/creating_a_slideshow_project_extension_for_photos



But I cannot find anything related to printing (ie. margins, how to deal with PDF conversions of photos, etc.). Specifically, I don't understand how I can generate a "virtual document" in order to old photos, clip arts and texts.


Could you please give me some points in order to start over my readings?



Any reply is greate appreciated. Thanks in advance!

--
Lisa