Asked By princegoyal.198
23-May-08 10:22 PM

Problem Statement: Documents having Mixed Paper Sizes to be printed
with Monolithic PCL5e Printer Driver in case of Nup, booklet, Scale to
fit scenarios.
1) We are using GDI Scaling.
2) We are informing GDI by filling GDIINFO Structure (in DrvEnablePDEV
Entry Point) with device capabilities including Printable Area,
Physical Paper size, offsets for each Page in the Document.
3) Printable Area, Physical Size, offset of each page is first scaled
by calculating scaling factor (depending upon the printable area of
the source paper and destination paper) then filled into the GDIINFO
Structure (ulHorzRes, ulVertRes fields).
4) We are Informing GDI about printable Areas, Physical sizes, offsets
(After scaling) for Each Page in the Document (Pages of Different
Sizes).
5) Whenever there is change in the Page size in the doc we are getting
call in DrEnablePDEV thus filling GDIINFO Structure for Each Page of
Different size.
6) But in Output all the Pages are not completely scaled.
Example: Consider A4-A5-A6-A3 doc and we are printing A4-Booklet with
2Up (2 Pages per sheet). In this case all the pages should be properly
scaled to fit A4 paper (as required in 2uP). But only A4 is properly
scaled, A5, A6 are printed in the same size on A4 as if we are
printing A5, A6 on A5, A6 papers respectively. A3 is going Outside the
Printable area thus getting cut.
It=92s looking like as if Printable areas are not getting changed in
GDIINFO structure for each page though we are giving for each page.
Is that GDI accepts Printable areas only once in a JOB, not for each
page in th document ?Please help
Note: Scaling Factors are calculated properly.
Vipin please provide your inputs.