problem with custom page size in imagetoraster

Michael Sweet mike at easysw.com
Sun Mar 6 08:20:22 PST 2005


Luc Habert wrote:
>>>Moreover, the `header.PageSize' is not even set.
>>
>>Um, it *is* set on lines 945 and 946.
> 
> 
> Sorry, I missed it. However, the confusion between page size and image size remains :
> - at lines 891-892, `xprint' and `yprint' are assigned the size of the image as it will be printed
> - at lines 912-922, their contents are assigned to variables `width' and `length' which are later used as if they were `PageWidth' and `PageLength'.

Yes, but we also add the custom margins to that size, enforce the
minimum sizes, set the PageSize, subtract the custom margins, and
multiply by the HWResolution.  Everything is handled as it should
be...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups-devel mailing list