Moved PDF creation into separate script