We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert EPUB File to PDF Format

Hi there,

I have some issues with converting file which I attach to the post.


This

Aspose.Pdf.Document doc = new Aspose.Pdf.Document(, new EpubLoadOptions());<o:p></o:p>

doc.Save(, Aspose.Pdf.SaveFormat.Pdf);


Leads to this:


<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”>System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.
<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в Aspose.HTML.Rendering.XslFo.XslFoBuilder.ProcessDocument(IDocument document, BrowsingContext context)<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в Aspose.HTML.Rendering.Aps.ApsConverter.Convert(Document document, ConverterOptions options)<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в Aspose.HTML.Rendering.Aps.ApsConverter.Convert(String htmlContent, ConverterOptions options)<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в Aspose.Epub.EpubToApsConverter.ConvertXHTML(EpubToApsConverterOptions options, OpfInfo opfInfo, Item item, OcfPackage ocfPackage, List1 pages, List1 pageMapping)<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в Aspose.Epub.EpubToApsConverter.Convert(Stream epubStream, EpubToApsConverterOptions options, IEpubToApsCallback epubToApsCallback)<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в Aspose.Epub.EpubToApsConverter.Convert(Stream epubStream, EpubToApsConverterOptions options)<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в .(Stream , MarginsAreaUsageModes , SizeF , MarginInfo )<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в .(Stream , Document , EpubLoadOptions )<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в Aspose.Pdf.Document.(Stream , LoadOptions )<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”> в Aspose.Pdf.Document…ctor(String filename, LoadOptions options)<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”>
<div style=“box-sizing: border-box; color: rgb(34, 34, 34); font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, “Helvetica Neue”, Helvetica, Ubuntu, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);”>I’m using Aspose.PDF v17.1.0

Hello there,


Thanks for using our API’s.

I have tested your provided EPUB file with valid license and have not managed to convert it into PDF. I have logged it as PDFNET-42206 in our issue tracking system for further investigation.

Please be patient and spare us little time. We are sorry for this inconvenience.

Best Regards,
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial; -webkit-text-stroke: #000000} span.s1 {font-kerning: none}