Extracting documents from a PDF containing multiple documents