Appends content to a PDF document based on t