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

Free Support Forum - aspose.com

No StampID

I’ve looked through the forum, but didn’t find any related problem.

I’m trying to delete some stamps from a PDF document. The stamps are found, but apparently their ID is not read correctly - it’s always 0. Here’s the code I use:

Using isoStream As IsolatedStorageFileStream = IsoStore.GetStream(“some path”)
Dim pdf As New Aspose.Pdf.Document(isoStream)
Dim editor As New PdfContentEditor


For i As Integer = 1 To pdf.Pages.Count
For Each stamp As StampInfo In editor.GetStamps(i)
editor.DeleteStampById(i, stamp.StampId)

End Using

I’m currently using the trial version of Aspose, in case this makes any difference.

Hi Sorin,

Thanks for your inquiry. Please note you can only remove Stamps with valid Stamp ID. Please share your sample PDF document here, we will look into it and guide you accordingly.

Moreover, please note Aspose.Pdf evaluation
version has two limitations, evaluation watermark and at most four
elements of any collection can be viewed. You may request for 30
days temporary license to evaluate our product without
any limitations.

We are sorry for the inconvenience caused.

Best Regards,

I have attached the document in question, although so far it happened with all files I used. All stamps were added with Aspose.Pdf.

Hi Sorin,

Thanks for sharing the resource file.

I have tested the scenario and have observed that Stamp ID being returned for stamps inside PDF file is 0 and I am unable to delete stamps from PDF document. For the sake of correction, I have logged this problem
as PDFNEWNET-39679 in our issue tracking system. We will
further look into the details of this problem and will keep you updated on the
status of correction. Please be patient and spare us little time. We are sorry
for this inconvenience.