# Using First Page Only Barcodes

The FirstPageOnly element allows users to select a barcode for use on the first page of a document. Setting the element to "true" prints a barcode on the first page only of a document; setting the element to "false" prints a barcode on all pages.

The FirstPageOnly element is used within the SelectGenerateAndDeliver, SelectAndGenerate and Generate API calls.

## SOAP request

    <c:AncillaryOutput><c:OutputType>Barcode</c:OutputType><c:Barcode>
    <c:Type>barcode39</c:Type><c:Pattern>Test%page%%totalpages%
    </c:Pattern><c:UseCoverPage>true</c:UseCoverPage><c:FirstPageOnly>true</c:FirstPageOnly>
    </c:Barcode></c:AncillaryOutput>