Welcome Guest Search | Active Topics | Sign In | Register

html tags to pdf placeholder Options
naman
Posted: Tuesday, May 22, 2012 6:28:22 AM
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 :)
eo_support
Posted: Tuesday, May 22, 2012 8:46:47 AM
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.aspx

The 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!
naman
Posted: Tuesday, May 22, 2012 10:15:15 AM
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 !
eo_support
Posted: Tuesday, May 22, 2012 10:57:07 AM
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.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.