rudimentary type and format mapping from file extension in place. also,
retrieve pdf intermediate result, if any.
adjusted for null provenance