Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #8643 Reply

    Jason

    Hi,

    The following snippet fails to place an image in the upper left corner of the blank_page.pdf document.

    Is that ok?

    Thank you in advance.

    #8773 Reply

    Dr. Plug
    Moderator

    Hi Jason,

    I’m sorry for the delay in responding.

    I’ll fix this issue ASAP and release a new update.

    Please be a little patient.

    #8784 Reply

    Dr. Plug
    Moderator

    Hi Jason,

    Thanks for waiting. Our SDK has been updated!

    The latest version is available at http://plugpdf.com/sdkfile/PlugPDF_Android.zip

    Please don’t forget to call the save method after insertImageWatermark.

    Thank you again,

    Dr. Plug

    #8912 Reply

    Jason

    Hello, now I can put my image on the upper left corner of the blank_page.pdf, thank you.
    However the image is being cut by the insertImageWatermark method, which is only displaying 1/4 of the original image (specifically, the bottom right corner)

    #8961 Reply

    Dr. Plug
    Moderator

    Hi Jason,

    As you indicated, the coordinate calculation is a little awkward at this moment.

    Try to insert a watermark with this code:

    I’ll fix this by tomorrow.

    Thank you,

    Dr. Plug

    • This reply was modified 1 year, 5 months ago by  Dr. Plug.
    • This reply was modified 1 year, 5 months ago by  jordi.
    • This reply was modified 1 year, 5 months ago by  jordi.
    • This reply was modified 1 year, 5 months ago by  jordi.
    • This reply was modified 1 year, 5 months ago by  jordi.
    #9028 Reply

    Dr. Plug
    Moderator

    Hi Jason,

    Thank you for your patience.

    Now our SDK can insert images a bit more precisely! I’ve improved the API so that it is more clear to use.

    Please, download the newest version of the PlugPDF SDK and now use mReader.getPageRatio() instead of mReader.getPlugPDFDisplay().getPageView().getAnnotScale()

    #9036 Reply

    Jason

    Thank you Dr. Plug!

    Right now I’m not very clear about how I should insert the bitmap.

    Could you please attach a code snippet like the above for inserting a bitmap with the new release?

    Cheers,

    #9070 Reply

    Jason

    Hello Dr. Plug,

    Thank you for your help.

    I’ve finally been able to put my image in the upper left corner using getPageRatio as you indicated:

    Regards,

    #9138 Reply

    Dr. Plug
    Moderator

    Hi Jason,

    It is all for your feedback.

    your feedback makes our PlugPDF better!

    so if you have another question, don’t hesitate and just contact us.

    Best Regards,
    Dr.Plug

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Cannot put an image in the upper left corner of PDF document
Your information: