Skip to main content
April 1, 2022
Question

How to add page numbers in the document

  • April 1, 2022
  • 6 replies
  • 1 view

Hi Everyone,

I have been stuck in one of my requirement and seeking help. I have a report which gets downloaded in the pdf form. The report should have a page number at the bottom in the form of "1 of 10" like that. Can anyone please guide me how can I achieve this. Please note that pdf is generated from docx template.

Many Thanks

    6 replies

    mathieud0001
    Brainy
    April 1, 2022

    The way I've done this in the past was to generate a first version of the PDF, get the number of pages that got generated using the Get PDF Metadata function and then add the page numbers back in using Create PDF Content. In my case, I was merging multiple files together.

    Both functions are available in the PDF Tools plugin.

    If you're going straight from docx from PDF, I would look to see if the automatic paging in the Word doc would work.

    stefanhelzle0001
    Brainy
    April 1, 2022

    I have good experience with the HTML-to-PDF plugin. It supports CSS styles for printing including automatic page numbering.

    April 1, 2022

    Hi Stefan, I am using docx template to generate pdf report. If you can help me with that.

    stefanhelzle0001
    Brainy
    April 1, 2022

    Sorry. I try to avoid using docx as templates.