PDF Forms Not Fillable


#1

Hi,


After we create and generate a form and open in PDF the form fields are not fillable. The form is only readable and can’t be used as an HTML type of form. We’re using the groupdocs API behavior to our web application.

#2

Hello,


We are sorry to hear that you have such issue. Once form is filled and signed, the signer see signed form (it will be only readable even if you will reload it you will not be able to fill it). This is done with purpose that each signer can sign form only once. Since that if you try to open same form in different browser (because we are keeping that information in a cookie) you should be able to sign the form normally (sign it again)


If you will have more questions please feel free to contact us.



#3

Hi,

Sorry about the confusion but I'm talking about your API to generate forms not signature.

So when we create form elements which are fillable areas to input data and then generate the form from HTML to PDF, the PDF version does not allow the user to fill out the text area we created in the form.


#4

Hello,


Thank you for coming back. We checked generation of pdf file from html and all works fine for us. Please share example of your code which you use for this functionality and example of your form that we can check and fix them for you.


If you will have more questions please feel free to contact us.



#5

Hi,


Here is the code:

The code below takes a “form” and creates HTML for
each element of the form. The HTML generated and returned by this function is
then put into a .HTML file and sent to groupdocs. After being stored on
groupdocs, the file is passed into groupdocs convert HTML file into PDF
function.

function generateFormHtml($form,$elements) {

$html = '';

$user = JFactory::getUser();

if ($form->header_logo > 0) {

$image = self::getDocument($form->header_logo);

}

$html .= '';

if ($form->header_type !="") {

if ($form->header_type == 'Solid') {

$html .= ' ';

if ($form->header_logo > 0) {

$html .= '';

}

$html .= '

';

} else if ($form->header_type == 'Gradient') {

if ($form->gradient_direction == 'top') {

$html .= ' ';

} else {

$directionTxt = 'to '.$form->gradient_direction;

$html .= '

 ';

}

if ($form->header_logo > 0) {

$html .= '';

}

$html .= '

';

}

} else {

//no header

$html .= '';

}

$html .= '

'.$form->title.'

';

$html .= '';

foreach($elements as $element) {

$html .= '';

$html .= ''.$element->question_title.'';

$html .= '';

$html .= ''.$element->help_text.'';

$html .= '';

if ($element->type == 'text') {

$html .= '';

} elseif ($element->type == 'textArea') {

$html .= '';

} elseif ($element->type == 'select') {

$html .= '';

if ($element->options !=null) {

$options = json_decode($element->options);

if (count($options) > 0) {

foreach($options as $option) {

$html .= ''.$option.'';

}

}

}

$html .= '';

}

$html .= '';

$html .= '';

}

$html .= ''; //end of main container div

return $html;

}


#6

Hello,

Thank you for additional information. Now everything is clear with your logic and usecase. Your code is correct but unfortunately at this time you can’t create pdf with form by simple conversion from HTML to PDF (pdf will be not editable).


To create pdf with editable fields you should create questioner (Assembly API) by adding document (empty pdf) and questions (analogue of html form) into it This functionality will be available with next release, that will be available soon, now our QA team is testing it. After release we will create live demo sample which will show how to use this functional (how to create pdf with editable fields).


Please be patient and we will notify you when it will be ready to use.


If you will have more questions or need any details, please do not hesitate to contact us.




#7

Hello,


Following up on the status of editable fields for forms using assembly API. Has this been released yet?

Thanks

#8

Hello,


Thank you for your request. The functionality you mentioned is still being tested and will be released in about two weeks.


If you will have more questions please feel free to contact us.



#9

Hi,


Checking on this feature to see if it’s tested and available now? Thanks

#10

Hi,

Checking again to see if this application has been updated for my user case?