title: Extract pages from a PDF file using ITextSharp
body: <p>Is it possible using IText to copy PDF pages from a full PDF document and return partial document based on a form field name? For example I need to copy the beginning of a pdf document and stop at a certain text field called [STOP_HERE], so whatever contents before this fields need to be extracted, the [STOP_HERE] field could be located on a different page for each document, so using page numbers wouldn't help here.</p>
  
  <p>I searched online and all I can find is a way to copy only form fields from a document but not the whole document elements including images texts with their exact location and style. </p>
  
  <p>Can IText do the job here?  </p>
  
  <p>EDIT: More details</p>
  
  <p>[STOP_HERE] is an AcroForms text field which has been placed in a document by the PDF design person to indicate that everything before this element should be copied as is into a different document. The field itself is not important, I don't want to fill or do anything with it, it's just used as a signal to let the document parser stop there and copy all previous (upper) contents, I just don't know how to read all contents (without changing style, contents, etc) before this field. </p>