title: How to revert incremental update in pdf using PDFBOX?
body: <p>How can we revert last incremental update done in a pdf using pdfbox ?</p>
  
  <p>For e.g.
  <a href="https://drive.google.com/open?id=1TF5-peVfFFpPIdV3U4sEafc0sf9J9hr2" rel="nofollow noreferrer">Original document</a>
  <a href="https://drive.google.com/open?id=1g0bm88Gbfu9u2UTs9P3mhltEbkgbli5l" rel="nofollow noreferrer">Signed document</a></p>
  
  <p>When I digitally sign(certification signature) an original document using incremental save, I get a signed document. Upon inspecting the source of signed document, I could see that "%%EOF" is presenting 2 times. If I manually remove last "%%EOF" along with its content, I could see PDF returns to its initial state, which is very similar to original document.</p>
  
  <p>How can I do this pragmatically ?</p>
  
  <p>I am using PDFBOX v2.0.8</p>
  
  <p>Best Regards,
  Abhishek</p>