Remove stream in Mediabox

Hello Aspose, I write my C# app using apose.pdf 17.2. I want to remove infected stream “9 0 obj” from my attachment and I want to ask if there is some way to do that? I tried to remove all pages but this stream still existed. From my analysis, “9 0 obj” is called by Mediabox “8 0 obj” and this Mediabox is called by “3 0 obj”
Thanks you
BkaqSzdZzx_out.zip (828 Bytes)

@truongminhlong

Thanks for contacting support.

We have tested the scenario in our environment by running an OptimizeResources method over the PDF which you have shared, as stated method has an option to remove unused streams from the PDF, and we have observed that API raised an IndexOutOfRange exception.

Furthermore, we have also noticed that after removing all pages from the PDF, the streams did not get removed. Hence I have logged and investigation ticket as PDFNET-43092 in our issue tracking system. Our product team will further investigate the reasons behind this and as soon as we have some feedback from their side, we will inform you.

Please be patient and spare us little time. We are sorry for the inconvenience.