Thanks for yor reply.
I tried the code and was able to print.But the pdf text is aligned a bit to right and got truncated.
Another major problem is that I don't see the solid lines that I have on the pdf.
They are simply ignored.
I see the PDF with only plain text. Below is the code that I used.
PdfViewer viewer = new PdfViewer();
viewer.AutoResize = true; //print the file with adjusted size
viewer.AutoRotate = true; //print the file with adjusted rotation
viewer.PrintPageDialog = false;//do not produce the page number dialog when printing
System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();
PrintDocument prtdoc = new PrintDocument();
ps.PrinterName = prtdoc.PrinterSettings.PrinterName;
PageSettings pgs = new PageSettings();
// I think I just need one of these either papersize or papersource
pgs.PaperSize = new System.Drawing.Printing.PaperSize("Legal", 850, 1400);
pgs.PaperSource = ps.PaperSources;
pgs.Margins = new Margins(0, 0, 0, 0);