如何找到并通过为Android mupdf库检索的PDF文件中的视频内容文件、内容、视频、Android

2023-09-13 02:20:49 作者:失心少年不暮城i

我需要检查,如果一个富媒体内容(视频嵌入到PDF文件)可在PDF文件或无法通过mupdf库Android应用程序。

I need to check if a Richmedia content (video embedded in a pdf file) is available in a pdf file or not via mupdf library for an android application.

如果它是那么我就需要通过检索PDF解析流内容,并转换到一个字节数组,并运行在PDF中的视频。

If it is then I need to retrieve the stream content via pdf parsing and convert in to a byte array and run the video found in the pdf.

这可能吗?

推荐答案

MuPDF不支持嵌入式视频。你仍然可以使用这个库检查PDF对象结构,并从PDF文件中提取数据流。看看pdfshow和pdfextract工具的灵感。

MuPDF does not support embedded video. You can still use the library to examine the PDF object structure and extract data streams from PDF files. Look at the "pdfshow" and "pdfextract" tools for inspiration.