Also... do you have an exception trap? There are ways in which your code can fail e.g. if AP is a direct object (as it often will be).
And... have you actually checked the PDF to see if your changes have taken place as expected?
Also... do you have an exception trap? There are ways in which your code can fail e.g. if AP is a direct object (as it often will be).
And... have you actually checked the PDF to see if your changes have taken place as expected?