We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adding TIFF file- blank PDF

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.





Thanks





Parkoos

HI Parkoos,


Thanks for your inquiry. You may use memory stream for the scenario i.e. extract images to memory stream and use it for adding into PDF document. Hopefully it will help you to accomplish the task. If issue exist then please share your complete code and source document, so we will look into it and will provide you information accordingly.

Best Regards,