Export PDF with page number

Is there a way to export PDF with page numbers ?

I tried something like this but not working …

@page:right{
   @bottom-right {
   content: counter(page);
    }
 }

Many Thanks !

I’d like to know if there is any good way to ‘export to pdf’ with page number.

If not, it would be great if that function is implemented into “Obsidian.”

what I do right now, as a temporary alternative, is to use VSCode + Markdown PDF extension.

p.s. Markdown Preview Enhanced extension works as well.

It would be super nice to have this in the obsidian.

This feature is also needed.

I would be happy to see this in Obsidian!

I would like this too. Some of my documents are many pages, and it would be really helpful to add page numbers when exporting to PDF.