Photoshop UXP Scripting: Mysterious PDF Import Skew (Manual Works, Script Fails) - Seeking Expertise!

Hi all, Working on a UXP plugin and came across an issue I can’t get around.

Despite explicitly setting pdfOpenOptions like resolution: 300, cropPage: "artBox" (or mediaBox), constrainProportions: true, and antiAlias: true when opening PDFs via app.open() in a UXP script, our imported PDF content frequently appears skewed or geometrically incorrect. However, the same PDFs import perfectly fine when opened manually in Photoshop with what seem to be identical settings.

What could be causing this discrepancy in scripted versus manual PDF import behavior, and how can we reliably ensure correct, un-skewed PDF geometry when opening PDFs programmatically in a UXP Photoshop script?

Any workarounds you suggest?