I have tried using both app.PDFExportPrefereces as well as the PDFExportPreset to set cropImageToFrames = true, but the entire image is always embedded in the PDF on export. I have also tried importFile to load a preset export file, but that does not yield the desired results either.
Does anyone have a workaround for this? Is this a bug?
Off topic... for me the function signature for exportFile is
exportFile(fileformat, filename, PDFExportPreset, UI popup, ..., ...);
but the documentation has the UI popup and PDFExportPreset reveresed... anyone else have this problem?