It is VERY important to us that PDF documents print to scale.I have read through the posts here and am still having the problem.
I am printing to a printer that has 0.16 in margins all around. The page size is 8.5 x 11. The drawing border is 8 x 10.5 (which would allow margins up to 0.25")
There are 2 images attached. Each shows an architect scale against the print out. One for Adobe, one for RadPrintDocument.
The Adobe prints to scale (the 120" wall at 1/2" scale shows 10 (10 feet). The RadPrintDocument is short as it is automatically scaling the PDF file down.
Also attached is the PDF file I am using for this example. Correction: PDF not attached as not allowed to attach to forum posts.
How can I stop that scaling please and always print to 100% scale please?
The code we are using:
RadPdfViewer rViewer = new RadPdfViewer();
rViewer.DocumentLoaded += RViewer_DocumentLoaded;
rViewer.LoadDocument(@fileLocation + fileName);
rViewer.LoadElementTree();
Application.DoEvents();
private static void RViewer_DocumentLoaded(object sender, EventArgs e)
{
RadPrintDocument document = new RadPrintDocument();
document.Landscape = true;
document.DefaultPageSettings.PrinterSettings.Copies = 1;
document.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
document.AssociatedObject = (sender as RadPdfViewerElement);
document.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
document.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
document.OriginAtMargins = true;
document.HeaderHeight = 0;
document.FooterHeight = 0;
document.Print();
}
Thank you!!!