PPTX DOCX XLSX PDF ODP
Aspose.PSD  for Java
PSD

Add Text Watermark to PSD via Java

Build your own Java apps to watermark PSD files using server-side APIs.

How to Watermark PSD File Using Java

In order to watermark PSD file, we’ll use

Aspose.PSD for Java

API which is a feature-rich, powerful and easy to use watermarking API for Java platform. You can download its latest version directly from

Aspose Maven Repository

and install it within your Maven-based project by adding the following configurations to the pom.xml.

Repository


<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>

Dependency

<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-psd</artifactId>
<version>version of aspose-psd API</version>
<classifier>jdk17</classifier>
</dependency>

Steps to Add Watermark to PSD via Java

  1. Load PSD with Image.Load method. Cast it into a PsdImage
  2. Create an instance of Graphics from the image.
  3. Define & set Font, Brush and Format for watermark text
  4. Draw watermark using drawString(…) function
  5. Save image to disc

System Requirements

Aspose.PSD for Java supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.

 

Add Watermark to PSD - Java

 
  • About Aspose.PSD for Java API

    Aspose.PSD is a Photoshop format manipulation API. One can generate, modify and convert Adobe Photoshop and Illustrator documents. Moreover, end users can perform graphics operations, update layer properties, add watermarks or render one format to PNG, GIF, BMP, TIFF, JPEG, JPEG2000, PSD, PSB etc. Its a standalone API and does not require Adobe Photoshop installation.

    Watermark PSD via Online App

    Other Supported Watermarking Formats

    Using Java, one can easily watermark different formats including.

    PDF (Portable Document Format)