nimpdf icon indicating copy to clipboard operation
nimpdf copied to clipboard

any way to add page numbers on existing PDF file page?

Open retsyo opened this issue 4 years ago • 1 comments

I have searched solution for python, 2 ways to add page numbers (with custom position, font name, font size) involving in opening existing PDF file as template. I have glimpsed nimpdf but found that it only creates PDF from scartch so there is no way to add page numbers to existing PDF file till now, did I miss something?

  1. way 1, draw text on separated pages
  2. way 2, read page from watermark.pdf then add it to separated pages

retsyo avatar Jan 31 '21 01:01 retsyo

no, nimPDF is a PDF writer. What you asked for require a PDF parser with PDF manipulation capability. but probably you could try muPDF, I never tried it for adding page number, but it has numerous tools to manipulate existing PDF file.

jangko avatar Feb 01 '21 03:02 jangko