Reset your Document's page setup effortlessly with the ClearFormatting method. Restore default margins, paper size, and orientation for a polished look.... Document doc = new Document (); DocumentBuilder...builder = new DocumentBuilder ( doc ); // Modify the page setup properties...