Extracting text and pictures