We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Doc to PDF : add pdf as an Attachment

Hi,


I am looking for some help, where I want to add the pdf generated as an attachment to my mail ( in C#.NET).

I am using your sample to create generate the pdf:

WordDocument wordDoc = new WordDocument("sample.doc");
DocToPDFConverter converter = new DocToPDFConverter();
// Convert word document into PDF document
PdfDocument pdfDoc = converter.ConvertToPDF(wordDoc);
// Save the pdf file
pdfDoc.Save("DoctoPDF.pdf");


Appreciate your suggestions.

8 Replies

VS Vijayakumar S Syncfusion Team August 14, 2009 11:54 AM UTC

Hi Vinod,

Thank you for using Syncfusion products.

We have prepared a sample for your requirement. Could you please try running the sample in the below link and let us know if this helps.

http://files.syncfusion.com/support/DocIO.Windows/59070/PDFasAttachment.zip

Please let us know if you have any questions.

Regards,
Vijay


PN Phuoc Nguyen March 25, 2010 12:03 AM UTC

Hi Vijay,

What namespace / dll should I reference to use DocToPDFConverter?

Thanks,

Phuoc


AD Administrator Syncfusion Team March 26, 2010 05:57 AM UTC

Hi Phuoc,

Thank you for using Syncfusion products.

For converting from a Word document to a PDF document kindly include the following "Assemblies"

1.Syncfusion.DocToPDFConverter.Base.dll
2.Syncfusion.DocIO.Base.dll
3.Syncfusion.Pdf.Base.dll
4.Syncfusion.Core.dll
5.Syncfusion.Compression.Base.dll

and following "Namespace"

1.Syncfusion.DocIO;
2.Syncfusion.DocIO.DLS;
3.Syncfusion.DocToPDFConverter;
4.Syncfusion.Pdf;

For more information please refer the following link.
http://help.syncfusion.com/ug_81/Reporting_DocIO/DocToPDF.html

Please let us know if you have any questions.

Regards,
Manigandan



PN Phuoc Nguyen March 31, 2010 07:12 AM UTC

Hi Manigandan,

Is the doc to pdf solution available to SilverLight? If so what libraries do I reference?

Thanks,

Phuoc


PR Poornima R Syncfusion Team March 31, 2010 09:35 AM UTC

Hi Phuoc,

Thank you for your interest in Syncfusion Products.

Currently in Silverlight we have only doc format support. We have implemented word2007 docx format support in Silverlight and it is included in our next release which is going to be released by the third week of April 2010.We do not have the support for the conversion part as follows
1.Doc to Pdf
2.Doc to Html
3.Html to Doc
4.Doc to RTF
5.Doc to Image

We might implement this feature in our future releases.Sorry for the inconvenience caused.

Please let us know if you have any further queries.

Regards,
Poornima


HR Héctor Reyes September 12, 2014 07:59 PM UTC

"The file you are looking for is not available..."

Hi, can you upload the file again :D ??



RO Roberto replied to Héctor Reyes April 4, 2018 11:38 AM UTC

"The file you are looking for is not available..."

Hi, can you upload the file again :D ??


klç~ç


MJ Mohanaselvam Jothi Syncfusion Team April 5, 2018 11:43 AM UTC

Hi Roberto,

Thank you for your update.

We have prepared a sample application to convert Word document into PDF and to get the generated PDF as an attachment. Please find the sample from the below location and let us know if this helps you:
http://www.syncfusion.com/downloads/support/forum/88884/ze/WordToPDF2091399771.zip

Kindly refer the below UG documentation link to know more about Word to PDF conversion using DocIO:
https://help.syncfusion.com/file-formats/docio/conversion#converting-word-document-to-pdf


Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 


Loader.
Live Chat Icon For mobile
Up arrow icon