public static void Main(string[] args) { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); // Instantiate LoadOption object using EPUB load option EpubLoadOptions epubload = new EpubLoadOptions(); // Create Document object Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(dataDir + "Sample.epub", epubload); // Save the resultant PDF document pdf.Save(dataDir + "output.pdf"); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion(); // Instantiate LoadOption object using EPUB load option EpubLoadOptions epubload = new EpubLoadOptions(); // Create Document object Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(dataDir + "Sample.epub", epubload); // Save the resultant PDF document pdf.Save(dataDir + "EPUBToPDF_out.pdf"); }
public static void Run() { try { // ExStart:EPUBToPDF // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion(); // Instantiate LoadOption object using EPUB load option EpubLoadOptions epubload = new EpubLoadOptions(); // Create Document object Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(dataDir + "EPUBToPDF.epub", epubload); // Save the resultant PDF document pdf.Save(dataDir + "EPUBToPDF_out_.pdf"); // ExEnd:EPUBToPDF } catch (Exception ex) { Console.WriteLine(ex.Message); } }
public static void Run() { try { // ExStart:EPUBToPDF // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion(); // Instantiate LoadOption object using EPUB load option EpubLoadOptions epubload = new EpubLoadOptions(); // Create Document object Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(dataDir + "EPUBToPDF.epub", epubload); // Save the resultant PDF document pdf.Save(dataDir + "EPUBToPDF_out.pdf"); // ExEnd:EPUBToPDF } catch (Exception ex) { Console.WriteLine(ex.Message); } }