Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
Last active July 4, 2021 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-cloud/e55c5bd17b16c6d8e73b3f3ab8a0b0f8 to your computer and use it in GitHub Desktop.
Save aspose-cloud/e55c5bd17b16c6d8e73b3f3ab8a0b0f8 to your computer and use it in GitHub Desktop.
This Gist contains code snippets related to Convert EPUB to PDF using C#
This Gist contains code snippets for EPUB to PDF conversion using C# .NET.
// get client credentials from https://dashboard.aspose.cloud/
string clientSecret = "388e864b819d8b067a8b1cb625a2ea8e";
string clientID = "718e4235-8866-4ebe-bff4-f5a14a4b6466";
// create an object of PdfApi by passing Client credentials details
PdfApi api = new PdfApi(clientSecret,clientID);
// input EPUB file
string name = "Alices_Adventures_in_Wonderland.epub";
// resultant PDF filename
string resultName = "Converted.pdf";
// perform EPUB to PDF conversion
var response = api.PutEpubInStorageToPdf(resultName, name, null);
// print response code in console
Console.WriteLine(response.Code);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment