jangko / nimpdf

PDF document writer, written in nim lang
Other
171 stars 10 forks source link

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

Open retsyo opened 3 years ago

retsyo commented 3 years ago

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
jangko commented 3 years ago

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.