Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6263 Reply

    Hendrik

    Hi,

    I have an interactive PDF with many fields and the problem is that I can’t use the pinch zoom, because if the first touch hits a field the second touch isn’t recognised. If I create a native Android UI with for example many buttons, I can still use the pinch zoom. Is it possible to improve this behavior?

    Best regards,
    Hendrik

    #6269 Reply

    Dr. Plug
    Moderator

    Hi Hendrik,

    Sorry for your inconvenience. I think this is an issue on my side. I will update the fixed sdk as soon as possible, and let you know.
    Please wait a little bit.

    Thanks.

    Dr.Plug

    • This reply was modified 1 year, 10 months ago by  Dr. Plug.
    • This reply was modified 1 year, 10 months ago by  Dr. Plug.
    #6301 Reply

    Dr. Plug
    Moderator

    Hi Hendrik,

    I fixed this issue and updated the fixed PlugPDF SDK version 2.5.31 at the below link.
    http://plugpdf.com/sdkfile/PlugPDF_Android.zip

    I have provided a way for you to pinch zoom on the BaseField. Now, you can pinch zoom anywhere.

    Thanks.

    Dr.Plug

    • This reply was modified 1 year, 10 months ago by  Dr. Plug.
    #6374 Reply

    Hendrik

    Hallo Dr. Plug,
    thank you for the update, but it results in some other problems. The touch listener of a button is still called after stopping the pinch zoom. Also the zoom is really slow and if I zoom to fast the application crashes.

    01-23 09:10:14.525: E/AndroidRuntime(6690): java.lang.OutOfMemoryError: Failed to allocate a 6829176 byte allocation with 5833492 free bytes and 5MB until OOM
    01-23 09:10:14.525: E/AndroidRuntime(6690): at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.graphics.Bitmap.nativeCreate(Native Method)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.graphics.Bitmap.createBitmap(Bitmap.java:817)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.graphics.Bitmap.createBitmap(Bitmap.java:794)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.graphics.Bitmap.createBitmap(Bitmap.java:761)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.epapyrus.plugpdf.core.PDFDocument.drawAnnotAP(Native Method)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.epapyrus.plugpdf.core.PDFDocument.drawAnnotAP(PDFDocument.java:1158)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.epapyrus.plugpdf.core.annotation.acroform.ButtonField.onLayout(ButtonField.java:75)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.epapyrus.plugpdf.core.annotation.acroform.ButtonField.onLayout(ButtonField.java:70)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.epapyrus.plugpdf.core.viewer.PageView.onLayout(PageView.java:318)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.epapyrus.plugpdf.core.viewer.HorizontalDisplay.pageLayout(HorizontalDisplay.java:84)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.onLayout(SinglePageDisplay.java:596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.epapyrus.plugpdf.core.viewer.ReaderView.onLayout(ReaderView.java:807)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:494)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.View.layout(View.java:15596)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewGroup.layout(ViewGroup.java:4966)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2072)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1829)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1054)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5779)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.Choreographer.doCallbacks(Choreographer.java:580)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.Choreographer.doFrame(Choreographer.java:550)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.os.Handler.handleCallback(Handler.java:739)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.os.Handler.dispatchMessage(Handler.java:95)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.os.Looper.loop(Looper.java:135)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at android.app.ActivityThread.main(ActivityThread.java:5221)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at java.lang.reflect.Method.invoke(Native Method)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at java.lang.reflect.Method.invoke(Method.java:372)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    01-23 09:10:14.525: E/AndroidRuntime(6690): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

    Also it would be great, if I can use the pinch zoom when the first and the second touch are on different basefields.

    Best regards,
    Hendrik

    #6389 Reply

    Dr. Plug
    Moderator

    Hi Hendrik,

    Is there a lot of fields in the document? it’s one of our list of enhancements. our SDK is now lot of resource has been used to draw field. But, i already have any solution. So, please wait a little bit. I will fix this issue and talk to you as soon as possible.

    Thanks,

    Dr.Plug

    #6390 Reply

    Hendrik

    Hi,
    yes I have round about 200 fields.

    Best regards,
    Hendrik

    #6446 Reply

    Dr. Plug
    Moderator

    Hi Hendrik,

    I has been modified our SDK to reduce waste. Uses less resources than before, but i can’t be sure that your issue solved. So, please recheck the your issue.
    Here is latest PlugPDF download link : http://plugpdf.com/sdkfile/PlugPDF_Android.zip.

    Thanks.
    Dr.Plug

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Pinch zoom problem
Your information: