Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment