ppd file question

jayacharan.rampog jayacharan.rampog at gmail.com
Fri Jan 23 03:06:17 PST 2009


> Jayacharan Rampog wrote:
> > hi,
> >
> > I am developing driver for Thermal printer,which will work with raster filter,it's priontg properly but not with my dpi's.because,in my ppd I mentioned the default resolution 180x180dpi,but when i'm trying to ACCESS/READ through Pageheader it's reading 100x100dpi.
> >
> > how i know this is,in my filter i have added the line follwing:
> >
> > printf("%d\t%d\n",header->HWResolution[0],header->HWResolution[1]);
> >
> > o/p: 100   100
> >
> > in ppd file resolution like below:
> >
> > DefaultResolution: 180x180dpi
> > *Resolution 180x180dpi: "<</HWResolution[180 180]/cupsBitsPerColor 1/cupsBitsPerPixel 1/cupsRowCount 8/cupsRowFeed 0/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
> >
> >
> > what may be the problem why i'm not getting exact dpi which i mentioned my ppd file?
>
> Look at the error_log output to see if Ghostscript is interpreting
> your code correctly.
>
> Also, try printing image files from the command-line to see if the
> imagetoraster filter handles things better...
>
> --
> ______________________________________________________________________
> Michael R Sweet                        Senior Printing System Engineer
>
thank you sir,

i am working in debian linux,so that i can't able to see the error_log,because i can't able to login as root,and one more thing when i testing with FEDORA 7,also i am getting same 100x100dpi,now also same.

imagetoraster filter is working with my printer.

i can print any type of file ,only except required dpi,

i think page header couldn't able to ppd file properly?

suggest me sir.


Thanks,
Jayacharan Rampog.
Software Engineer.




More information about the cups mailing list