如何在android中卷曲pdf页面
我搜索了很多,但没有得到适当的代码来实现在我的项目中,我想卷曲PDF文件的每一页,就像普通的书,但不能这样做,在我的代码中,当我点击按钮PDF文件加载从sdCard如何在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(
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拆分为单独的页面,然后抓取它生成的单个页面可能类似于: