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.
Transparent Signature
Re: Transparent Signature
Support · Oct 10, 2016Hello,
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.
Re: Transparent Signature
Forum member · Oct 12, 2016Thanks, 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?
Re: Transparent Signature
Support · Oct 12, 2016Hello,
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.
Re: Transparent Signature
Forum member · Oct 12, 2016Thanks, 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.
Re: Transparent Signature
Support · Oct 12, 2016Hello,
Sure, we will add it to the feature request list for consideration.
Thanks,
ceTe Software Support Team.