Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Q: pdfcrop.pl !!! Error: Cannot move ...

428 views
Skip to first unread message

Karl Heinz Schloeglmann

unread,
Jul 22, 2008, 3:32:27 AM7/22/08
to
Hello,

I'd like to truncate a pdf-file by using pdfcrop.

Writing "pdfcrop filename.pdf" at the prompt results in "!!! Error:
Cannot move `tmp-pdfcrop-###.pdf´ to `filename-crop.pdf´!"

Any ideas why this may happen?

It is no problem to truncate the pdf-file with Adobe Acrobat 8
Professional or PDF-XChange 4 Pro.

[Ghostscript 8.60]
[PDFCROP 1.5 2004/06/24 Patch 0.4]
(I use this version because a newer one leads to "'-' is not recognized
as an internal or external command,
operable program or batch file.")

Thanks in advance!

Karl

--
_ _ _ _ ____
| |/ /arl|_| | | _| Civil Engineer & PhD-Student
| | | _ |einz \ Graz, Austria
|_|\_\ |_| |_| |____|chloeglmann http://www.schloeglmann.at

Heiko Oberdiek

unread,
Jul 22, 2008, 4:28:54 AM7/22/08
to
Karl Heinz Schloeglmann <karl.sch...@tugraz.at> wrote:

> I'd like to truncate a pdf-file by using pdfcrop.
>
> Writing "pdfcrop filename.pdf" at the prompt results in "!!! Error:
> Cannot move `tmp-pdfcrop-###.pdf´ to `filename-crop.pdf´!"
>
> Any ideas why this may happen?
>
> It is no problem to truncate the pdf-file with Adobe Acrobat 8
> Professional or PDF-XChange 4 Pro.
>
> [Ghostscript 8.60]
> [PDFCROP 1.5 2004/06/24 Patch 0.4]

What is "Patch 0.4"?

> (I use this version

In later versions I have fixed a bug, for instance:
2008/01/09 v1.8: Fix for moving the temporary file to the
output file across file system boundaries.
Or the temporary file isn't generated, because the ghostscript run
failed. See output of option --verbose and --debug.

> because a newer one leads to "'-' is not recognized
> as an internal or external command,
> operable program or batch file.")

See the other thread.

Yours sincerely
Heiko <ober...@uni-freiburg.de>

Karl Heinz Schloeglmann

unread,
Jul 22, 2008, 5:09:54 AM7/22/08
to
>> [PDFCROP 1.5 2004/06/24 Patch 0.4]
>
> What is "Patch 0.4"?

I don't know. But here is the whole output:

PDFCROP 1.5, 2004/06/24 - Copyright (c) 2002, 2004 by Heiko Oberdiek.
Patch 0.4, 2007/02/18 - Copyright (c) 2007 by Piotr Adacha.
!!! Error: Cannot move `tmp-pdfcrop-2736.pdf' to `filename-crop.pdf´!

> In later versions I have fixed a bug, for instance:
> 2008/01/09 v1.8: Fix for moving the temporary file to the
> output file across file system boundaries.
> Or the temporary file isn't generated, because the ghostscript run
> failed. See output of option --verbose and --debug.

Quotation of the log-file:

This is pdfTeX, Version 3.1415926-1.40.8-beta-20080627 (MiKTeX 2.7)
(preloaded format=pdftex 2008.7.14) 22 JUL 2008 10:45
entering extended mode
**tmp-pdfcrop-2260
(tmp-pdfcrop-2260.tex )
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 131072)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

Perhaps a problem of pdfTeX?

Regards,

Heiko Oberdiek

unread,
Jul 22, 2008, 5:16:18 AM7/22/08
to
Heiko Oberdiek <ober...@uni-freiburg.de> wrote:

Update of pdfcrop v1.11 is on its way to CTAN, please test.

Yours sincerely
Heiko <ober...@uni-freiburg.de>

Heiko Oberdiek

unread,
Jul 22, 2008, 5:18:13 AM7/22/08
to
Karl Heinz Schloeglmann <karl.sch...@tugraz.at> wrote:

> Quotation of the log-file:
>
> This is pdfTeX, Version 3.1415926-1.40.8-beta-20080627 (MiKTeX 2.7)
> (preloaded format=pdftex 2008.7.14) 22 JUL 2008 10:45
> entering extended mode
> **tmp-pdfcrop-2260
> (tmp-pdfcrop-2260.tex )
> No pages of output.
> PDF statistics:
> 0 PDF objects out of 1000 (max. 8388607)
> 0 named destinations out of 1000 (max. 131072)
> 1 words of extra memory for PDF output out of 10000 (max. 10000000)
>
> Perhaps a problem of pdfTeX?

No, ghostscript is the problem, try another version of ghostscript.

Yours sincerely
Heiko <ober...@uni-freiburg.de>

Karl Heinz Schloeglmann

unread,
Jul 24, 2008, 3:01:38 AM7/24/08
to
>>> because a newer one leads to "'-' is not recognized
>>> as an internal or external command,
>>> operable program or batch file.")
>
> Update of pdfcrop v1.11 is on its way to CTAN, please test.

I followed the thread "A problem about oberdiek's pdfcrop.pl" and I'm
glad that v1.13 is working now. Many thanks to Heiko.

Regards

0 new messages