|
|
| Lorenz Blum 2006-12-16, 8:05 am |
| Hello
I use ps2pdf to batch convert multiple eps files to pdf. The problem
is, that small images (~2x5cm) are converted to A4 size PDFs. So there
is a small image in the corner and the whole rest is blank. Is there a
possibility to "crop" the image and to remove the unnecessary blank
space?
greetings
lorenz
| |
| Christian Koch 2006-12-17, 7:04 pm |
| Lorenz Blum <grps@lorenz.blum.name> wrote:
> I use ps2pdf to batch convert multiple eps files to pdf. The problem
> is, that small images (~2x5cm) are converted to A4 size PDFs. So there
> is a small image in the corner and the whole rest is blank. Is there a
> possibility to "crop" the image and to remove the unnecessary blank
> space?
Yes, use the command line option -dEPSCrop. This option crops the PDF to
the BoundingBox in the EPS file.
Christian.
| |
| Peter Flynn 2006-12-17, 7:04 pm |
| Christian Koch wrote:
> Lorenz Blum <grps@lorenz.blum.name> wrote:
>
> Yes, use the command line option -dEPSCrop. This option crops the PDF to
> the BoundingBox in the EPS file.
I wonder if it's possible to make this the default when the input file
is an EPS file. I'm trying to think of an occasion when I would not want
it done.
///Peter
| |
| Lorenz Blum 2006-12-18, 4:12 am |
| Christian Koch schrieb:
>
> Yes, use the command line option -dEPSCrop. This option crops the PDF to
> the BoundingBox in the EPS file.
The problem is this only works if the BoundingBox ist at the beginning
of the file. If the bbox is at the end it does not work (BoundingBox:
(atend)). Is there an option or a other program that can handle this
problem?
thanks anyway
lorenz
| |
| Christian Koch 2006-12-18, 7:07 pm |
| Lorenz Blum <grps@lorenz.blum.name> wrote:
> Christian Koch schrieb:
>
> The problem is this only works if the BoundingBox ist at the beginning
> of the file. If the bbox is at the end it does not work (BoundingBox:
> (atend)). Is there an option or a other program that can handle this
> problem?
Try to use epstool to correct the BoundingBox before invoking ps2pdf:
epstool --copy --bbox foo.eps foo2.eps
<http://www.cs.wisc.edu/~ghost/gsview/epstool.htm>
Christian.
| |
| Lorenz Blum 2006-12-21, 7:05 pm |
| I found a possibility that works even if the bbox is (atend):
pdfcrop
greetings
lori
|
|
|
|