Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302344 - pdfcrop (app-text/texlive-core) bug
Summary: pdfcrop (app-text/texlive-core) bug
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-26 17:43 UTC by Phillip Berndt
Modified: 2010-01-27 19:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for pdfcrop (patch,363 bytes, patch)
2010-01-26 17:44 UTC, Phillip Berndt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Phillip Berndt 2010-01-26 17:43:31 UTC
pdfcrop does not work for me, as it tries to use pdftex for page generation instead of pdflatex. I /believe/ that this is a distribution specific problem.

The attached patch fixes the bug for me.

Debug output w/o my patch:
----------------------------------
PDFCROP 1.13, 2008/07/24 - Copyright (c) 2002-2008 by Heiko Oberdiek.
* Input file: ws01.pdf
* Output file: ws01-crop.pdf
* Margins: 0 0 0 0
* Running ghostscript for BoundingBox calculation ...
* Ghostscript call: gs -sDEVICE=bbox -dBATCH -dNOPAUSE -c save pop -f ws01.pdf
GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 2.
Page 1
%%BoundingBox: 117 118 478 712
* Page 1: 117 118 478 712
%%HiResBoundingBox: 117.827996 118.781996 477.035985 711.737978
Page 2
%%BoundingBox: 131 561 477 712
* Page 2: 131 561 477 712
%%HiResBoundingBox: 131.706066 561.041983 476.153985 711.845978
* Running pdfTeX ...
* pdfTeX call: pdftex -interaction=nonstopmode tmp-pdfcrop-17250
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 %&-line parsing enabled.
---! //var/lib/texmf/web2c/pdftex.fmt was written by pdfetex
(Fatal format file error; I'm stymied)
* Cleanup
* Temporary files: tmp-pdfcrop-17250.tex tmp-pdfcrop-17250.log
!!! Error: pdfTeX run failed!


Output w/ my patch:
-----------------------------------
PDFCROP 1.13, 2008/07/24 - Copyright (c) 2002-2008 by Heiko Oberdiek.
==> 2 pages written on `ws01-crop.pdf'.


Reproducible: Always
Comment 1 Phillip Berndt 2010-01-26 17:44:15 UTC
Created attachment 217484 [details, diff]
Patch for pdfcrop
Comment 2 Alexis Ballier gentoo-dev 2010-01-27 18:55:53 UTC
(In reply to comment #0)
> ---! //var/lib/texmf/web2c/pdftex.fmt was written by pdfetex

Please try to remove that file and run 'texmf-update' (as root) first. This will probably fix your problem.
Comment 3 Phillip Berndt 2010-01-27 19:17:49 UTC
Indeed.. ty.