getting trim box via AppleScript
I need to determine if a PDF file has a trim box and a bleed box using AppleScript. The following code returns dimensions for a trim box and bleed box, even if the PDF it's run on doesn't contain said boxes. Presumably Acrobat is getting that information from the media box or the crop box. Is there a way for have it tell me if a trim box and bleed box actually exist in the PDF?
tell application id "com.adobe.Acrobat.Pro"
try
set trimSize to get trim box of page 1 of active doc
set bleedSize to get bleed box of page 1 of active doc
end try
end tell
-->bleedSize {0.0, 792.0, 612.0, 0} trimSize {0.0, 792.0, 612.0, 0.0} Result on a US letter-sized PDF that contains no bleed box or trim box.