Merge "Fix the use of pdfium" into rvc-dev
This commit is contained in:
@@ -110,7 +110,7 @@ static void nativeSetTransformAndClip(JNIEnv* env, jclass thiz, jlong documentPt
|
|||||||
jlong transformPtr, jint clipLeft, jint clipTop, jint clipRight, jint clipBottom) {
|
jlong transformPtr, jint clipLeft, jint clipTop, jint clipRight, jint clipBottom) {
|
||||||
FPDF_DOCUMENT document = reinterpret_cast<FPDF_DOCUMENT>(documentPtr);
|
FPDF_DOCUMENT document = reinterpret_cast<FPDF_DOCUMENT>(documentPtr);
|
||||||
|
|
||||||
FPDF_PAGE* page = (FPDF_PAGE*) FPDF_LoadPage(document, pageIndex);
|
FPDF_PAGE page = FPDF_LoadPage(document, pageIndex);
|
||||||
if (!page) {
|
if (!page) {
|
||||||
jniThrowException(env, "java/lang/IllegalStateException",
|
jniThrowException(env, "java/lang/IllegalStateException",
|
||||||
"cannot open page");
|
"cannot open page");
|
||||||
|
|||||||
Reference in New Issue
Block a user