Welcome Guest Search | Active Topics | Sign In | Register

Is it possible to convert a textbox (html input) to a basic string using the HTML to PDF Convert class? Options
Pete
Posted: Tuesday, May 27, 2014 9:13:31 AM
Rank: Newbie
Groups: Member

Joined: 5/27/2014
Posts: 1
Hi,

Is there an option within the api which converts a textbox to a basic string when using the HTML to PDF Converter class. Basically we have a form which includes several text boxes (for user input), however when we convert it to a PDF we would like the text boxes to show as just normal text (so we can see everything in the text box - not just whats in the viewable area).

Any help would be appreciated.

Thanks
Pete.
eo_support
Posted: Tuesday, May 27, 2014 10:38:44 AM
Rank: Administration
Groups: Administration

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

Unfortunately there is no built-in support on the converter. You will need to change the input HTML to do that. You can either add an additional flag in your code to indicate the page is for HTML to PDF converter so that your code generates static text instead of textboxes, or you can add some JavaScript code in your page that dynamically detect whether the page is running inside the converter, and then dynamically convert all textboxes into "DIV" or "P" element with JavaScript. See here for details on how to dynamically detect whether your page is running inside the converter instead of a regular browser:

http://www.essentialobjects.com/doc/4/htmltopdf/eo_js.aspx

Hope this helps. Please feel free to let us know if there is anything else.

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.