Transparent Signature

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  Re: Transparent Signature

DynamicPDF CoreSuite for .NET (v8) Forum

 Oct 09 2016 1:33 AM
Dear Sir/Madam:

I try to use MergeDocument to open existing PDF file and add digital signature on it.

 signature.HideAllText();
 signature.FullPanel.SetImage("sign.png");

it seems everything is ok, I expect the signature area will only has my transparent sign.png, however, the signature area has white background which behind sign.png.

Could you tell me how to set transparent for signature area?

Cheers.

Bin.
 Oct 10 2016 9:45 AM
Posted by a ceTe Software moderator
Hello,

It is not possible to set transparency to the signature area using DynamicPDF API. If you are adding only the image to the PDF then you can load the image using Image page element and then add this Image object to the TransparencyGroup page element. You can set desired transparency to the TransparencyGroup. You can refer to the documentation on TransparencyGroup page element here.  Also below is the code sample for adding image by setting transparency.

            PdfDocument pdf = new PdfDocument(@"Path for input PDF");
            MergeDocument document2 = new MergeDocument(pdf);
            Page page2 = document2.Pages[0];
            TransparencyGroup grp = new TransparencyGroup(0.4F);
            Image image = new Image(@"Path for an image", 10, 10);
            image.Width = 300;
            image.Height = 100;
            grp.Add(image);
            page2.Elements.Add(grp);
            document2.Draw("C:/Temp/MyDocument.pdf");

Thanks,
ceTe Software Support Team.
 Oct 12 2016 4:44 AM
Thanks, however, this is not what I want, if I add a image when I click on that, it is no reaction, however, if it is a digital signature, it will show signature property dialog. Can it be possible if user click on transparent image to show digital signature property dialog?
 Oct 12 2016 2:12 PM
Posted by a ceTe Software moderator
Hello,

It is not possible to open signature property dialog when an image is clicked. The signature property dialog is displayed only for digital signature fields and it is not possible to make a signature field transparent.

Thanks,
ceTe Software Support Team.
 Oct 12 2016 3:29 PM
Thanks, I will be good to have that ability in future version of DynamicPDF,
I used some other PDF library, it seem they can do transparent signature area.
 Oct 12 2016 4:54 PM
Posted by a ceTe Software moderator
Hello,

Sure, we will add it to the feature request list for consideration.

Thanks,
ceTe Software Support Team.


All times are US Eastern Standard time. The time now is 4:45 AM.