Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
Win32 GroupsView
Win32 Programmer Directx Audio
Win32 Programmer Directx Graphics
Win32 Programmer Directx Managed
Win32 Programmer Directx Video
Win32 Programmer Gdi
Win32 Programmer Kernel
Win32 Programmer Messaging
Win32 Programmer Networks
Win32 Programmer Ole
Win32 Programmer Tapi
Win32 Programmer Ui
Win32 Programmer Wince
Win32 Programmer Wmi

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Apps
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft Win32 Programmer Gdi Posts  Ask A New Question 

Regarding PCL5e GDI scaling

princegoyal.198 posted on Friday, May 23, 2008 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.
reply


Previous Microsoft Win32 Programmer Gdi conversation.