Hi experts,
I can use the following to get total number of pages in a PDF file:
lcStr = filetostr(getfile('pdf'))
lnPOS = At("/Count",lcStr)
If lnPOS > 0
lcPageCount = alltrim(substr(lcStr, lnPOS, 9))
lnPageCount = VAL(STRTRAN(lcPageCount,'/Count',''))
?lnPageCount
endif
Anybody knows how to print page range say first 3 and last 4 pages?
Thanks guys!
I can use the following to get total number of pages in a PDF file:
lcStr = filetostr(getfile('pdf'))
lnPOS = At("/Count",lcStr)
If lnPOS > 0
lcPageCount = alltrim(substr(lcStr, lnPOS, 9))
lnPageCount = VAL(STRTRAN(lcPageCount,'/Count',''))
?lnPageCount
endif
Anybody knows how to print page range say first 3 and last 4 pages?
Thanks guys!