![]() ![]() Now you need to actually do the conversion in your app. Once you’ve done this, you should have PSPDFKit Server running on your machine. Follow it, making sure to put the public key you previously generated into the docker-compose.yml in the JWT_PUBLIC_KEY. We have a full guide explaining how you can run PSPDFKit Server in Docker here. You’ll use the public key when running Server, and the private key in your sample application for signing the JWTs you use. Have a look here to learn how to generate a new key for signing and validating JWTs. Let’s walk through configuring the minimal setup to work with this API. Generating JWTs inside the client app could make your private key vulnerable to reverse engineering. ![]() ⚠️ Warning: For production applications, we recommend using a separate service for token generation. For this reason, we only recommend this for development. Keep in mind that this poses a considerable security risk, since anyone with access to your app could extract the private key. You can also embed the private key used for signing the JWT in your app and generate the JWTs in your app directly. This is the recommended approach for production apps. This can be a separate service providing the tokens. Your license also needs to include the Office Files component.Ī way to obtain JWTs for use with the mobile conversion API, as described here. To make use of this, the following is required:Ī running instance of PSPDFKit Server with a version of at least 2020.2.6. For more information, see the PSPDFKit Server guide for opening office documents. PSPDFKit Server will convert the file and immediately return the converted PDF. The iOS or Android app using the PSPDFKit SDK uploads the Office file and a correctly formatted and signed JSON Web Token (JWT) to PSPDFKit Server. PSPDFKit for Android can work with a PSPDFKit Server instance to provide conversion of Office documents to PDF files in your Android application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |