C converts Word to PDF using Aspose.Words.dll

  • 2020-05-19 05:32:28
  • OfStack

Just add a reference to aspose.words.dll in bin.


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Aspose.Words;
using Aspose.Words.Saving;
using System.IO;
namespace NewConvertBook
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            // read doc The document 
            Document doc = new Document(@"C:\Users\Administrator\Desktop\ There are problems with the flow control system  .doc");
            // Save as PDF File, here SaveFormat Supports many formats, such as images, epub,rtf  , etc. 
            doc.Save("temp.pdf", SaveFormat.Pdf);
        }
    }
}

One more time, dll is watermarked. If required no watermark. Please purchase the genuine dll. Or use the cracked version (not recommended, please support the author's rights)

Aspose. Words. http dll website: / / www aspose. com /. You can refer to api and its documentation for other USES.


Related articles: