Create Word Doc- Convert To Pdf- Then Concatenate other files

Hello, I am using the latest versions of Aspose.Words & Aspose.Pdf.


I am dynamically creating a document, in either Word or Pdf Format. I wrote my code to create the word document, then I either save as Pdf or Word using the SaveFormat options. This is really nice because I don’t have to write a second procedure to do the Pdf creation. However I want to tap into Aspose.Pdf file concatenation feature.

So what I would like to do is, Create a Word Document using Aspose.Words, Save it As PDF. Use the resulting PDF and concatenate new files to it using:

pdfDocument1.Pages.Add(pdfDocument2.Pages);

Source: Concatenate PDF documents in C#|Aspose.PDF for .NET

Is this possible?

Thank You,

Coty

Hi Coty,


Thanks for your inquiry. Yes this is possible and your understanding is correct. You can covert Word/Excel files to Pdf using Aspose.Words/Aspose.Cells. Once all office files are converted to individual Pdf files, you can use Aspose.Pdf to concatenate all Pdf files into one big PDF.

Best regards,