title: How do I insert a Horizontal line in a google document via Google Apps Script?
body: <p>I wrote a script that takes some data from a google spreadsheet and writes it in several separate tables in a google document. 
  Since I need to physically cut these tables from the printed document, I'd like to add horizontal lines between them.
  I guess I can insert an image of a line, via</p>
  
  <pre><code>var cutline = UrlFetchApp.fetch("SOME URL");
  body.appendInlineImage(resp.getBlob());
  </code></pre>
  
  <p>where "SOME URL" is the url for the image.</p>
  
  <p>Another way I can think of would be creating a one-column table and add my tables in its cells. The horizontal lines for the table would be my cutting guides.</p>
  
  <p>However, from the user interface I a horizontal line can be easily added via "Insert>Horizontal Line". I was not able to do find a way to do that from Google Apps Script. </p>
  
  <p>Is this unsupported? </p>
  
  <p>Can someone confirm that and/or possibly suggest method that is less cumbersome than those I thought of?</p>
  
  <p>EDIT: I have also found the HorizontalRule class, which I do not understand entirely. However I don't think it's what I'm looking for.
  Another alternative could be an InlineDrawing. However, from this <a href="https://developers.google.com/apps-script/guides/docs#structure_of_a_document" rel="nofollow noreferrer">guide</a>, I gather that an InlineDrawing can only be manipulated, but not added programmatically. </p>