No option to print PDF to scale? PDF is shrunk when printed.

4 posts, 0 answers
  1. Kerry
    Kerry avatar
    4 posts
    Member since:
    Jun 2015

    Posted 22 Mar Link to this post

    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!!!

     

     

     

  2. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 25 Mar Link to this post

    Hi Kerry,

    It appears that this question duplicates your other ticket: 1401884 - How can I print PDF at 100% scale please? You can check my answer there. Please also have in mind that sometimes posting the same question again may slow down our response. Thank you for understanding.

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Kerry
    Kerry avatar
    4 posts
    Member since:
    Jun 2015

    Posted 26 Mar in reply to Hristo Link to this post

    Sorry. I posted here first and then saw the sticky note that says support emails get a higher priority.

    Thank you for the suggestions. I will try them out.I just wanted to make sure I was not missing a method or property that allowed me to print to scale. Hopefully that is added someday. Until then I will try your suggestions to print to image and then print the image. I will also see what I can do for the content creation to maybe "fudge" the data being printed to maybe compensate before the PDF is created. I am posting your response below hoping this may help others in the future.


    We have a feature request to print the document in RadPdfViewer in its actual size: https://feedback.telerik.com/winforms/1372074-add-radpdfviewer-functionality-to-print-the-document-in-its-actual-size. I have already added a vote for the item on your behalf. 

    Can you please try, zooming to control on 100% before printing the document. Setting the PrintScalePageToPaperSize property to true  could also help. Alternatively, you can try exporting the page in the control to an image and later print the exported image: https://docs.telerik.com/devtools/winforms/controls/pdfviewer/export-to-image.

    I hope this will help. Let me know if you have other questions.
  4. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 27 Mar Link to this post

    Hello Kerry,

    Indeed the other question was posted in the ticketing system so thank you, for also updating the forum thread with my answer. I hope that you will manage to achieve the desired result.

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top