I need to get actual page number of PDF in apple script. I am using the below code. Its working fine for me in Adobe Acrobat Pro but not in Adobe Acrobat Professional 8. Its throwing error.
tell application "Adobe Acrobat Professional"
tell active doc
--set myPageNum to do script "var p = this.numPages; var str = ''; var pgNum = this.getPageLabel(0); str = str+pgNum;"
set myPageNum to do script "this.getPageLabel(0); "
display dialog myPageNum as string
If anyone know, pls help me.
Thanks in advance,
I found some solution from this forum.
- Sudha K