When you export your InDesign layout with in5, the dimensions of the page are used to create the exported document.
It might help if you could send us your file with additional information about what you're trying to make. Would you be able to send us the following?