Hi,
I want to create an Android App which can read \ write PDF files and display the PDF files embedded inside my App itself.
To start, I would like try the Foxit samples but unsuccessfully.
By following the steps of the tutorial "Using Foxit on the Android Platform", I don't understand step 5 a.
------------------------------------------------------------------------------------------------------
The demo is shipped as:
LOCAL_LDLIBS += ../bin/# fill in library name here
To add downloaded libfoxit.a from step 2, fill in as:
LOCAL_LDLIBS := ../bin/libfoxit.a
If the library provide is not named "libfoxit.a" please adjust accordingly.
-------------------------------------------------------------------------------------------------------
Here are the contents of my Android.mk file in "fpdfemb_android/examples/demos/demo/jni/":
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := fpdfembedsdk
LOCAL_SRC_FILES := ../../jni/FoxitEMBSDK_EMBJavaSupport.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../include
LOCAL_LDLIBS := -llog -g -L. -ljnigraphics
#fill in the foxit library here
LOCAL_LDLIBS += ../bin/libfpdfemb_android.a
include $(BUILD_SHARED_LIBRARY)
After several attempts, I started compiling with the default file.
This one was a success, but when I launch my App, it crash.
I check if my files exist, and I update the parameters of the function named EMBJavaSupport.FSUnlock in the WrapPDFFunc.java with the corresponding License ID and Unlock Code specified in the sn.txt.
However the log in a FPDFDocLoad(int fileRead, String password) function tell me invalidLicenseException message :
"4527-4527/com.foxitsample.view V/FoxitDoc﹕ FPDFDocLoad: Doc did not load properly"
Thanks and Regards,
--
Z4195
I want to create an Android App which can read \ write PDF files and display the PDF files embedded inside my App itself.
To start, I would like try the Foxit samples but unsuccessfully.
By following the steps of the tutorial "Using Foxit on the Android Platform", I don't understand step 5 a.
------------------------------------------------------------------------------------------------------
The demo is shipped as:
LOCAL_LDLIBS += ../bin/# fill in library name here
To add downloaded libfoxit.a from step 2, fill in as:
LOCAL_LDLIBS := ../bin/libfoxit.a
If the library provide is not named "libfoxit.a" please adjust accordingly.
-------------------------------------------------------------------------------------------------------
Here are the contents of my Android.mk file in "fpdfemb_android/examples/demos/demo/jni/":
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := fpdfembedsdk
LOCAL_SRC_FILES := ../../jni/FoxitEMBSDK_EMBJavaSupport.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../include
LOCAL_LDLIBS := -llog -g -L. -ljnigraphics
#fill in the foxit library here
LOCAL_LDLIBS += ../bin/libfpdfemb_android.a
include $(BUILD_SHARED_LIBRARY)
After several attempts, I started compiling with the default file.
This one was a success, but when I launch my App, it crash.
I check if my files exist, and I update the parameters of the function named EMBJavaSupport.FSUnlock in the WrapPDFFunc.java with the corresponding License ID and Unlock Code specified in the sn.txt.
However the log in a FPDFDocLoad(int fileRead, String password) function tell me invalidLicenseException message :
"4527-4527/com.foxitsample.view V/FoxitDoc﹕ FPDFDocLoad: Doc did not load properly"
Thanks and Regards,
--
Z4195
Comment