Skip to main content
Participant
Feb 8, 2024 3:41 PM UTC
Answered

Pdf Services API for Android Application

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

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Raymond Camden
    Raymond CamdenCorrect answer
    Community Manager
    Feb 8, 2024 9:44 PM UTC

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

    3 replies

    Raymond Camden
    Community Manager
    Community Manager
    Feb 8, 2024 4:15 PM UTC

    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. 

    Translate
    Micah MAuthor
    Participant
    Feb 8, 2024 5:21 PM UTC

    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!

    Translate
    Raymond Camden
    Community Manager
    Raymond CamdenCommunity ManagerCorrect answer
    Community Manager
    Feb 8, 2024 9:44 PM UTC

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

    Translate