Fixed documents did not have access to config when printing in back end (#862)