PDF Printing Blank Page

Problem: PDF Printing Blank Page
Printer Moble: epson T5270 (A0 or A1)
Document: In the attachment.
Is there a way to resolve the issue?8.pdf (6.6 KB)


Would you please also share the sample code snippet which you are using for printing. We will test the scenario in our environment and address the issue accordingly.

Please kindly get the sample code as below,

static void AsposePrint()
var docPath = ConfigurationManager.AppSettings[“docPath”];
var PrinterName = ConfigurationManager.AppSettings[“PrinterName”];
var asposeLicense = Environment.CurrentDirectory + @"\lib\Aspose.Total.lic";
Aspose.Pdf.License license = new Aspose.Pdf.License();

        using (PdfViewer pdfViewer = new PdfViewer())
            pdfViewer.AutoResize = true;
            pdfViewer.AutoRotate = true;
            pdfViewer.PrintPageDialog = false;

            PrinterSettings ps = new PrinterSettings();
            PageSettings pgs = ps.DefaultPageSettings;
            pgs.PaperSize = new PaperSize("A1", 2338, 3308);
            ps.PrinterName = PrinterName;
            pgs.Margins = new Margins(0, 0, 0, 0);
            pdfViewer.PrintAsGrayscale = true;
            ps.PrintToFile = true;
            ps.PrintFileName = @"C:\Data\Projects\DokoPrint\Plotter\8.pcl";
            pdfViewer.PrintDocumentWithSettings(pgs, ps);

Thank you for your kind help


We were able to observe the similar issue in our environment while using Aspose.PDF for .NET 20.10. Therefore, we have logged it as PDFNET-48906 in our issue tracking system for further investigation. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.