Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfGraphics.AddToPageForeground(PdfPage) Method

Adds graphics to a PDF page foreground.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.2.Drawing.dll

NuGet Package: DevExpress.Pdf.Drawing

#Declaration

public void AddToPageForeground(
    PdfPage page
)

#Parameters

Name Type Description
page PdfPage

A PdfPage object that is the page in the document where graphics are drawn (measured in points - 1/72 of an inch).

#Remarks

The overloaded AddToPageForeground method automatically converts world coordinates to page coordinates. See Coordinate Systems to learn more.

Call the AddToPageForeground method to draw graphics as the foreground of the page. The default DPI is equal to 96. To draw graphics as the background of the page content, call the PdfGraphics.AddToPageBackground method.

See Also