ios17 breaks custom page size for PDF export

We have an app that exports PDFs with a custom page size, using PSDKit. In iOS16 the PDF export would have the correct page size dimensions, but now iOS17 exports everything to a Letter (8.5x11) size, regardless of what the PDF size specs are defined in the code:

let pageWidth: CGFloat = 86.0 / 25.4 * 72
let pageHeight: CGFloat = 54.0 / 25.4 * 72
let pageSize = CGRect(x: 0, y: 0, width: pageWidth, height: pageHeight)

Any thoughts as to how to fix this?

let me check

Thanks! And by PSDKit I meant PDFKit. LOL.

Issue persists with iOS 17.2.1

ios17 breaks custom page size for PDF export
 
 
Q