Skip to content

# PDFBatesNumber

Namespace: O2S.Components.PDF4NET.Content

Handles operations related to Bates numbers.

    public class PDFBatesNumber

Inheritance Object → PDFBatesNumber

## Methods

### ReadBatesNumber(PDFPage)

Reads the Bates number stamped on the page.

    public static string ReadBatesNumber(PDFPage page)

Parameters

`page` PDFPage
The page to read the Bates number from.

Returns

String
The last Bates number stamped on the page.

### RemoveBatesNumber(PDFPage)

Removes the Bates number from the PDF page.

    public static void RemoveBatesNumber(PDFPage page)

Parameters

`page` PDFPage
The page from which the Bates number is removed.

Remarks

This method removes all the content beetween the tags that mark a Bates number. If other content is also present between these tags, it will also be removed.

### WriteBatesNumber(PDFFixedDocument, PDFBatesNumberProvider, PDFBatesNumberAppearance)

Stamps the document pages with Bates numbers.

    public static void WriteBatesNumber(PDFFixedDocument document, PDFBatesNumberProvider batesNumberProvider, PDFBatesNumberAppearance batesNumberAppearance)

Parameters

`document` PDFFixedDocument
The document to be stamped.

`batesNumberProvider` PDFBatesNumberProvider
The provider for the Bates numbers for each page in the document.

`batesNumberAppearance` PDFBatesNumberAppearance
The appearance of the Bates number on the page.

### WriteBatesNumber(PDFPage, PDFBatesNumberProvider, PDFBatesNumberAppearance)

Stamps a PDF page with a Bates number.

    public static void WriteBatesNumber(PDFPage page, PDFBatesNumberProvider batesNumberProvider, PDFBatesNumberAppearance batesNumberAppearance)

Parameters

`page` PDFPage
The page to be stamped.

`batesNumberProvider` PDFBatesNumberProvider
The provider for the Bates numbers for each page in the document.

`batesNumberAppearance` PDFBatesNumberAppearance
The appearance of the Bates number on the page.