Take the data inside the div and then print it in pdf (any method)?

Asked

Viewed 98 times

0

<div id='titulo'><h1>CheckList </h1></div>\n
<h2>Credito linha </h2>
Proposta PVE: <input type=\"text\" id=\"proposta\" size=\"80\" maxlength=\"100\" value=\" \" style=\"align-content:center\" /></br></br>
Veiculo zero Km:<input type=\"radio\"  name=\"veiculo\" id=\"opcao\" value=\"sim\">Sim
<input type=\"radio\" name=\"veiculo\" id=\"opcao\" value=\"não\">Não
</br></br>
<table>
    <tr>
        <th>S/N</th>
        <th>Item verificado</th>
  </tr>
    <tr>
        <td><input type=\"checkbox\" id=\"checkbox\" value=\"1\" >Sim</td>
        <td>&nbspImagem NFe legível?</td>
    </tr>
    <tr>
        <td><input type=\"checkbox\" id=\"checkbox\" value=\"2\" >Sim</td>
        <td>&nbspNFe validada no site</td>
    </tr>
    <tr>
        <td><input type=\"checkbox\" id=\"checkbox\" value=\"3\" >Sim</td>
        <td>&nbspImagem Documento legivel</td>
    </tr>
    <tr>
        <td><input type=\"checkbox\" id=\"checkbox\" value=\"4\" >Sim</td>
        <td>&nbspDados corretos</td>
    </tr>
    <tr>
        <td><input type=\"checkbox\" id=\"checkbox\" value=\"5\" >Sim</td>
        <td>&nbspDados do veículo: marca, modelo,versão, ano fabricação/modelo</td>
    </tr>
    <tr>
        <td><input type=\"checkbox\" id=\"checkbox\" value=\"6\" >Sim</td>
        <td>&nbspConta informada para crédito pertence ao vendedor do veiculo</td>
    </tr>
    <tr>
        <td><input type=\"checkbox\" id=\"checkbox\" value=\"7\" >Sim</td>
        <td>&nbspDocumentos de validação</td>
    </tr>
</table></br>
Observações:</br>
<textarea id=\"mobile\"></textarea></br></br>
</form>
<input type=\"submit\" class=\"btn-padrao\" button=\"imprimir\">


</br></br></br></br>
  • Hello Thiago, do you want to generate a PDF? what language do you have on the server?

  • have but I want to print on the msm screen without sending something to the server, the user marks the options and then print or generate pdf with the options marked

1 answer

0


For the pdf you can use FPDF is a good solution to generate pdf files, to send the data, you place your form to submit to a page that will receive the data and generate the pdf

  • Well I found it interesting but will it take the data as I click and print the marked functions showing the whole form?

  • It depends on how you send the information to php to generate the pdf. Another alternative would be to use the jsPDF

Browser other questions tagged

You are not signed in. Login or sign up in order to post.