title: PDF Unknown signing icon
body: <p>I am signing PDF programmatically. Every new signature is added in an incremental way where I add the signature dictionnary after the %EOF and I update the AcroForm like this (sorry, I'm at work so I can't upload the PDF) :</p>
  
  <pre><code>... // ORIGINAL FILE
  
  trailer
  &lt;&lt;
  /Size 11
  /Root 1 0 R
  /Info 10 0 R
  &gt;&gt;
  
  startxref
  2714
  %%EOF
  1 0 obj 
  &lt;&lt;/Type /Catalog /Outlines 2 0 R /Pages 3 0 R /AcroForm &lt;&lt;/Fields [11 0 R ] /SigFlags 3 &gt;&gt; /Names 14 0 R &gt;&gt;
  endobj
  
  ...
  
  11 0 obj 
  &lt;&lt;/Type /Annot /SubType /Widget /Rect [0 0 0 0 ] /P 4 0 R /F 4 /FT /Sig /T (Signature) /Ff 0 /V &lt;&lt;/Type /Sig /Filter /Adobe.PPKLite /SubFilter /adbe.pkcs7.detached /ByteRange [0 3729 15473 422                   ] /Contents &lt;308209...&gt; 
  /M (D:20170801165520+02'00') &gt;&gt; &gt;&gt;
  endobj
  
  ...
  
  trailer
  &lt;&lt;/Size 15 /Root 1 0 R /Info 10 0 R /Prev 2714 &gt;&gt;
  startxref
  15609
  %%EOF
  1 0 obj 
  &lt;&lt;/Type /Catalog /Outlines 2 0 R /Pages 3 0 R /AcroForm &lt;&lt;/Fields [15 0 R ] /SigFlags 3 &gt;&gt; /Names 14 0 R &gt;&gt;
  endobj
  
  ...
  
  15 0 obj 
  &lt;&lt;/Type /Annot /SubType /Widget /Rect [0 0 0 0 ] /P 4 0 R /F 4 /FT /Sig /T (Signature) /Ff 0 /V &lt;&lt;/Type /Sig /Filter /Adobe.PPKLite /SubFilter /adbe.pkcs7.detached /ByteRange [0 16632 28376 387                  ] /Contents &lt;3082062...&gt; 
  /M (D:20170802094848+02'00') &gt;&gt; &gt;&gt;
  endobj
  16 0 obj 
  
  ...
  
  &lt;&lt;/Size 18 /Root 1 0 R /Info 10 0 R /Prev 15609 &gt;&gt;
  startxref
  28476
  %%EOF
  </code></pre>
  
  <p>Maybe the problem is that I have multiple objects having the same ID and that my last AcroForm only refers to the last signature ? I want to be able to sign one file multiple times but I have an issue. The first signing is okay and displays this banner :</p>
  
  <p><a href="https://i.stack.imgur.com/lvrRl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lvrRl.png" alt="enter image description here"></a></p>
  
  <p>And then I try to sign the same file another time with another certificate and this give me this trash can icon next to the signature and says it was removed as you can see here :</p>
  
  <p><a href="https://i.stack.imgur.com/05wJg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/05wJg.png" alt="enter image description here"></a></p>
  
  <p>I am using Zend_PDF to parse the file and add the signature.</p>
  
  <p><strong>EDIT :</strong> Thanks to @mkl the 2 signatures are now recognized by Adobe Reader. My AcroForms now look like this :</p>
  
  <pre><code>2714
  %%EOF
  1 0 obj 
  &lt;&lt;/Type /Catalog /Outlines 2 0 R /Pages 3 0 R /AcroForm &lt;&lt;/Fields [11 0 R ] /SigFlags 3 &gt;&gt; /Names 14 0 R &gt;&gt;
  endobj
  
  ... 
  
  15610
  %%EOF
  1 0 obj 
  &lt;&lt;/Type /Catalog /Outlines 2 0 R /Pages 3 0 R /AcroForm &lt;&lt;/Fields [11 0 R 15 0 R ] /SigFlags 3 &gt;&gt; /Names 14 0 R &gt;&gt;
  endobj
  
  ...
  </code></pre>
  
  <p>And  I have this surprising errors since I didn't modify anything about the ByteRange and I verified by hand that they are correct. Is is about my new modifications ?</p>
  
  <p><a href="https://i.stack.imgur.com/e5xhL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e5xhL.png" alt="enter image description here"></a></p>