如何从PSD文件中提取文本?

问题描述:

我需要从Linux上的photoshop PSD文件的图层中提取文本.有谁知道这是怎么做到的吗? Gimp栅格化了文本,您无法复制和粘贴它.另外,请注意,我不拥有Photoshop程序.

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.

您是否尝试过使用vim?

Have you tried using vim?

VIM带有一个标志,可让您编辑二进制文件.

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

我尝试使用以下方法编辑PSD文件:

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>