Skip to main content
Participant
April 19, 2024
Question

Read text fom layer in psd File (Photoshop API)

  • April 19, 2024
  • 1 reply
  • 193 views

Hello,

 

I have a use case where a person makes changes to a psd file (some text). After that my process continues and I need to know the new text in the psd file. Can I retrieve this text through the Photoshop API? I only found ways to overwrite the current text via the edit text layer endpoint (https://developer.adobe.com/photoshop/photoshop-api-docs/api/#tag/Photoshop/operation/text). I am using Java, might there also be a way to retrieve specific text from the file locally?

Thanks everybody.

This topic has been closed for replies.

1 reply

Participant
April 19, 2024

Okay, sorry for asking to early. I found the solution myself. 

Retrieving the text works by requesting the manifest of the psd file. There every layer is well documented. It is documented right here: https://developer.adobe.com/photoshop/photoshop-api-docs/code-sample/#retrieve-a-psds-json-manifest

Maybe this helps others in the future.