Given a .doc file containing some placeholders in the form of the pattern {placeholder_here} and a replacement strategy (a mapping between placeholder texts and the content to be inserted), it applies the replacements and converts the document into a .pdf.