i’m also sample_pub_file.zip (880.0 KB)
to convert .pub file to pdf/word/html/plain text . but not able to convert. above code is giving error. my intention is to extract text from .pub . This i can do, once .pub file is loaded to pdf/html/word, i can extract text from it. But the problem here is I can’t convert .pub to pdf/html/word .
Find attached sample .pub file, do need full.
try
{
EpubLoadOptions opt = new EpubLoadOptions();
var pdfInfo = new PdfFileInfo(path);
// pdfInfo all properties are null.
Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(path, opt);
}
catch (Exception ex)
{
//ERROR : ZipEntry::ReadHeader(): Bad signature (0xE011CFD0) at position 0x00000000
}