📜 ⬆️ ⬇️

Add page numbers to Google Documents

In Google Documents, it is not possible to add automatic pagination of the document by standard means (via the interface). But it is possible to add the necessary HTML code, with which we will display page numbering in the header and footer.

While in the document, click the button "Edit HTML". Add the following code to the beginning of the text (for the header):

<div style = "text-align: right;" class = "google_header"> Page <span class = "google_pagenumber"> 1 </ span> of <span class = "google_pagecount"> 1 </ span> </ div>
')
When you save the document in PDF format, the title of the pages will look like this:


To display footers, add the following 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>

Based on: Google Operating System (Eng.)

ps
As I understand it, it works only for PDF.

Source: https://habr.com/ru/post/21491/


All Articles