LeoTaro,
My inquiry is really directed towards finding out if PDF compatibility is turned on for a given document.
I did a lot of experiments investigating the dictionaries associated with the document, but nothing helps me there.
I assume the information is probably linked in the file-format-data block, but that information is a non-documented block, and even investigating it does not really give a hint IF it is there at all.
Hence the question remains: is there a way in the Illustrator API/SDK to check if an illustrator file/document is configured to be saved with PDF compatibility on-or-off.
The first thing to check is of course the file format used for saving (that is easy by looking at the associated file format name).
But the second thing then is the actual setting, and that is the thing I cannot find
You are not going to find anything in the document, you might be able to intercept the AIFileFormatMessage and get the information from there. The other options are:
1. Provide your own way of saving documents that always saves with PDF compatibility turned on.
2. Use the kAIDocumentWritePostprocessNotifier to get a notification when a file has been saved, and then examine the saved file to see if it is PDF compatible and if not either resave with PDF compatibility or pop up an error.