Add Digital Signatures to PSD in Java

Secure your PSD files by adding popular digital signature types using Java library. Manipulate electronic signatures properties and set up advance signing options within documents as you may need.


Download Free Trial

About GroupDocs.Signature for Java API

GroupDocs.Signature for Java is an advanced Java library to digitally sign documents using various signature types such as text, image, barcode, stamp, form-field, QR-code and metadata. By adding just a few lines of code, empower your Java applications with features to add, edit, verify, delete and search digital signatures within PDF, Microsoft Word, Excel worksheets, PowerPoint presentations, Adobe Photoshop, metafiles and image file formats. The e-signature API also supports additional features to customize signature properties as per requirements.

How to Add Digital Signatures in a PSD File

The below code example clearly demonstrates the steps about how to add digital signatures to a PSD file using GroupDocs.Signature library in Java by adding just a few lines of code.

  • Create new instance of Signature class and pass source document path as a constructor parameter.
  • Instantiate the DigitalSignOptions object with required certificate & password.
  • Call Sign method of Signature class instance; pass DigitalSignOptions to it.
  • Analyze SignResult result to check newly created signatures if needed.

System Requirements

GroupDocs.Signature for Java APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environments: Visual Studio, Xamarin, MonoDevelop
  • Frameworks: .NET Framework, .NET Standard, .NET Core, Mono
  • Download the latest version of GroupDocs.Signature for Java from NuGet

Signature signature = new Signature("sample.pdf"); 
DigitalSignOptions options = new DigitalSignOptions("certificate.pfx");
 
// certifiate password
options.setPassword("1234567890");
// digital certificate details
options.setReason("Sign");
options.setContact("JohnSmith");
options.setLocation("Office1");
 
// image as digital certificate appearance on document pages
options.setImageFilePath("sample.jpg");
//
options.setAllPages(true);
options.setWidth(80);
options.setHeight(60);
options.setVerticalAlignment(VerticalAlignment.Bottom);
options.setHorizontalAlignment(HorizontalAlignment.Right);
Padding padding = new Padding();
padding.setBottom(10);
padding.setRight(10);
options.setMargin(padding);
 
SignResult signResult = signature.sign("signed.psd", options);
// analyzing result
System.out.print("List of newly created signatures:");
int number = 1;
for(BaseSignature temp : signResult.getSucceeded())
{
    System.out.print("Signature #"+ number++ +": Type: "+temp.getSignatureType()+" Id:"+temp.getSignatureId()+
            ",Location: "+temp.getLeft()+"x"+temp.getTop()+". Size: "+temp.getWidth()+"x"+temp.getHeight());
}

Add PSD Signature Live Demos

Add PSD file electronic signatures right now by visiting GroupDocs.Signature Live Demos website. The live demo has the following benefits

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

What is PSD File Format

PSD, Photoshop Document, represents Adobe Photoshop’s native file format used for graphics designing and development. PSD files may include image layers, adjustment layers, layer masks, annotations, file information, keywords and other Photoshop-specific elements. Photoshop files have default extension as .PSD and has a maximum height and width of 30,000 pixels, and a length limit of two gigabytes. Learn more about PSD file format

Read More What is PSD File Format

Other Available Options

Multi-format digital signatures API for documents and images. Add signatures to some of the popular file formats as stated below.

Add e-Signatures to PDF

(Adobe Portable Document Format)

Add e-Signatures to DOC

(Microsoft Word Document)

Add e-Signatures to DOCM

(Microsoft Word Macro-Enabled Document)

Add e-Signatures to DOCX

(Microsoft Word Open XML Document)

Add e-Signatures to DOT

(Microsoft Word Document Template)

Add e-Signatures to DOTX

(Word Open XML Document Template)

Add e-Signatures to DOTM

(Microsoft Word Macro-Enabled Template)

Add e-Signatures to RTF

(Rich Text Document)

Add e-Signatures to ODT

(Open Document Text)

Add e-Signatures to OTT

(OpenDocument Text Template)

Add e-Signatures to XLS

(Microsoft Excel Binary File Format)

Add e-Signatures to XLSX

(Microsoft Excel Open XML Spreadsheet)

Add e-Signatures to XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Add e-Signatures to XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Add e-Signatures to XLSB

(Microsoft Excel Binary Worksheet)

Add e-Signatures to XLTX

(Microsoft Excel template)

Add e-Signatures to XLTM

(Microsoft Excel macro-enabled template)

Add e-Signatures to ODS

(Open Document Spreadsheet)

Add e-Signatures to OTS

(OpenDocument Spreadsheet Template)

Add e-Signatures to PPT

(PowerPoint Presentation)

Add e-Signatures to PPTX

(PowerPoint Open XML Presentation)

Add e-Signatures to PPS

(Microsoft PowerPoint 97-2003 Slide Show)

Add e-Signatures to PPSX

(PowerPoint Open XML Slide Show)

Add e-Signatures to POTM

(Microsoft PowerPoint Macro-Enabled Template)

Add e-Signatures to POTX

(Microsoft PowerPoint Template)

Add e-Signatures to PPTM

(Microsoft PowerPoint Presentation)

Add e-Signatures to ODP

(OpenDocument Presentation)

Add e-Signatures to OTP

(OpenDocument Presentation Template)

Add e-Signatures to TIFF

(Tagged Image File Format)

Add e-Signatures to GIF

(Graphics Interchange Format)

Add e-Signatures to PNG

(Portable Network Graphic)

Add e-Signatures to BMP

(Bitmap File Format)

Add e-Signatures to CDR

(CorelDraw Vector Graphic Drawing)

Add e-Signatures to SVG

(Scalable Vector Graphics)

Add e-Signatures to PSD

(Adobe Photoshop Document)

Add e-Signatures to WMF

(Windows Metafile)

Add e-Signatures to EMF

(Enhanced Metafile Format)

Add e-Signatures to CMX

(Corel Metafile eXchange Image)

Add e-Signatures to PPSM

(Microsoft PowerPoint Macro-Enabled Slide Show)

Add e-Signatures to DCM

(Digital Imaging and Communications in Medicine)

Back to top
 English