View previous topic :: View next topic |
Author |
Message |
SAngeli l33t
Joined: 16 Apr 2004 Posts: 904 Location: Italy
|
Posted: Wed Aug 03, 2005 2:15 pm Post subject: Strange HP ppd characters |
|
|
Hi,
I have a HP LaserJet 1320n and have it installed with cups and the ppd file downloaded from Linuxprinting
But I found some characters issues I wish to present. I wish to fix them manually but wish to ask for an advice.
Here sections interested.
[A] = File available on the Internet as above mentioned
[B] = Current file in /usr/share/cups/model/HP_LaserJet_1320_Series.ppd (file that I saved from the Internet)
[A] wrote: | *% =================================
*% Watermark Angle
*% =================================
*OpenUI *HPwmTextAngle/Watermark Angle: PickOne
*OrderDependency: 65 AnySetup *HPwmTextAngle
*DefaultHPwmTextAngle: Deg45
*HPwmTextAngle Deg90/90<A1>: "userdict /HPwmAngle 90 put"
*HPwmTextAngle Deg75/75<A1>: "userdict /HPwmAngle 75 put"
*HPwmTextAngle Deg60/60<A1>: "userdict /HPwmAngle 60 put"
*HPwmTextAngle Deg45/45<A1>: "userdict /HPwmAngle 45 put"
*HPwmTextAngle Deg30/30<A1>: "userdict /HPwmAngle 30 put"
*HPwmTextAngle Deg15/15<A1>: "userdict /HPwmAngle 15 put"
*HPwmTextAngle Deg0/0<A1>: "userdict /HPwmAngle 0 put"
*HPwmTextAngle DegN15/Ã15<A1>: "userdict /HPwmAngle -15 put"
*HPwmTextAngle DegN30/Ã30<A1>: "userdict /HPwmAngle -30 put"
*HPwmTextAngle DegN45/Ã45<A1>: "userdict /HPwmAngle -45 put"
*HPwmTextAngle DegN60/Ã60<A1>: "userdict /HPwmAngle -60 put"
*HPwmTextAngle DegN75/Ã75<A1>: "userdict /HPwmAngle -75 put"
*HPwmTextAngle DegN90/Ã90<A1>: "userdict /HPwmAngle -90 put"
*CloseUI: *HPwmTextAngle |
[B] wrote: | *% =================================
*% Watermark Angle
*% =================================
*OpenUI *HPwmTextAngle/Watermark Angle: PickOne
*OrderDependency: 65 AnySetup *HPwmTextAngle
*DefaultHPwmTextAngle: Deg45
*HPwmTextAngle Deg90/90<A1>: "userdict /HPwmAngle 90 put"
*HPwmTextAngle Deg75/75<A1>: "userdict /HPwmAngle 75 put"
*HPwmTextAngle Deg60/60<A1>: "userdict /HPwmAngle 60 put"
*HPwmTextAngle Deg45/45<A1>: "userdict /HPwmAngle 45 put"
*HPwmTextAngle Deg30/30<A1>: "userdict /HPwmAngle 30 put"
*HPwmTextAngle Deg15/15<A1>: "userdict /HPwmAngle 15 put"
*HPwmTextAngle Deg0/0<A1>: "userdict /HPwmAngle 0 put"
*HPwmTextAngle DegN15/�5<A1>: "userdict /HPwmAngle -15 put"
*HPwmTextAngle DegN30/�0<A1>: "userdict /HPwmAngle -30 put"
*HPwmTextAngle DegN45/�5<A1>: "userdict /HPwmAngle -45 put"
*HPwmTextAngle DegN60/�0<A1>: "userdict /HPwmAngle -60 put"
*HPwmTextAngle DegN75/�5<A1>: "userdict /HPwmAngle -75 put"
*HPwmTextAngle DegN90/�0<A1>: "userdict /HPwmAngle -90 put"
*CloseUI: *HPwmTextAngle |
[A] wrote: | *%=================================================
*% Resolution Enhancement
*%=================================================
*OpenUI *Smoothing/Resolution Enhancement: PickOne
*OrderDependency: 20 DocumentSetup *Smoothing
*DefaultSmoothing: PrinterDefault
*Smoothing PrinterDefault/PrinterÃs Current Setting: ""
*Smoothing On/On: "
<< /PostRenderingEnhance true
/PostRenderingEnhanceDetails << /REValue 2 /Type 8 >>
>> setpagedevice"
*End
*Smoothing Off/Off: "
<< /PostRenderingEnhance true
/PostRenderingEnhanceDetails << /REValue 0 /Type 8 >>
>> setpagedevice"
*End
*?Smoothing: "
save
currentpagedevice /PostRenderingEnhanceDetails get /REValue get
[(Off) (On) (On) (On)] exch get print
restore
"
*End
*CloseUI: *Smoothing |
[B] wrote: | *%=================================================
*% Resolution Enhancement
*%=================================================
*OpenUI *Smoothing/Resolution Enhancement: PickOne
*OrderDependency: 20 DocumentSetup *Smoothing
*DefaultSmoothing: PrinterDefault
*Smoothing PrinterDefault/Printer� Current Setting: ""
*Smoothing On/On: "
<< /PostRenderingEnhance true
/PostRenderingEnhanceDetails << /REValue 2 /Type 8 >>
>> setpagedevice"
*End
*Smoothing Off/Off: "
<< /PostRenderingEnhance true
/PostRenderingEnhanceDetails << /REValue 0 /Type 8 >>
>> setpagedevice"
*End
*?Smoothing: "
save
currentpagedevice /PostRenderingEnhanceDetails get /REValue get
[(Off) (On) (On) (On)] exch get print
restore
"
*End
*CloseUI: *Smoothing |
[A] wrote: | *%==================================
*% HPEconoMode
*%==================================
*OpenUI *HPEconoMode/HPEconoMode: PickOne
*DefaultHPEconoMode: PrinterDefault
*OrderDependency: 10 AnySetup *HPEconoMode
*HPEconoMode PrinterDefault/PrinterÃs Current Setting: ""
*HPEconoMode True/Save Toner: "
<</EconoMode true>> setpagedevice"
*End
*HPEconoMode False/Highest Quality: "
<</EconoMode false>> setpagedevice"
*End
*?HPEconoMode: "
save
currentpagedevice /EconoMode get
{(True)}{(False)}ifelse = flush
restore
"
*End
*CloseUI: *HPEconoMode
*CloseGroup: HPImagingOptions |
[B] wrote: | *%==================================
*% HPEconoMode
*%==================================
*OpenUI *HPEconoMode/HPEconoMode: PickOne
*DefaultHPEconoMode: PrinterDefault
*OrderDependency: 10 AnySetup *HPEconoMode
*HPEconoMode PrinterDefault/Printer� Current Setting: ""
*HPEconoMode True/Save Toner: "
<</EconoMode true>> setpagedevice"
*End
*HPEconoMode False/Highest Quality: "
<</EconoMode false>> setpagedevice"
*End
*?HPEconoMode: "
save
currentpagedevice /EconoMode get
{(True)}{(False)}ifelse = flush
restore
"
*End
*CloseUI: *HPEconoMode
*CloseGroup: HPImagingOptions |
How should I fix them?
PS: Do you know how to configure properly ghostscript for this printer?
Thank you,
Spiro |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54827 Location: 56N 3W
|
Posted: Mon Aug 15, 2005 11:09 pm Post subject: |
|
|
The datasheet you can get here shows that the HP LaserJet 1320n has a PostScript level 2 print engine. It can therfore accept raw postscript pages and render the image they describe onto the paper.
Ghostscript is not required.
Ghostscript is a PostScript renderer that runs in your PC and intended to convert Linux applications Postscript output to a raster image, for priters that do not understand PostScript. e.g. inkjets.
I'm not convinced that the two files you present as A and B are actually different. They are the PPD files rendered into text somehow, perhaps with different fonts. They could still be identical at the binary level. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
SAngeli l33t
Joined: 16 Apr 2004 Posts: 904 Location: Italy
|
Posted: Tue Aug 16, 2005 7:10 am Post subject: |
|
|
Hello NeddySeagoon,
thank you for replying...
NeddySeagoon wrote: | They are the PPD files rendered into text somehow, perhaps with different fonts. They could still be identical at the binary level. |
Is there a way to check this font difference so that I can exclude that this is a font issue?
When I look into the printer settings, I see those font errors, like: PrinterÃs
Please let me know.
Thank you,
Spiro |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54827 Location: 56N 3W
|
Posted: Tue Aug 16, 2005 8:13 am Post subject: |
|
|
SAngeli,,
You can try running Code: | diff <file1> <file2> | and examining the files with which is a binary editor. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
SAngeli l33t
Joined: 16 Apr 2004 Posts: 904 Location: Italy
|
Posted: Fri Aug 19, 2005 9:14 pm Post subject: |
|
|
Hello NeddySeagoon,
I did run diff and this is the output I got:
Code: | 7c7
< *HPEconoMode PrinterDefault/PrinterÃs Current Setting: ""
---
> *HPEconoMode PrinterDefault/Printer� Current Setting: "" |
Code: | 14,19c14,19
< *HPwmTextAngle DegN15/Ã15<A1>: "userdict /HPwmAngle -15 put"
< *HPwmTextAngle DegN30/Ã30<A1>: "userdict /HPwmAngle -30 put"
< *HPwmTextAngle DegN45/Ã45<A1>: "userdict /HPwmAngle -45 put"
< *HPwmTextAngle DegN60/Ã60<A1>: "userdict /HPwmAngle -60 put"
< *HPwmTextAngle DegN75/Ã75<A1>: "userdict /HPwmAngle -75 put"
< *HPwmTextAngle DegN90/Ã90<A1>: "userdict /HPwmAngle -90 put"
---
> *HPwmTextAngle DegN15/�5<A1>: "userdict /HPwmAngle -15 put"
> *HPwmTextAngle DegN30/�0<A1>: "userdict /HPwmAngle -30 put"
> *HPwmTextAngle DegN45/�5<A1>: "userdict /HPwmAngle -45 put"
> *HPwmTextAngle DegN60/�0<A1>: "userdict /HPwmAngle -60 put"
> *HPwmTextAngle DegN75/�5<A1>: "userdict /HPwmAngle -75 put"
> *HPwmTextAngle DegN90/�0<A1>: "userdict /HPwmAngle -90 put" |
So, as you can see there are differences.
Would it be ok for me to manually make those changes so that the current file be corrected manually by me?
thank you,
Spiro |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54827 Location: 56N 3W
|
Posted: Fri Aug 19, 2005 10:10 pm Post subject: |
|
|
SAngeli,
Why not just swap files?
Makeing the changes won't be easy, those characters are not on your keyboard. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|