I am trying to develop an application that will scan a stack of paper and automatically divide them into separate PDF documents. To do so, I want to analyze each page as it is scanned and then determine whether or not it should be added to the current PDF document or to start a new one. I am using TwainPdfStartEx, TwainAddGdPictureImageToPdf, and TwainPdfStop to create the final PDF documents. I was trying to us SaveAsPDFEx to save each page to a temporay PDF file to be examined by another process that can examine the page to see what to do next. Unfortunately though, SaveAsPDFEx closes the image preventing me from adding it to the final document via TwainAddGdPictureImageToPdf. Is there any way to invoke SaveAsPDFEx without having it close the image?