Translate academic document with pixel-level formatting