I am developing a ePub reader and i am using a pdf reader for it Code
The problem is how convert epub to pdf so i can use the same reader(Leaves)
Other option is Leaves epub reader version is available then its better idea...
Some code for read pdf file :
CFURLRef pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("BornToRun.pdf"), NULL, NULL);
pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
CFRelease(pdfURL);
Thanks...
Th ePub file contains html or xhtml files with some xml, What you have to do is,
1, You need to decompress the ePub file (rename .ePub to .zip, then u can decompress easily). 2, Convert the html files to PDF. Ref
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.