My business process requires me to extract a TIFF file, add it as a page to a PDF file, extract the next TIFF file, add that as a second page to the PDF and so forth.
Once the last TIFF file has been added, I save the PDF file.
I need to clean up the extracted TIFF files so I don’t leave it lying around
So what I do is delete the extractedTIFF file after I have added it as a page to the PDF.
I have discovered that the TIFF files have to stay around until the PDF is saved. Otherwise, I get blank pages in the saved PDF.
Is there a way around this? I don’t wish to keep track of all the files and delete them after the Save call.
I am attaching the method call that I used to add the Tiff to the PDF.
The delete of the Tiff is handled in the calling routine.