我可以在android应用程序中生成PDF文件iText,因此生成PDF文档但
图像不包含在PDF文件中.
我已经正确编译了MuPDF,并且能够毫无问题地运行示例应用程序,但是:
问题
我想有一个类似的功能highlights,underlines, sticky notes, arrows, lines, ovals, rectangles, freehand drawings and text boxes on which user long pressed by his finger,如RepliGo PDF阅读器 PDF阅读器等.
我搜索了很多,但没有找到任何相关的方式,链接或提示来实现所需的功能.
有人可以就如何实现上述功能分享任何想法吗?
如果有人可以通过共享一些代码或示例来解释它,那将会更有帮助.
我有一个视频文件(.MP4格式),我想让用户能够将视频下载到他们的SD卡.我目前使用此代码,但它无法正常工作..
String PATHSdcard = "/sdcard/Video/";
public void DownloadFromUrl(String VideoURL, String fileName)
try { URL url = new URL("https://javmed-prod.s3.amazonaws.com/666034cbe81045f2a2da50e5205e376b.mp4");
File file = new File(fileName);
long sTime = System.currentTimeMillis();
URLConnection URLcon = url.openConnection();
InputStream is = URLcon.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);
ByteArrayBuffer baf = new ByteArrayBuffer(50);
int current = 0;
while ((current = bis.read()) != -1) {
baf.append((byte) current);
}
FileOutputStream fos = new FileOutputStream(PATHSdcard+file);
fos.write(baf.toByteArray());
fos.close();
} catch (IOException e) {
Log.d("ERROR.......",e+"");
}
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助!