Printing

Ann and Jason Edmeades us at the-edmeades.demon.co.uk
Sun Jul 14 14:51:58 CDT 2002


I am trying to test my program which does a simple print preview in VB but
cant get that far yet.

Setup: CUPS HPLJ4 setup (CUPS+GIMP-print v4.2.0)

When I run the program and it starts accessing the printer
(GetCompatibleDC/FindPrinterInfo?) it complains about AFM fonts. I tried
adding /usr/share/fonts/afms/adobe to the afmdirs in the config file and
although I get different trace, I get the same message.

Reading the winehq guide to printing it doesnt mention anything about
setting up afmdirs and I read that wine should be able to do it itself for
Type 1 fonts, but I have no idea where this is going wrong. I've hunted
dejanews (goole groups) and although I can find lots of hits on these
messages I couldnt find anything clear.

Questions...
1. Should I need to install AFM fonts - 4.7.2.1.4 of
http://www.winehq.com/Docs/wine-user/printing.shtml implies not. However
this implies I need a PPD file for my printer, but 4.7.2.1.1 implies there
is no further configuration required.

The 'funny' side is I dont care too much about the printing just yet - I
just want to be able to query the dimensions to test the rest of mq code!!

Jason

An edited --debugmsg follows:
Could not stat /mnt/fd0 (No such file or directory), ignoring drive A:
Could not stat /cdrom (No such file or directory), ignoring drive D:
err:font:AddFontFileToList Unable to load font file
"/home/edmeades/c/windows/Fonts/modern.fon" err = 2
err:font:AddFontFileToList Unable to load font file
"/home/edmeades/c/windows/Fonts/roman.fon" err = 2
err:font:AddFontFileToList Unable to load font file
"/home/edmeades/c/windows/Fonts/script.fon" err = 2
fixme:win32:PE_CreateModule Security directory ignored
trace:psdrv:PSDRV_Init (0x4167d000, 0x00000001, (nil))
trace:psdrv:PSDRV_GlyphListInit glyphList will initially hold 2048 glyph
names
warn:psdrv:ReadAFMDir /usr/share/ghostscript/fonts: No such file or
directory
trace:psdrv:ReadAFMFile /usr/share/fonts/afms/adobe/phvbo8an.afm
:
: Working through some afm files, occasional Unicodify Glyph 'merge' not in
Adobe Glyph List type messgae
:
warn:psdrv:PSDRV_AddAFMtoList Ignoring duplicate FontName 'AvantGarde-Demi'
trace:psdrv:AddBuiltinAFMs Ignoring built-in font AvantGarde-Demi
warn:psdrv:PSDRV_AddAFMtoList Ignoring duplicate FontName
'AvantGarde-DemiOblique'
trace:psdrv:AddBuiltinAFMs Ignoring built-in font AvantGarde-DemiOblique
:
: Repeated for a number of fonts
:
trace:psdrv:PSDRV_DumpFontList Family 'Helvetica'
trace:psdrv:PSDRV_DumpFontList 	FontName 'Helvetica-Narrow-BoldOblique' (228
glyphs) - 'AdobeStandardEncoding' encoding:
trace:psdrv:PSDRV_DumpFontList 	FontName 'Helvetica-Bold' (228 glyphs) -
'AdobeStandardEncoding' encoding:
trace:psdrv:PSDRV_DumpFontList 	FontName 'Helvetica-Narrow-Bold' (228
glyphs) - 'AdobeStandardEncoding' encoding:
etc
:
: Repeated for a number of families
:
trace:psdrv:PSDRV_FindPrinterInfo 'HPLJ4'
trace:print:DrvGetPrinterData16 printer HPLJ4
trace:print:DrvGetPrinterData16 profile 0x1
trace:print:DrvGetPrinterData16 lpType 0x405c5ec0
trace:print:DrvGetPrinterData16 printer HPLJ4
trace:print:DrvGetPrinterData16 profile 0x1
trace:print:DrvGetPrinterData16 lpType 0x405c5ec0
trace:psdrv:PSDRV_ParsePPD file '/var/tmp/3d31e093d6bf6'
trace:psdrv:PSDRV_ParsePPD NickName = 'HP LaserJet 4L, CUPS+GIMP-print
v4.2.0'
trace:psdrv:PSDRV_ParsePPD LanguageLevel = 2
trace:psdrv:PSDRV_ParsePPD ColorDevice = 0
trace:psdrv:PSDRV_ParsePPD LandscapeOrientation = 90
trace:psdrv:PSDRV_ParsePPD Can't find Windows page type for 'COM10' - using
256
trace:psdrv:PSDRV_ParsePPD Using Windows bin type 256 for 'Standard'
trace:psdrv:PSDRV_ParsePPD Using Windows bin type 257 for 'Manual'
trace:psdrv:PSDRV_ParsePPD Using Windows bin type 258 for 'MultiPurpose'
trace:psdrv:PSDRV_ParsePPD Using Windows bin type 259 for 'Upper'
trace:psdrv:PSDRV_ParsePPD Using Windows bin type 260 for 'Lower'
trace:psdrv:PSDRV_ParsePPD Using Windows bin type 261 for 'LargeCapacity'
trace:psdrv:PSDRV_ParsePPD DefaultResolution = 300
err:psdrv:PSDRV_PPDGetNextTuple Error in line '*CloseUI *stpBrightness
'?
trace:psdrv:PSDRV_ParsePPD 'Letter' aka 'Letter' (1) invoked by
'<</PageSize[612 792]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 594.00, 780.00
trace:psdrv:PSDRV_ParsePPD Dimension = 612.00 x 792.00
trace:psdrv:PSDRV_ParsePPD 'Legal' aka 'Legal' (5) invoked by
'<</PageSize[612 1008]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 594.00, 996.00
trace:psdrv:PSDRV_ParsePPD Dimension = 612.00 x 1008.00
trace:psdrv:PSDRV_ParsePPD 'Executive' aka 'Executive' (7) invoked by
'<</PageSize[522 756]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 504.00, 744.00
trace:psdrv:PSDRV_ParsePPD Dimension = 522.00 x 756.00
trace:psdrv:PSDRV_ParsePPD 'Statement' aka 'Manual' (6) invoked by
'<</PageSize[396 612]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 378.00, 600.00
trace:psdrv:PSDRV_ParsePPD Dimension = 396.00 x 612.00
trace:psdrv:PSDRV_ParsePPD 'A4' aka 'A4' (9) invoked by '<</PageSize[595
842]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 577.00, 830.00
trace:psdrv:PSDRV_ParsePPD Dimension = 595.00 x 842.00
trace:psdrv:PSDRV_ParsePPD 'C5' aka 'C5' (28) invoked by '<</PageSize[459
649]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 441.00, 637.00
trace:psdrv:PSDRV_ParsePPD Dimension = 459.00 x 649.00
trace:psdrv:PSDRV_ParsePPD 'C6' aka 'C6' (31) invoked by '<</PageSize[323
459]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 305.00, 447.00
trace:psdrv:PSDRV_ParsePPD Dimension = 323.00 x 459.00
trace:psdrv:PSDRV_ParsePPD 'DL' aka 'DL' (27) invoked by '<</PageSize[311
623]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 293.00, 611.00
trace:psdrv:PSDRV_ParsePPD Dimension = 311.00 x 623.00
trace:psdrv:PSDRV_ParsePPD 'COM10' aka 'Commercial 10' (256) invoked by
'<</PageSize[297 684]/ImagingBBox null>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD Area = 18.00,12.00 - 279.00, 672.00
trace:psdrv:PSDRV_ParsePPD Dimension = 297.00 x 684.00
trace:psdrv:PSDRV_ParsePPD INPUTSLOTS '(null)' Name 'Automatically Select'
(15) Invocation '(null)'
trace:psdrv:PSDRV_ParsePPD INPUTSLOTS 'Standard' Name 'Standard' (256)
Invocation '<</MediaClass(Standard)>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD INPUTSLOTS 'Manual' Name 'Manual' (257)
Invocation '<</MediaClass(Manual)>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD INPUTSLOTS 'MultiPurpose' Name 'Tray 1' (258)
Invocation '<</MediaClass(MultiPurpose)>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD INPUTSLOTS 'Upper' Name 'Tray 2' (259) Invocation
'<</MediaClass(Upper)>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD INPUTSLOTS 'Lower' Name 'Tray 3' (260) Invocation
'<</MediaClass(Lower)>>setpagedevice'
trace:psdrv:PSDRV_ParsePPD INPUTSLOTS 'LargeCapacity' Name 'Tray 4' (261)
Invocation '<</MediaClass(LargeCapacity)>>setpagedevice'
trace:psdrv:PSDRV_FindPrinterInfo No 'Paper Size' for printer 'HPLJ4'
trace:psdrv:PSDRV_FindPrinterInfo No 'FontSubTable' for printer 'HPLJ4'
trace:psdrv:PSDRV_CreateDC (WINEPS HPLJ4 LPT1: (nil))
To use WINEPS you need to install some AFM files.
fixme:winspool:AddPrinterW DocumentPropertiesW on printer 'L"HPLJ4"' fails
trace:psdrv:PSDRV_FindPrinterInfo 'HPLJ4'
trace:psdrv:PSDRV_CreateDC (WINEPS HPLJ4 LPT1: (nil))
To use WINEPS you need to install some AFM files.
err:winspool:AddPrinterW DocumentPropertiesW on printer 'L"HPLJ4"' failed!
err:winspool:CUPS_LoadPrinters printer 'HPLJ4' not added by AddPrinterA
(error 1797)

trace:psdrv:PSDRV_FindPrinterInfo 'HPLJ4'
trace:psdrv:PSDRV_CreateDC (WINEPS HPLJ4 LPT1: (nil))
To use WINEPS you need to install some AFM files.
trace:psdrv:PSDRV_FindPrinterInfo 'HPLJ4'
trace:psdrv:PSDRV_CreateDC (WINEPS HPLJ4 LPT1: (nil))
To use WINEPS you need to install some AFM files.
trace:psdrv:PSDRV_Init (0x4167d000, 0x00000000, 0x1)




More information about the wine-devel mailing list