Due to the fact this will be slightly longer than your ceiling height and cannot be adjusted, a better idea would be able to go for a sliding ladder which you can adjust the height on to do this. - This is one such example - https://www.insulationsuperstore.co.uk/product/werner-bs-en-14975-3-section-aluminium-loft-ladder-with-handrail.html