imagetoraster cuts height in half (CUPS 1.1.18)
none at nospam.net
Fri Jan 21 17:51:25 PST 2005
I changed the HWResolution in the PPD file and that corrected the
I'll look into fixing my raster driver like you suggest. I'll have to
experiment to see if 203 or 200 is a better value in the integer array.
Michael Sweet wrote:
> Brion Finlay wrote:
>> I don't see anything in the logs for this job (Job 3, the PNG image).
> You probably want to add a debug message in your raster filter
> for this sort of thing; the standard CUPS drivers print the
> entire page device dictionary (feel free to copy the code...)
>> The PPD file defines the following:
>> (these lines are excerpted from the rest of the PPD)
>> *PaperDimension Letter/US Letter: "312 425"
>> *ImageableArea Letter/US Letter: "0 0 294 413"
>> *DefaultResolution: 200dpi
>> *Resolution 200dpi/200 DPI: "<</HWResolution[203.2
>> 203.2]/cupsColorOrder 0/cupsColorSpace 3>>setpagedevice"
> A caveat here - HWResolution is an integer array, so specifying
> fractional resolutions won't work properly. Also, the NNNdpi
> keyword should match the HWResolution values.
> (if you want to provide the user with a round number, just
> use the round number in the UI text)
> Anyways, I don't see anything obviously wrong except for this.
More information about the cups