I've done some tests with the Quick Plot tool: When I print a map with a fixed scaling (for example 1:500), the printed map is always 10% to 20% too big. I measure a line in the viewer and compare it with the printed line. I made sure to fix the printer's scaling to 100% when printing, so that it doesn't adjust to the paper size, but still: The printed map is always too big.
Maybe I am missing here something? Any thoughts?
From: [hidden email] [mailto:[hidden email]] On Behalf Of Zac Spitzer
Sent: Friday, July 13, 2012 11:51 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] MGOS 2.4 RC1: Quick Plot Scaling Issue
Before you can generate the image, you need to set the map.DisplayWith and DisplayHeight first. They seem to be 0/empty.
I had the same error when I tried to select features from a map, and setting those solved the issue.
For Ajax Viewer I've had some success by changing the number "25.4" twice in line 49 of quickplotgeneratepicture.php:
$printSize = new Size($paperSize->width / 25.4 * $printDpi, $paperSize->height / 25.4 * $printDpi);
For example, with my configuration I get correct scaled prints on A4 portrait by replacing the "25.4" with "33.4". For A4 landscape it's "31.0". The printer's scaling has to be set to 100%.
I know this isn't a very elegant solution and I don't recommend it for cases in which print accuracy is really important.
Jackie Ng wrote
I'd look at plotting to DWF or backporting the Fusion PDF plotting in RFC124 if you care about print accuracy.