I got the following error:java.io.IOException: The document has no pages.
How to resolve the above error?
I think you are using doccument in your page ...reason for this is that doc not having any value or it is empty