Logical content extraction and conversion