Android pdf转换bitmap保存到本地
PDF转换成图片保存到本地 Android有自带的API提供 首先要把PDF文件下载到本地,下载成功使用
下载就最简单的IO下载都行
例如:
try {
URL url = new URL(downUrl);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
final int contentLength = connection.getContentLength();//文件大小
InputStream inputStream = connection.getInputStream();
File file = new File(saveFilePath);
if (!file.exists()) {
file.mkdir();
}
String newfile= saveFilePath+saveFileName;
File newFile = new File(newfile);
FileOutputStream fileOutputStream