Appends content to a PDF document based on a provided source