如何将 PDF 文件传递给 GlSurfaceView 并渲染它?
我是 android 中 openGlSurfaceView 的新手。我想将 PDF 文件传递到此表面视图。我还想为 PDF 文件添加放大/缩小选项。正如我遇到的,绘制三角形及其 3D 视图,仅给出旋转。任何人都可以帮我做这件事吗?有这方面的具体教程吗?
I am new to openGlSurfaceView in android. I want to pass a PDF file to this surface view. Also I want to include a zoom in/out option for the PDF file. As I came across, drawing triangle and its 3D view, rotation only given. Can any one help me in doing this? Is there any specific tutorial for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要渲染 PDF 文件,您需要一个 PDF 库。例如 Poppler 就是一个开源的。这不像渲染位图那样简单。
To render a PDF file you need a PDF library. For example Poppler is an open source one. It's not a straightforward thing, like rendering a bitmap.