ps to pdf, trim white spaces but mantain text

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

ps to pdf, trim white spaces but mantain text

Post by myspacee »

hello to all,
try to remove white spaces from my ps.

Search ghostscript syntax but without luck.

Then try 'convert input.ps output.pdf ' and with surprise notice that text is mantained !

Is there any way tro trim borders maintain text as pure text ?

Thank you all for your time,

m.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ps to pdf, trim white spaces but mantain text

Post by fmw42 »

I am not an expert on vector formats. So I don't know if that is possible without going through some image format. Best notes are at http://www.imagemagick.org/Usage/formats/#vector

But you can try using a crop box on your pdf. See http://www.imagemagick.org/Usage/formats/#pdf
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: ps to pdf, trim white spaces but mantain text

Post by anthony »

ImageMagick is a raster image processor. You can not use it to modify an image but keep its vector form. That is text remains text in the image file format.

See the previous given links which will have references to converted for vector formats. These will try to preserve text as text.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply