This gist explains the steps and code snippet on how to convert EPUB file to PDF documents using Aspose.PDF Cloud SDK for .NET.
For more information, please visit
This gist explains the steps and code snippet on how to convert EPUB file to PDF documents using Aspose.PDF Cloud SDK for .NET.
For more information, please visit
This Gist contains code snippets related to Converting EPUB to PDF using C# .NET |
// Get ClientID from https://dashboard.aspose.cloud/ | |
string clientSecret = "caac6e3d4a4724b2feb53f4e460eade3"; | |
string clientID = "4ccf1790-accc-41e9-8d18-a78dbb2ed1aa"; | |
// Create an instance of PdfApi | |
PdfApi pdfApi = new PdfApi(clientSecret, clientID); | |
// input EPUB file | |
String inputFile = "Sway.epub"; | |
// resultant PDF document | |
String resultant = "conveted.pdf"; | |
try | |
{ | |
// call the API to perform conversion | |
var response = pdfApi.PutEpubInStorageToPdf(resultant, inputFile); | |
// In case of success, print the success message | |
if (response != null ) | |
{ | |
Console.WriteLine("Successfully converted the EPUB to PDF !"); | |
} | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine("error:" + ex.Message + "\n" + ex.StackTrace); | |
} |