-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdftops mangles output from Perl PDF::API2. #470
Comments
CUPS.org User: mike Reassigned to 1.2. What version of Xpdf are you using? I get the same non-centered output from Xpdf 2.01's pdftops and the CUPS pdftops, but the xpdf display shows the correct (centered) output. |
CUPS.org User: ash.dragonpaw [ash@ash]:/usr/local$ dpkg -l xpdf-utils This is from Debian Unstable on x86. There may be some Debian patches on the version, I'm not sure. |
CUPS.org User: mike Can you post the converted PS file from your Xpdf pdftops utility? I am unable to get the output to look any different with any version of Xpdf's pdftops in use (i.e. I get the same offset title with all versions of Xpdf when converting to PS, but not when I display the file on the screen...) Thanks! |
CUPS.org User: ash.dragonpaw Here is the file in question. (I just printed it to be certain, and it centers properly.) One thing I should add, is that I think that ps2ps that is used at the end might also be involved in this problem. I typically disable it as all my printers are alreadys PostScript and I tend to embed the control strings in them for things like directly printing on 4x6 cards. If you print this file, and it's mangled, but print it to a PS printer with -raw, and it looks good, then the problem might be in both apps actually. They do share some of their codebase I'd assume, yes? |
CUPS.org User: mike OK, the file you attached was produced by Ghostscript (pdf2ps) and not by Xpdf (pdftops). I've confirmed that the problem is present in Xpdf through v3.00, and there are no patches for this in the Debian tree. I will contact the Xpdf author and see if we can work up a fix... |
CUPS.org User: mike Please try the attached patch... |
CUPS.org User: mike Fixed in CVS - the anonymous CVS repository will be updated at midnight EST. |
"str470.patch": Index: Gfx.cxxRCS file: /development/cvs/cups/pdftops/Gfx.cxx,v
@@ -2237,6 +2241,10 @@
|
Version: 1.1.20
CUPS.org User: ash.dragonpaw
http://www.dragonpaw.org/~ash/earthdawn/ash.pdf (Also attached.)
This PDF file created using the Perl PDF::API2 library is printed slightly wrong. I do not know if this is a Cups problem for certain. On the top of the page, the alignment of the first two parts of the page is off. Both the title and the copyright line should be centered.
Though this exact version of the problem only happens with cups' pdftops filter, gpdf also displays the file wrong, but in a completely different way. Xpdf shows the file correctly. The xpdf-utils version of pdftops correctly converts it to PostScript, which then print properly.
Works fine:
pdftops ash.pdf ash.ps
lp ash.ps
Mangles the alignment:
lp ash.pdf
In gpdf, the alignment is good, but the font is missing, though the font metric loads properly. So letters are smashed together, but in the wrong font. (The correct font is a condensed face.)
Debian unstable, x86.
The text was updated successfully, but these errors were encountered: