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

Free Support Forum - aspose.com

Remove Hidden Text and Images from PDF

Does aspose have any API which removes hidden text and images ?

@Moloy74

Thank you for contacting support.

Would you please share source file and expected output document with us while mentioning how these requirements can be achieved with Adobe Acrobat because Aspose.PDF mimics it. We will investigate further to assist you accordingly.

I may not be able to share the samples, but I can refer to the article where Adobe Acrobat does this operation…

https://helpx.adobe.com/acrobat/using/removing-sensitive-content-pdfs.html

Go To the section: Find and remove hidden content

@Moloy74

Thank you for elaborating the process.

Please note that forum attachments are accessible to thread owner and Aspose staff only, and are used for testing purposes. Kindly share a sample file with us so that we may log a feature request and address your requirements based on such sample file. We appreciate your cooperation in this regard.

Attached is the file that contains hidden text:

HiddenTextPDF.pdf (15.2 KB)

This is the file which could be an output after removing the hidden text.

@Moloy74

Thank you for sharing requested data.

We are afraid expected output file did not attach. Can you please share it again via Google Drive, Dropbox etc. if it is bigger in size. About your requirements, a feature request ticket with ID PDFNET-46307 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

ExpectedOutput.zip (160.4 KB)

This could be the expected output file where the hidden text under the rectangular box is removed.
Adobe has a feature to do that. But did not find any documentation for ASpose for the same features. Thanks.

@Moloy74

Thank you for sharing requested data.

We will let you know as soon as some significant update will be available in this regard.