Back to Devexpress

PdfDocumentArea.Create(PdfDocumentPosition, PdfDocumentPosition) Method

officefileapi-devexpress-dot-pdf-dot-pdfdocumentarea-dot-create-x28-devexpress-dot-pdf-dot-pdfdocumentposition-devexpress-dot-pdf-dot-pdfdocumentposition-x29.md

latest2.8 KB
Original Source

PdfDocumentArea.Create(PdfDocumentPosition, PdfDocumentPosition) Method

Creates a document area based on the specified start and end positions.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public static PdfDocumentArea Create(
    PdfDocumentPosition position1,
    PdfDocumentPosition position2
)
vb
Public Shared Function Create(
    position1 As PdfDocumentPosition,
    position2 As PdfDocumentPosition
) As PdfDocumentArea

Parameters

NameTypeDescription
position1PdfDocumentPosition

A PdfDocumentPosition object.

| | position2 | PdfDocumentPosition |

A PdfDocumentPosition object.

|

Returns

TypeDescription
PdfDocumentArea

A PdfDocumentArea object.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Create(PdfDocumentPosition, PdfDocumentPosition) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

office-file-api-ai-implementation/CS/Controllers/SummarizeController.cs#L78

csharp
PdfDocumentPosition pagePosition2 = new PdfDocumentPosition(1, firstPageBox.BottomRight);
var pageArea = PdfDocumentArea.Create(pagePosition1, pagePosition2);
summaryText = await docProcessingService.SummarizeAsync(pdfDocumentProcessor, pageArea, summarizationMode);

See Also

PdfDocumentArea Class

PdfDocumentArea Members

DevExpress.Pdf Namespace