PageSetup.clearFormatting method. Resets page setup to default paper size, margins and orientation....let doc = new aw . Document (); let builder = new aw . DocumentBuilder...builder . pageSetup . orientation = aw . Orientation . Landscape ; builder...