Skip to content
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

pdf not printing on HP LJ 4050/4100 #1093

Closed
michaelrsweet opened this issue Feb 25, 2005 · 3 comments
Closed

pdf not printing on HP LJ 4050/4100 #1093

michaelrsweet opened this issue Feb 25, 2005 · 3 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2-current
CUPS.org User: aslakr

(It is actually 1.1.23.0 from freebsd-ports)

The attached file does not print on HP LJ 4050/4100 (no errors). It just disapears. The same thing happens when converting the file to ps with pdftops from xpdf 3.00 before sending it (or uploading it via ftp) to the printer. When using -noembt1 -noembtt -noembcidps -noembcidps the file prints but with ugly fonts (offcourse).

Using ghostscript pdf2ps to pipe ps to the printer works.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

I am able to duplicate this; it is a bug in Xpdf, and I am passing this up to the author for a possible solution.

Reassigning this to CUPS 1.2, as it will NOT be fixed in 1.1.x.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

OK, I got a reply back from the author; basically, there is some workaround code in pdftops/PSOutputDev.cxx which attempts to fix Type1 fonts with bad length parameters by adding some padding characters to the end of the font data. Not all printers like this...

The quick fix is to comment out line 1374, which reads:

length2 += length3 >= 8 ? 8 : length3;

Just add a "//" at the beginning of the line.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant