Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.
Mon Mar 20, 2023 1:31 pm
Hello,
I am using this option to place stamps, sometimes I need to change them and place them in a certain coordinate. how can i get this string?
How-to-add-an-image-stamp-to-a-PDF-file-in-C
Tank you
-
Joaquim.pais
-
- Posts: 1
- Joined: Fri Dec 14, 2018 11:56 am
Tue Mar 21, 2023 4:20 am
Hi,
Thanks for your inquiry.
Do you want to get the image stamp instance? If so, please see the following code for reference.
- Code: Select all
PdfDocument document = new PdfDocument();
document.LoadFromFile("test.pdf");
PdfPageBase page = document.Pages[0];
PdfRubberStampAnnotationWidget widget = page.AnnotationsWidget[0] as PdfRubberStampAnnotationWidget;
If the code does not meet your requirement or you have other questions that we can assist you, please feel free to contact us.
Best regards,
Triste
E-iceblue support team
-
Triste.Dai
-
- Posts: 1000
- Joined: Tue Nov 15, 2022 3:59 am