title: How to copy google doc entire page content with formatting's(images,charts,etc)from a google doc file to another docs in Google docs Script Editor?
body: <p>As per below screenshot, I have a Doc called &quot;Raw&quot;. All I need to copy/append this doc pages to other of the Documents like &quot;Document 1, 2, 3....&quot; at the end of its pages using Google script editor ?</p>
  <p><a href="https://i.stack.imgur.com/Ntw8n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ntw8n.png" alt="enter image description here" /></a></p>
  <p>This is my code, am able to achieve this only for text contents, but not as whole page with charts, shapes, formatting, images, etc.</p>
  <pre><code>function myFunction() {
    
    var SOURCE_FILE = &quot;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&quot; //Browser Document ID;
    var DESTINATION_FILE = &quot;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&quot;
    
    var SOURCE_FILE_COPY = DocumentApp.openById(SOURCE_FILE).getText();
    //var DESTINATION_FILE_COPY = DocumentApp.getActiveDocument().getBody();
    var DESTINATION_FILE_COPY = DocumentApp.openById(DESTINATION_FILE).getBody();
    var TEXT = DESTINATION_FILE_COPY.editAsText();
    TEXT.appendText(SOURCE_FILE_COPY);      
  }
  </code></pre>