Posts: 19
Registered: ‎11-25-2008
Message 1 of 2 (155 Views)

dwfx definePageLayout parameters

155 Views, 1 Replies
02-07-2010 08:00 PM

I would like to know what is the safest and most reliable way to populate the definePageLayout matrix, and width, height and scale parameters.
Example code to show this would be very much appreciated.

Thanx in advance.

Posts: 338
Registered: ‎03-05-2008
Message 2 of 2 (155 Views)

Re: dwfx definePageLayout parameters

02-24-2010 07:25 PM in reply to: janderssen

Thank you for your question.
You can find the sample "XPSTest" from DWF Toolkit package that shows how to use the definePageLayout:
WT_Matrix2D oTransform;
// This transform must match the one on the graphics resource exactly
double fScale = 0.0016792611251049536;
oTransform(0,0) = fScale;
oTransform(1,1) = fScale;
oTransform(2,0) = 4.3706968933669188;
oTransform(2,1) = 6.1601595298068847;

{color:#999999}// The heigh and width values must match those of the section's paper
// the scale is a factor to scale the units given in the page size to inches...
// so if the paper size is in mm, it should be 0.03937
ERR_CHECK( pxFile->definePageLayout(oTransform, 11, 8.5, 1) );

Please let me know if you have any follow-on questions.

Herbert He
SW Engineer
Autodesk, Inc.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community