PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Add attachments to PDF documents?
http://forum.pdfsharp.com/viewtopic.php?f=2&t=3803
Page 1 of 1

Author:  MoonTimber [ Tue Jun 26, 2018 10:14 pm ]
Post subject:  Add attachments to PDF documents?

There are some really old threads in which the answer to my question was "no, it can't be done". I'm hoping that sometime in the past few years the functionality I'm looking for has been added, and that someone can provide an example of how to do it.

I have to capture outgoing email messages, then convert them to PDF documents for a document management system. Some of the outgoing messages have MS Word attachments, which also need to be included in the records. I've figured out how to capture the outgoing emails and convert them into PDF with PDFSharp and HtmlRenderer, but I'm lost on how to handle the attachments.

I know there is a way to do it with iTextSharp, but if I include that in my namespace I get "ambiguous reference" errors where iTextSharp and PDFSharp clash. I could code around this, but it would be much cleaner if PDFSharp or MigraDoc could handle the task.

Any suggestions?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/