Sign In  Sign Up Live-Chat

Advanced Printing

Last post 03-25-2008, 8:21 PM by Felix.Liu. 4 replies.
Sort Posts: Previous Next
  •  03-07-2008, 2:32 PM 116736

    Advanced Printing

    Attachment: Present (inaccessible)
    Hello -

    I'm trying to use Aspose.Pdf.Kit to handle printing of PDF documents.  I've run into problems with documents that don't print on a standard paper size in portrait orientation.  Documents intended for a landscape orientation, but forced into portrait, get squished rather than scaled to fit or cropped.  Documents intended for landscape, and printed landscape, also seem to be squished as if they were forced portrait which is probably a bug.  The only thing that works well are portrait documents being printed in portrait orientation.

    Attached is a postscript file which shows the output of trying to print a PPT converted to PDF onto a landscape.  It appears to be squished on the page as if it tried to scale it to portrait first.  Also included is PDF from Aspose.Slides.  Could this get fixed?

    Adobe Reader handles these various cases by providing options to the user for "Auto rotate and center", "Page scaling", "Choose paper source by PDF size" which describe how the PDF image is transposed to the paper.  How can I do similar printing with Aspose.Pdf.kit?



     
  •  03-08-2008, 8:01 AM 116792 in reply to 116736

    Re: Advanced Printing

    Hi,

    Thank you for considering Aspose.

    Aspose.Pdf.Kit supports AutoRotate for printing, since verion 2.7.0.0. Please try the following codes to see if it works.

    PdfViewer viewer = new PdfViewer();
    viewer.OpenPdfFile("test.pdf");
    viewer.AutoRotate = true;    //set to AutoRotation feature, which can also be used in other printing methods
    viewer.PrintDocument();

     Thanks,


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  03-11-2008, 3:15 PM 117234 in reply to 116792

    Re: Advanced Printing

    Hello -

    The auto rotate works great for portrait orientation, but I'm still having problems when I explicitly specify a landscape orientation.  Code sample below should reproduce the problem:

    PrinterSettings printerSettings = new PrinterSettings();
    PageSettings pageSettings = new PageSettings();

    printerSettings.PrinterName = "MyPrinter";
    pageSettings.Landscape = true;  // This setting causes the problem

    PdfViewer pdf = new PdfViewer();
    pdf.AutoRotate = true;
    pdf.OpenPdfFile("test.pdf");
    pdf.PrintDocumentWithSettings(pageSettings, printerSettings);
    pdf.ClosePdfFile();

     
  •  03-12-2008, 11:36 AM 117382 in reply to 117234

    Re: Advanced Printing

    Hi,

    Thank you for pointing out this problem. It is logged as PDFKITNET-4589  in our issue tracking system. We'll try to fix it as soon as possible.  

    Thanks,


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  03-25-2008, 8:21 PM 119152 in reply to 117382

    Re: Advanced Printing

    Hi,

    Issue-4589 has been resolved and the fix will be included in our next publishing.

    Thank you,


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML