Frequently Asked Question:
ExtractFilePages function creates a blank pdf
I am using the ExtractFilePages function to split multi page pdfs up, and sometimes when I run it on a pdf with only 1 page I get a blank pdf for the output. Does anyone know why this happens?
Without being able to replicate the problem on my end using your code and document, it's a bit hard to replicate -- it's not something I've encountered before.
I ran a small test on my end, trying to extract one page from a one page document, and I got the correct result.
QP.ExtractFilePages("QLPBooks.pdf", "QLPBooks_extracted.pdf", "1");
Which suggests to me that the problem you're encountering is specific to certain files. If you would like to send us any documents that you have which demonstrate this problem, we'll be happy to investigate this issue on our end.