Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Are we able to add page numbers to a pdf in Preview?

The last time I saw a thread on this was 2017. I thought surely there would be a present feature to do this. I want to add page numbers to a multi-page pdf in Preview. Do I find it under tools? Where would I find this? I'm using a MacBook Pro with macOS Tahoe Version 26.7.1. Thanks

2 replies

No, you would need a "real" PDF document editing tool. Automatic page numbering is not among Preview's robust feature set.


The only way to add them would be to manually insert text onto each page — an ugly workaround that I doubt would interest you.

I have a Swift script that I have tested with a multi-page PDF on macOS Golden Gate (27.0.1) and it adds page numbers right-aligned at the bottom of each page.


Translating this to AppleScript/Objective-C produces a new PDF, however without page numbers. Vexing, as the code functionality should be producing page numbers which I have proven to be in the individual page annotations.