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

DocumentStyle

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

The style of the document.

interface DocumentStyle {
background?: Background;
defaultFooterId?: string;
defaultHeaderId?: string;
evenPageFooterId?: string;
evenPageHeaderId?: string;
firstPageFooterId?: string;
firstPageHeaderId?: string;
flipPageOrientation?: boolean;
marginBottom?: Dimension;
marginFooter?: Dimension;
marginHeader?: Dimension;
marginLeft?: Dimension;
marginRight?: Dimension;
marginTop?: Dimension;
pageNumberStart?: number;
pageSize?: Size;
useCustomHeaderFooterMargins?: boolean;
useEvenPageHeaderFooter?: boolean;
useFirstPageHeaderFooter?: boolean;
}

§Properties

§
background?: Background
[src]

The background of the document. Documents cannot have a transparent background color.

§
defaultFooterId?: string
[src]

The ID of the default footer. If not set, there's no default footer. This property is read-only.

§
defaultHeaderId?: string
[src]

The ID of the default header. If not set, there's no default header. This property is read-only.

§
evenPageFooterId?: string
[src]

The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether to use the default_footer_id or this value for the footer on even pages. If not set, there's no even page footer. This property is read-only.

§
evenPageHeaderId?: string
[src]

The ID of the header used only for even pages. The value of use_even_page_header_footer determines whether to use the default_header_id or this value for the header on even pages. If not set, there's no even page header. This property is read-only.

§
firstPageFooterId?: string
[src]

The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_footer_id or this value for the footer on the first page. If not set, there's no first page footer. This property is read-only.

§
firstPageHeaderId?: string
[src]

The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there's no first page header. This property is read-only.

§
flipPageOrientation?: boolean
[src]

Optional. Indicates whether to flip the dimensions of the page_size, which allows changing the page orientation between portrait and landscape.

§
marginBottom?: Dimension
[src]

The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles.

§
marginFooter?: Dimension
[src]

The amount of space between the bottom of the page and the contents of the footer.

§
marginHeader?: Dimension
[src]

The amount of space between the top of the page and the contents of the header.

§
marginLeft?: Dimension
[src]

The left page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections.

§
marginRight?: Dimension
[src]

The right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections.

§
marginTop?: Dimension
[src]

The top page margin. Updating the top page margin on the document style clears the top page margin on all section styles.

§
pageNumberStart?: number
[src]

The page number from which to start counting the number of pages.

§
pageSize?: Size
[src]

The size of a page in the document.

§
useCustomHeaderFooterMargins?: boolean
[src]

Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle margin_footer, SectionStyle margin_footer are respected. When false, the default values in the Docs editor for header and footer margin are used. This property is read-only.

§
useEvenPageHeaderFooter?: boolean
[src]

Indicates whether to use the even page header / footer IDs for the even pages.

§
useFirstPageHeaderFooter?: boolean
[src]

Indicates whether to use the first page header / footer IDs for the first page.