Skip to main content
Participant
February 8, 2024
Answered

Pdf Services API for Android Application

  • February 8, 2024
  • 1 reply
  • 593 views

Is it possible to implement the pdf services api in an android application (Java)?

    This topic has been closed for replies.
    Correct answer Raymond Camden

    No clue there, I mainly do JS and Python. However, if you skip the SDK and hit the REST APIs, it should be trivial. 

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    February 8, 2024

    You can implement it anywhere that can make a HTTP call. However - if you have it in a mobile app, it's possible that someone could sniff the network request to see the client id and secret being exchanged for an access token. (I assume so anyway, I know HTTPS is encrypted, but I'd worry about someone decrypting the mobile app itself.) 

    If, however, you proxy the calls to a server application, it would be safe. I would imagine you would require yours users to login, pass their credentials to the server to ensure an authorized user is calling, etc etc. 

    Micah MAuthor
    Participant
    February 8, 2024

    Thanks for the reply.

    For my use case, I am not worried about the security. I am trying to use the API to compress a pdf in an app that is kept within my company.

    I guess my question isn't entirely straightforward. I was able to set up the pdfservices library easily enough, but when it came to running the code, it would not work. I am sure that this is due to the differences Android adds into the mix. So, I guess what I am trying to ask is are you aware of any way to import the pdfservices api into an Android application?

    If this deserves a separate post, please let me know.

    Thanks!

    Raymond Camden
    Community Manager
    Raymond CamdenCommunity ManagerCorrect answer
    Community Manager
    February 8, 2024

    No clue there, I mainly do JS and Python. However, if you skip the SDK and hit the REST APIs, it should be trivial.