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.
|
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.aspxHope this helps. Please feel free to let us know if there is anything else. Thanks!
|