我正在使用print.js库来打印HTML表单。它正在打印HTML和表单字段,但是表单字段在打印的PDF中不包含给定的值。
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://printjs-4de6.kxcdn.com/print.min.js"></script>
<form id="eqform" method="post" action="#">
{{csrf_field()}}
<div class="tab-content" id="pills-tabContent">
@includeif('doctor.partials.patientinfo')
@includeif('doctor.partials.14questions')
@includeif('doctor.partials.question1')
@includeif('doctor.partials.question2')
@includeif('doctor.partials.question3')
@includeif('doctor.partials.question4')
@includeif('doctor.partials.question5')
@includeif('doctor.partials.question6')
@includeif('doctor.partials.question7')
@includeif('doctor.partials.question8')
@includeif('doctor.partials.question9')
@includeif('doctor.partials.question10')
@includeif('doctor.partials.question11')
@includeif('doctor.partials.result')
<div class="print text-center">
<button class="btn btn-success" type="button" onclick="printJS('eqform', 'html')">Print</button>
</div>
</div>
</form>
**分音包含不同的输入文件