Create PDF Graphics Context
Before drawing shapes, lines and other graphics content on a page, you need to create PDF graphics context. The graphic context is represented by a PdfGraphics object.
To access this class, reference the DevExpress.Pdf.Drawing assembly.
The PDF graphics context is associated with a document. This means that the PDF graphics context cannot be created without loading the document into the PDF Document API component. If you close the document, reopen it or open another document, the PDF graphics context becomes invalid and the ArgumentException is raised when the graphics context is applied to the new document. See Adding Graphics Content to a Page for more details.