title: PDF Disable Anti-alias on Lines
body: <p>I'm creating a dynamically generated PDF using FPDF.</p>
  
  <p>My PDF requires many exactly horizontal/vertical lines in a grid and when rendered they are anti-aliased and look very fuzzy and unacceptable to the client. I need to remove the anti-aliasing for these(or all) lines in the doc.</p>
  
  <p>I know this is possible because it's shown correctly in the adobe pdf specs itself
  <a href="http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf" rel="nofollow noreferrer">http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf</a> (warning: big file)
  see the box in page 2 for how this should look.</p>
  
  <p>How would I duplicate the box shown on this page?</p>
  
  <p>-- EDIT -- </p>
  
  <pre><code>%PDF-1.6
  3 0 obj
  &lt;&lt;/Type /Page
  /Parent 1 0 R
  /Resources 2 0 R
  /Contents 4 0 R&gt;&gt;
  endobj
  4 0 obj
  &lt;&lt;/Length 44&gt;&gt;
  stream
  2 J
  1.00 w
  20.00 821.89 m 200.00 821.89 l S
  
  endstream
  endobj
  1 0 obj
  &lt;&lt;/Type /Pages
  /Kids [3 0 R ]
  /Count 1
  /MediaBox [0 0 595.28 841.89]
  &gt;&gt;
  endobj
  2 0 obj
  &lt;&lt;
  /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
  /Font &lt;&lt;
  &gt;&gt;
  /XObject &lt;&lt;
  &gt;&gt;
  &gt;&gt;
  endobj
  5 0 obj
  &lt;&lt;
  /Producer (FPDF 1.6)
  /CreationDate (D:20100311190240)
  &gt;&gt;
  endobj
  6 0 obj
  &lt;&lt;
  /Type /Catalog
  /Pages 1 0 R
  /OpenAction [3 0 R /FitH null]
  /PageLayout /OneColumn
  &gt;&gt;
  endobj
  xref
  0 7
  0000000000 65535 f 
  0000000179 00000 n 
  0000000266 00000 n 
  0000000009 00000 n 
  0000000087 00000 n 
  0000000360 00000 n 
  0000000435 00000 n 
  trailer
  &lt;&lt;
  /Size 7
  /Root 6 0 R
  /Info 5 0 R
  &gt;&gt;
  startxref
  538
  %%EOF
  </code></pre>
  
  <p>This is a very simple PDF file that draws a single line showing the issue I'm having. I've figured out that the trick is to add this:</p>
  
  <pre><code>/Type /ExtGState
  /SA false
  </code></pre>
  
  <p>But I can't get it to work yet. SA is defined in 10.6.5 in the above PDF specs</p>