Welcome Guest Search | Active Topics | Sign In | Register

add signature object to html in order to convert to pdf Options
Shekel Insurance
Posted: Sunday, May 6, 2018 5:51:00 AM
Rank: Newbie
Groups: Member

Joined: 10/26/2014
Posts: 4
we used till now this code in order to add signiture to our html:

EO.Pdf.HtmlElement input = htmlResult.HtmlDocument.GetElementById(htmlTxtId);
var txt = new AcmTextBox();
txt.Style.OffsetX = input.Location.X;
txt.Style.OffsetY = input.Location.Y;
txt.Style.Height = input.Size.Height;
txt.Style.Width = input.Size.Width;
txt.Name = pdfTxtName;
AcmPageLayout layout = new AcmPageLayout(new AcmPadding(0, 0, 0, 0));
AcmRender render = new AcmRender(input.Location.Page, 0, new AcmPageLayout(new AcmPadding(0, 0, 0, 0)));
render.Render(txt);

this doesnt do the trick any more. do we have any other option to add a signature?
the last row in the code throws execption:

at EO.Internal.bar.m()
at EO.Internal.bar.a(PdfColor A_0)
at EO.Pdf.PdfField.set_Color(PdfColor value)
at EO.Pdf.Acm.AcmField.e(gw A_0)
at EO.Pdf.Acm.AcmContent.e(gw A_0)
at EO.Pdf.Acm.AcmRender.a(AcmBlock A_0, Int32 A_1)
at EO.Pdf.Acm.AcmRender.a(Int32 A_0, AcmContent[] A_1)
at Formally.AddSignatureToPdf(HtmlToPdfResult htmlResult, String htmlTxtId, String pdfTxtName, ...) in ...


please give us a solution to our problem.

thanks in advance


eo_support
Posted: Monday, May 7, 2018 2:05:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

We are not aware of such problem. Can you try to isolate the problem into a test project and then send the test project to us? See here for more details:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.