Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/210.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在android中卷曲pdf页面_Android_Pdf_Page Curl - Fatal编程技术网

如何在android中卷曲pdf页面

如何在android中卷曲pdf页面,android,pdf,page-curl,Android,Pdf,Page Curl,我搜索了很多,但没有得到适当的代码来实现在我的项目中,我想卷曲PDF文件的每一页,就像普通的书,但不能这样做,在我的代码中,当我点击按钮PDF文件加载从sdCard File file = new File("/sdcard/android.pdf"); if (file.exists()) { Uri path = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(

我搜索了很多,但没有得到适当的代码来实现在我的项目中,我想卷曲PDF文件的每一页,就像普通的书,但不能这样做,在我的代码中,当我点击按钮PDF文件加载从sdCard

File file = new File("/sdcard/android.pdf");
if (file.exists()) {
Uri path = Uri.fromFile(file);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(path, "application/pdf");
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
try {
     startActivity(intent);
      } 
      catch (ActivityNotFoundException e) {
       Toast.makeText(MainActivity.this, 
       "No Application Available to View PDF", 
                  Toast.LENGTH_SHORT).show();
                }
            }

curl获取完整的网页/文件。抓取或使用第三方工具或网站后,您需要将PDF拆分为单独的页面,然后抓取它生成的单个页面

可能类似于: