/**
 * Copyright 2020 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */ public export interface PDFMargin { top ? : string | number ; bottom ? : string | number ; left ? : string | number ; right ? : string | number ; } remarks public export type PaperFormat = 'letter' | 'legal' | 'tabloid' | 'ledger' | 'a0' | 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6' ; /**
 * Valid options to configure PDF generation via  Page . pdf .
 *  public export interface PDFOptions { defaultValue scale ? : number ; defaultValue displayHeaderFooter ? : boolean ; /**
     * HTML template for the print header. Should be valid HTML with the following
     * classes used to inject values into them:
     * - `date` formatted print date
     *
     * - `title` document title
     *
     * - `url` document location
     *
     * - `pageNumber` current page number
     *
     * - `totalPages` total pages in the document
     */ headerTemplate ? : string ; /**
     * HTML template for the print footer. Has the same constraints and support
     * for special classes as  PDFOptions . headerTemplate .
      footerTemplate ? : string ; defaultValue printBackground ? : boolean ; defaultValue landscape ? : boolean ; defaultValue pageRanges ? : string ; remarks defaultValue format ? : PaperFormat ; /**
     * Sets the width of paper. You can pass in a number or a string with a unit.
     */ width ? : string | number ; /**
     * Sets the height of paper. You can pass in a number or a string with a unit.
     */ height ? : string | number ; defaultValue preferCSSPageSize ? : boolean ; defaultValue margin ? : PDFMargin ; remarks defaultValue path ? : string ; defaultValue omitBackground ? : boolean ; defaultValue timeout ? : number ; } internal export interface PaperFormatDimensions { width : number ; height : number ; } internal export const paperFormats = { letter : { width : 8.5 , height : 11 } , legal : { width : 8.5 , height : 14 } , tabloid : { width : 11 , height : 17 } , ledger : { width : 17 , height : 11 } , a0 : { width : 33.1 , height : 46.8 } , a1 : { width : 23.4 , height : 33.1 } , a2 : { width : 16.54 , height : 23.4 } , a3 : { width : 11.7 , height : 16.54 } , a4 : { width : 8.27 , height : 11.7 } , a5 : { width : 5.83 , height : 8.27 } , a6 : { width : 4.13 , height : 5.83 } , } as const ;