As Google Docs slowly begins to take form as a legitimate office replacement, there are still a few glaring feature absences. One of those is the inability to add custom-formatted page numbers or dates to your documents. If you don't mind rolling up your sleeves and getting your hands a little dirty, Google Operating System tells us how to add page numbers and other information to your document's header or footer. This involves a little HTML editing, so consider yourself warned.
Note: If you simply want page numbers added to your Google Doc, and you don't need to customize them by adding color, size, or scheme, then you're better off exporting the document as a PDF and selecting the bullet that adds page numbers to your document. In other words, the following method is useful only if you want more customization than Google Docs by default provides.
In order to add a header that displays, for example, "Page (current page number) of (total number of pages)", open your Google Doc, click on "Edit HTML" (right next to the Revisions tab), and add this code at the very beginning of the code:
<div style="text-align: right;" class="google_header">Page <span class="google_pagenumber">1</span> of <span class="google_pagecount">1</span></div>
To add the same information to the footer, add this code to the bottom of the document:
<div style="text-align: right;" class="google_footer" id="google_footer">Page <span class="google_pagenumber">1</span> of <span class="google_pagecount">1</span></div>
Now that the code is in, you can customize it any way you desire.














Reader Comments (Page 1 of 1)
3-11-2008 @ 12:21PM
L.T. said...
Meh. Google Docs is unusable as long as nearly every keystroke is saved as a "revision." Once they figure out the difference between unlimited-undo and document versioning, then I'll be interested in additional features.
Reply
3-14-2008 @ 7:21AM
Samuel said...
One thing I still have an issue with is the loss of metadata in the properties of an uploaded Word document.. I don't want to loose that data when uploading files and expect it to be present when saving to disc
Reply
5-01-2008 @ 6:12AM
Amit said...
International Services is a cheating company. That company just cheat the people, so do not give you money to them.
Reply