Welcome Guest Search | Active Topics | Sign In | Register

HTML to PDF forms Options
MAFI IT Admin
Posted: Saturday, March 16, 2013 6:34:30 AM
Rank: Newbie
Groups: Member

Joined: 3/7/2013
Posts: 4
Is it possible with HTML to PDF converter to create PDF forms? I mean not going through the while ACM based construction of a pdf fill in form but simply turning basic HTML input tags into pdf input fields? Am looking at option to make an easy to use fill in report and we are already using html to pdf so if it would support input fields then I can use the pdf's as e-paper documents.

Thanks,
Theo
eo_support
Posted: Saturday, March 16, 2013 12:08:33 PM
Rank: Administration
Groups: Administration

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

No. It's not possible. You have to go through the ACM approach in order to create fill in forms. However it is possible for you to use "marker" HTML elements in your HTML, so that you can get the precise position of those elements. You can then use those location information to dynamically generates ACM fields and add those fields to the page.

In order to get an element's location, you will need to follow these steps:

1. Get the HtmlToPdfResult object returned from ConvertHtml/ConvertUrl;
2. Get the HtmlDocument object from the result object;
3. Call GetElementsByXXX method on the HtmlDocument object to get the corresponding HtmlElement object;
4. Use the HtmlElement's Location property to find out the element's location and Size property to find out the element size;

Thanks!
g3orge
Posted: Thursday, March 21, 2013 8:36:57 AM
Rank: Member
Groups: Member

Joined: 8/2/2012
Posts: 24
And how do you create form fields with ACM ? I've notice the AcmField class, but it has no constructor.
Basically, I have a few large pdfs(generated with EO.Pdf.HtmlToPdf.ConvertUrl) that I want to change a word or 2 for each customer, so I was thinking to put form fields on the changing words, and then filling them.
eo_support
Posted: Thursday, March 21, 2013 8:51:54 AM
Rank: Administration
Groups: Administration

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

You will want to go over this section in the documentation:

http://www.essentialobjects.com/doc/4/acm/overview.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.