Update PDF Metadata with Java REST API

This short guide shows you how to PDF metadata manipulation using Java and the Aspose Cloud REST API, letting you modify document properties directly from your Java application without any third‑party tools. For more details on the PDF format, see the official PDF file info page.

Prerequisite

Steps to edit PDF properties with Java Low Code API

  1. Create a PdfApi instance and configure it with your client ID and client secret.
  2. Upload the source PDF file to cloud storage using the UploadFile method, specifying the file name.
  3. Invoke the PutSetProperty() operation to assign a new value to a chosen property.
  4. Repeat step 3 for each additional property you need to modify.
  5. Download the updated PDF from cloud storage and save it locally.

The steps above outline how to change properties of a PDF file with the Java RESTful service: upload the file, call PutSetProperty() as many times as required, then retrieve the modified document.

Code to modify PDF properties with Java REST API

The snippet demonstrates how to edit PDF file properties with the Java Low Code API. Call PutSetProperty() repeatedly to update multiple properties, handling any error codes returned by the API as needed.

For related operations such as rearranging pages, see the article: Reorder PDF pages with Java REST API.

Keywords: how to change properties of a pdf file with Java Low Code API; update pdf metadata with Java REST API; change pdf properties with Java REST Interface; change properties of pdf file with Java RESTful Service; edit pdf file properties with Java Low Code API.