convert word documnet into pdf using placeholders in that word documnet using itextSharp RRS feed

  • Question

  • User-2068742896 posted

    Hi frnds,

    I have a word documnet with place holders like {{name}}. I need to replace these place holders with db data and generate pdf.



    Friday, January 25, 2013 2:52 AM

All replies

  • User-1439071380 posted

    I suggest to change the place holders as fileds like this <<name>> and then use mailmerge to merge data into fields. Then convert this document to PDF.

    For how to mail merge, this article may give you some suggestion.

    And generate Word to PDF just as the following sentence:

                document.SaveToFile("toPDF.PDF", FileFormat.PDF);

    Tuesday, January 29, 2013 1:24 AM