I've recently embedded PDF.js on to a website to display PDFs and allow them to be printed.
However, when printing, a blank page is being inserted on every other page (ie pages 1,3,5.. are correct but pages 2,4,6.. are blank).
Occasionally when printing, a single page flows over to the next page (only by a line or 2) and then page breaks to the next (so a 2 page PDF becomes 4 etc) which may explain the blank page if it thinks the first page flows over to the next page by a very very marginal amount (not enough to display any text on the blank page).
The PDF displays fine in the viewer itself but so i'm not entirely sure what's going on with the printing.
Does anyone have any idea why this would be the case? I think I have a general idea about how it displays the PDF on a canvas before printing but I'm not greatly familiar with it. Any helpful pointers would be greatly appreciated!