I'm attempting to merge 2 pdfs, (I'm following the examples in the iText in Action 2nd edition book) and I'm getting a null reference exception error when attempting to run this code:
MemoryStream stream = new MemoryStream();
document = new Document();
PdfCopy copy = new PdfCopy(document, stream);
document.Open(); //breakpoint here
The copy object has a null reference exception every time. I've been unable to find a simple answer to this anywhere else on this site. Thanks in advance!