Adding blank pages to PDF when requirements are met

Hi there,

I need to insert blank pages in a large PDF doc only once after it finds a specific word on that page and is odd.

For eg: If the page has the word “Print this document” and the page number is 5, then insert a blank page only after it.
If the page has the word “Print this document” and the page number is 6, then insert a blank page before and after it.
If the page does not have the word “Print this document”, do nothing.

The code sounds simple but I am just not sure.

Thanks if anyone could help would really appreciate it.

Are you creating the PDF from your code, or working with an existing PDF file?

jsPDF jQuery plugin can help

https://rawgit.com/MrRio/jsPDF/master/docs/index.html

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.