Is there a way to combine/merge different format files into a PDF (.txt, .Doc, .tif, pdf, .html ….)?

Q: Is there a way to combine/merge different format files into a PDF
(.txt, .Doc, .tif, pdf, .html ….)?
-------------

A: You can use pdftron.PDF.Convert.ToPDF() and pdftron.PDF.Html2Pdf
to convert and append various document formats to a given PDF
document. As a starting point you may want to take a look at Convert
and Html2Pdf samples:

Btw, an alternative way to merge multiple PDF documents is as follows:

using (PDFDoc new_doc = new PDFDoc()) {
   new_doc.InitSecurityHandler();
   for (int i = 1; i <= num; ++i) {
   using (PDFDoc in_doc = new PDFDoc("doc_" + i + ".pdf"))
      new_doc.InsertPages(i, in_doc, 1, in_doc.GetPageCount(),
PDFDoc.InsertFlag.e_none);
    }
   new_doc.Save("merged.pdf", SDFDoc.SaveOptions.e_remove_unused);
}