Hi:
That's another good question for Tech Support (whether you'll get page numbers with ODS DOCUMENT). You may want to read the ODS DOCUMENT info
http://support.sas.com/rnd/base/ods/odsdocument/ref.html and
http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002291458.htm
It may be easier all around for you to use actximg or javaimg drivers, at least, in SAS 9.1 because the 9.1 info says that:
If one of the following GOPTIONS DEVICE values
JAVA
JAVAIMG
ACTIVEX
ACTXIMG
is in effect when a graph created by a SAS/GRAPH procedure is stored in an ODS document, the graph's data and template will be stored. Instead of containing a reference to an external GRSEG, the persisted output object will be a fully self-describing internal graph that subsequently can be replayed to HTML, RTF, PDF, etc.
Since I did get page numbers with both the javaimg and actximg drivers -- it may be that if you switched to javaimg or actximg with ODS DOCUMENT, that you'd be OK (depending on what version of SAS you're running).
I did observe your same behavior in SAS 9.1.3, when I used the SASPRTC driver -- that there were no page numbers in the PDF pages with the graphical output. I don't know whether that behavior is the same in SAS 9.2 or not. And, with the use of the ODS GRAPHICS FRAMEWORK in SAS 9.2, I believe that your graph information is stored in a GRSEG entry in 9.2. That's yet another reason to contact Tech Support because you want to use code and drivers that work for your current level of SAS.
Whenever I use ODS HTML, RTF or PDF, I always use ACTXIMG or JAVAIMG drivers to create my graphical output. I find that the graphics look better in SAS 9.1.3 and I have fewer GOPTIONS to worry about since the SAS style template controls fonts and colors which means that my graph colors are compatible with my report colors.
Good luck!
cynthia