title: How to remove/change print document margin in printTask?
body: <p>I wonder how I can achieve a borderless print.</p>
  
  <p>At the moment my output looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/NwYVn.png" alt="border I&#39;m referring to is marked red"></p>
  
  <p>I'd like to have the image start at the very top left corner. Is this possible? I already tried to set a negative margin to my print-style box, but the image will get cut then.</p>
  
  <p>I know that maybe not all printers are capable of printing the area of the border, but in my use-case the picture will be white in these areas. (The mountain-image is just for demo purposes)</p>
  
  <p>Can I specify the document border somehow via printTask?</p>
  
  <p>See my current setup:</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div id="pdf-render-output"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS:</strong> </p>
  
  <pre><code>body &gt; #pdf-render-output {
      display: none;
  }
  
  @media print {
  
      body &gt; * {
         display:none;
         max-width: 100%;
      }
  
      html {
         max-width: 100%;
         border-top: 0;
      }
  
      body &gt; #pdf-render-output {
          display: block;
          border: none;
          max-width: 100%;
          width: 100%;
          height: 100%;
          position: relative;
          margin: 0; /* I tried to set negative margin/padding eg. here */
          padding: 0;
      }
  
  }
  </code></pre>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>$('#pdf-render-output').append("&lt;img src="..." style=\"width: 100%\" /&gt;");
  </code></pre>
  
  <p>I played around with all possible margins/paddings and stuff, but the image will get cut and the white border stays 'over' it. </p>
  
  <p>I hope that there might be a printTask-option I missed browsing the msdn?</p>
  
  <p><strong>Update:</strong>
  I tried to set all margin/padding/border values with !important. No change.
  Here is a screenshot from the simulator, displaying only the print-css-style:
  <img src="https://i.stack.imgur.com/gRRi6.jpg" alt="enter image description here"></p>
  
  <p>I got to the point thinking it's an issue with the printTask itself. Are there any options regarding to this problem?</p>