|
Rank: Member Groups: Member
Joined: 5/22/2012 Posts: 11
|
i have html text which i want to convert to pdf. in that i want to convert some html tags to pdf placeholders(doc.fields). so that i can use them later on. can somebody suggest me a way how to do that.
thanks in advcance :)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, You can first place empty DIVs in your HTML, give each DIV a unique name, then after the conversion uses this method to get an HtmlElement object: http://www.essentialobjects.com/doc/4/eo.pdf.htmldocument.getelementbyid.aspxThe result HtmlElement can provide you the location of the HTML element (page number and position in the page). You can then use that information and the ACM interface to add input fields into the PDF file. Thanks!
|
|
Rank: Member Groups: Member
Joined: 5/22/2012 Posts: 11
|
hi ,
thanks for quick response, but i cannot figure out on how to use the method getElementById . since am using tinyMCE and i have html in string format. can you suggest a way so that i can pick the element by its id cause i cannot convert string to htmldocument.
a small eg would be of great help :)
thanks !
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, That's something you will need to figure out yourself because we don't code for you. From the HTML to PDF component of view, it provides several functions for you to get information about an element in your HTML. GetElementById is the easiest one. There are several other methods you can take a look and see which one works for you better: http://www.essentialobjects.com/doc/4/eo.pdf.htmldocumentmethods.aspxThanks!
|
|