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 Aug 31, 2015 8:17 pm

Is there a way to create a custom/dynamic stamp (similar to the same available in Acrobat) with Spire.PDF? I need to place a dynamic stamp on a collection of PDFs and allow the user to reposition and resize the stamp during a Q/C phase in Acrobat, to make sure that the stamp that is placed by my program does not cover any existing text.

I am currently placing a rectangle on the documents with Canvas.DrawImage and several other parameters which provides the look and content that I need, but repositioning/resizing the resulting image in Acrobat is cumbersome for my users.

MatthewPierce
 
Posts: 22
Joined: Thu Jul 16, 2015 4:45 pm

Tue Sep 01, 2015 9:32 am

Hello,

Thanks for your inquiry.
So sorry that our product doesn't support this feature at this stage. We will consider adding it in our future upgrade.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Tue Sep 01, 2015 9:53 am

That would be fantastic. I would be more than willing to beta test that feature when you begin development.

Thank you.

MatthewPierce
 
Posts: 22
Joined: Thu Jul 16, 2015 4:45 pm

Wed Sep 02, 2015 3:08 am

Hello,

Thanks for your reply.
Once there are any progress, we will let you know ASAP.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Thu Oct 29, 2015 3:42 pm

Checking in on this, as it would resolve an issue that is currently holding up progress on one of my projects.

Thanks.

MatthewPierce
 
Posts: 22
Joined: Thu Jul 16, 2015 4:45 pm

Fri Oct 30, 2015 4:01 am

Hi,

Our Spire.PDF has supported the feature, please refer to the below sample code. In this sample, I used a image source for simpleness and easiness, but you also can use template.Graphics.DrawLine() method or others to custom your stamp.
Code: Select all
PdfDocument document = new PdfDocument();
            PdfPageBase page = document.Pages.Add();
            PdfRubberStampAnnotation loStamp = new PdfRubberStampAnnotation(new RectangleF(new PointF(100, 100), new SizeF(100, 50)));
           
            PdfAppearance loApprearance = new PdfAppearance(loStamp);
            PdfImage image = PdfImage.FromFile("..\\..\\stamp.png");
            PdfTemplate template = new PdfTemplate(180,60);
            template.Graphics.DrawImage(image, 0, 0);
           
            loApprearance.Normal = template;
            loStamp.Appearance = loApprearance;
            page.AnnotationsWidget.Add(loStamp);
            string outputFile_P = @"..\..\5705.pdf";
            document.SaveToFile(outputFile_P);


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Fri Nov 06, 2015 7:58 am

Hi,

Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF