Hi Sergey,
yes, it worked great. In my own attempts I did not have the line "loPDDoc = loAVDoc.GetPDDoc()", instead I tried loAVDoc.DeletePages() which did not work. I knew I needed to create a second object, but could not figure out how. Thanks again.
>Hi Tore,
>
>Did it work for you?
>
>>thanks a lot, I will test it later today. At first look the code looks very much like the code I tested unsuccessfully yesterday, it will be interesting to study the difference.