Translating documents from 2D to 3D