insertBlankPages Example

Can someone please help to show an example of how to use “insertBlankPages” to add a blank PDF page to the end of the current PDF document?

Hi there!

Unfortunately PDF.js Express does not support any document manipulation, so the insertBlankPages won’t actually work.

If you need to support this you can check out the our sister product, PDFTron WebViewer. It supports adding pages as well as many other features.

PDFTron WebViewer actually shares the exact same API as PDF.js Express, so switching over is easy.