Added multiple_contexts_to_pdf_data again.
Merge restore of functions