Free Support Forum - aspose.com

How to remove rotated texts or watermark text?

Hi, Support:

Is there any method to remove rotated texts from pdf?
Please refer to the demo files.
Demo.zip (254.7 KB)

Thanks for your help in advance.

Ducaisoft

@ducaisoft

The attached archive is damaged or corrupted. Would you kindly make sure to upload correct files again. We will test the scenario in our environment and address it accordingly.

Input.pdf (174.0 KB)
OutPut.pdf (90.7 KB)

@ducaisoft

We tried to remove the watermark images from PDF using following code snippet but did not get success.

Document doc = new Document(dataDir + "Input.pdf");

doc.Pages[1].Resources.Images.Delete(1);
doc.Pages[1].Resources.Images.Delete(1);

doc.Save(dataDir + "output205.pdf");

Therefore, we have logged an issue as PDFNET-48231 in our issue tracking system for the sake of further investigation. We will look into its detail and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

Thanks for your concern about this issue. In fact, it is a rotated textbox generated by Office Word, not watermark image. If there is a method to detect the rotated angle of the textbox or textframe, it may be removed.

@ducaisoft

Thanks for sharing further details.

We have logged these details along with the earlier logged ticket and will inform you as soon as we have additional updates regarding its resolution. Please spare us some time.