We have large size PDF with TextStamp on each page of the file. Need to remove stamps using method DeleteStampById(int stampId), then save the PDF to local disk or into MemoryStream. We use Aspose.PDF 20.12.
The part of code we use:
Document doc = new Document($“C:/test/DeleteStampExample.pdf”);
using (PdfContentEditor contentEditor = new PdfContentEditor(doc))
contentEditor.DeleteStampById(2837); // stampID
It takes too long if the PDF contains stamps - more than 30 minutes (I didn’t wait any longer) and saving is not ended. But if there are no stamps in file - it works more faster.
Please, take example files from sharing service:
The first file (DeleteStampExample.pdf) with stamps and the second one (DeleteStampExample2.pdf) without stamps.
Is there any solution to speed up this?
Thanks for your help.