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

Autotext/Glossary support, and output to PDF

Hi,

I'm evaluating DocIO, and I have 2 critical requirements.

1. My project requires the use of AutoText (known as Glossaries in Word2007 format).

2. I also need to optionally output Word documents to PDF format. I realize that I may need to use DocIO in combination with your PDF product, but I'd like to know if there is the functionality for easy PDF output from the Word document format.

Thanks for your help.


1 Reply

YG Yavanaarasi G Syncfusion Team April 23, 2008 01:20 PM UTC

Hi John,

Thank you for your interest in Syncfusion products.

1.Use of AutoText:

You can use the below code snippet for using AutoText.


[C#]

WordDocument doc = new WordDocument( );
IWSection sec = doc.AddSection();
IWParagraph par = sec.AddParagraph();
par.AppendField("EssentialDocIO", Syncfusion.DocIO.FieldType.FieldAutoText);
par = sec.AddParagraph();
//Save the file into disk.
doc.Save("sample.doc");



2.Word documents to PDF:

Currently we don’t provide direct conversion support from Doc to PDF. We have stopped support for this feature. In future implementation we will take care this kind of issues. Sorry for the inconvenience caused.

But you can read the word document into PDF using DocIO library. This can be achieved by enumerating the document elements and write its content into PDF.

Please refer the sample below and let me know if this helps.

http://websamples.syncfusion.com/samples/DocIO.Windows/73128/main.htm


But you need to manually control the document elements in the PDF document.

Please let me know if you have any concerns.

Regards,
G.Yavana


Loader.
Live Chat Icon For mobile
Up arrow icon