Render epub files in android

后端 未结 3 737
萌比男神i
萌比男神i 2020-12-07 15:16

I have a epub file. I need to unzip and parse the epub file and render it in Webview. Is there a step by step tutorial somewhere.

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 15:59

    If you want to use stage web view for rendering epub simply pass the epub directly....The android native web kit browser supports almost all formats for rendering.

    var stageWebView:StageWebView = new StageWebView;
    stageWebView.stage = stage;  
    stageWebView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight-100);  
    stageWebView.loadURL("http://localhost/eboard.pdf"); // use any path
    

    You dont require any zip/unzip or parsing....but in case you do not go for web view then you might need that...

提交回复
热议问题