Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

InsertPageBreakRequest

import type { InsertPageBreakRequest } from "https://googleapis.deno.dev/v1/docs:v1.ts";

Inserts a page break followed by a newline at the specified location.

interface InsertPageBreakRequest {
endOfSegmentLocation?: EndOfSegmentLocation;
location?: Location;
}

§Properties

§
endOfSegmentLocation?: EndOfSegmentLocation
[src]

Inserts the page break at the end of the document body. Page breaks cannot be inserted inside a footnote, header or footer. Since page breaks can only be inserted inside the body, the segment ID field must be empty.

§
location?: Location
[src]

Inserts the page break at a specific index in the document. The page break must be inserted inside the bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index (i.e. between the table and its preceding paragraph). Page breaks cannot be inserted inside a table, equation, footnote, header or footer. Since page breaks can only be inserted inside the body, the segment ID field must be empty.