How to convert Elements to different file formats?