Free Support Forum - aspose.com

AutoRotate=true causing low quality and breaks gradients


#1

Hi,

Has anyone noticed with AutoRotate on (PDF printing) issues with gradients and lower quality?

With this off gradients work and quality and visibly better. Of course rotation wrong.
With it on the gradients get cut and are stripy.

Project attached (original pptx, converted to PDF then printed. Also scan/photo of printed output) and nothing special in the code:

        PdfViewer viewer = new PdfViewer();
        viewer.Resolution = 1200;

        viewer.BindPdf("TestGradient.pdf");
        //viewer.BindPdf("TestPowerpoint.pdf");

        viewer.PrintPageDialog = true;

        //With this enabled the quality is lowered and then gradient does not print correctly
        //Also appears like the resolution is lowered
        viewer.AutoRotate = true;

        PrinterSettings ps = new PrinterSettings();
        PrintDocument prtdoc = new PrintDocument();

        ps.Copies = 1;

        PageSettings pgs = new PageSettings();

        pgs.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);

        viewer.PrintDocumentWithSettings(pgs, ps);

Thanks,
Nick

AsposePrinterTest.zip (3.8 MB)


#2

@ekvm.de

Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-46004 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.