是否有可能增加一个页面或替换页面中mupdf库? [英] Is it possible to add a page or replace a page in mupdf library?

查看:182
本文介绍了是否有可能增加一个页面或替换页面中mupdf库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用mupdf在我的项目之一。它几乎满足几乎我的要求,只是我不知道它是否支持添加新的页面或更换了新的一页?

I'm using mupdf in one of my project. It nearly meets almost my requirement except that I don't know if it supports to add new page or replace a new page?

mupdf的演示展示了如何将图层添加到当前页面(在页面上绘制),并保存它。但我不能找到函数来添加新的页面,删除页面。任何人都可以提出建议?谢谢

The demo of mupdf shows how to add a layer to the current page (draw on the page) and save it. But I can't find the function to add new page and delete page. Can anybody advise? Thanks

推荐答案

只是一些提示/想法。

我不太确定可用这样的方法与Java JNI的包装。

I'm not so sure that is available such method with the java jni wrapper.

但MuPDF允许您添加/删除页面。 如果你看一下源$ C ​​$ C <一个href="http://git.ghostscript.com/?p=mupdf.git;a=blob;f=include/mupdf/pdf/document.h;h=8c71d88bb9d8b24be9fd3a979e893249fbba8bf0;hb=HEAD"相对=nofollow>包含/ mupdf / PDF / document.h :

But MuPDF allow you to add/delete a page. If you look at the source code include/mupdf/pdf/document.h:

pdf_page *pdf_create_page(pdf_document *doc, fz_rect rect, int res, int rotate);
void pdf_delete_page(pdf_document *doc, int number);
void pdf_delete_page_range(pdf_document *doc, int start, int end);

如果你知道C,你可以尝试你的JNI包装函数添加到的平台/安卓/ JNI / mupdf.c

If you know C, you could try to add your jni wrapper functions to platform / android / jni / mupdf.c

这篇关于是否有可能增加一个页面或替换页面中mupdf库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆