How to center a document

How to center a document

Forum member · Apr 21, 2011
How can i center a document in the printable area? Thanks Woody

Re: How to center a document

Support · Apr 22, 2011
Hello, Yes, you can center a document to printable area by setting the VerticalAlign property of the PrintOption class to Middle. Below is the code for it. ceTe.DynamicPDF.Printing.InputPdf pdf = new ceTe.DynamicPDF.Printing.InputPdf(@"C:\MyDocument.pdf"); PrintJob printJob = new PrintJob(Printer.Default, pdf); printJob.PrintOptions.VerticalAlign = VerticalAlign.Middle; //printJob.PrintOptions.HorizontalAlign = HorizontalAlign.Center; printJob.Print(); Thanks, ceTe Software Support Team.

Re: How to center a document

Forum member · Apr 22, 2011
thanks!