Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract text from a PSD file?

I need to extract the text from the layers in a photoshop PSD file on linux. Does anyone know how to do that? Gimp rasterizes the text and you can't copy and paste it. Also, note that I do not own the Photoshop program.

like image 794
rado Avatar asked Jul 07 '09 18:07

rado


People also ask

How do I copy text from PSD to Word?

Copy the text you need to paste, from wherever (web, other app, other Photoshop file). Select the Ps Type tool (you would be doing this anyway, because you're pasting into a text object). Select All from the Font drop-down and Copy again. Paste into your destination text object.


1 Answers

Have you tried using vim?

VIM comes with a flag that lets you edit a binary file.

I tried editing a PSD file with:

vim -b file.psd

This is an example of what I got when editing the file:

                            <dict>
                                    <key>com.apple.print.PageFormat.PMAdjustedPageRect</key>
                                    <array>
                                            <real>0.0</real>
                                            <real>0.0</real>
                                            <real>576</real>
                                            <real>734</real>
                                    </array>
                                    <key>com.apple.print.ticket.stateFlag</key>
                                    <integer>0</integer>
                            </dict>
like image 186
alfredodeza Avatar answered Sep 20 '22 14:09

alfredodeza