-1
When mine is generated, the document appears as an image and not with text, as it should. How to solve this problem?
<script type='text/javascript'>
$(document).ready(function() {
		$('#botaoImprimir').click(function() {
			var doc = new jsPDF('portrait', 'pt', 'a4');
			doc.addHTML($('#divImagemPDF'), function() {
				doc.save("RelatórioExplainDB2.pdf");
			});
		});
	})
</script> 	<!----------------------------->
	<!--------DIV RELATÓRIO-------->
	<!----------------------------->
	<div class="divForm" style="width: 100%;">
		<div class="divCentralForm" id="divCentralForm" >
			<div class="divImagemPDF" id="divImagemPDF"
				style="background-color: white;width: 100%;">
				<p class="titleForm">PARECER TÉCNICO</p>
				<hr class="hrInicio">
				<div class="divRelatorioQualidade" id="relatorioQualidade"
					style="background-color: #e6e6e6; height: 500px; width: 100%;">
					<table border="1" class="tblRelatorioQualidade">
						<tr>
							<td colspan="2" style="text-align: center; font-weight: bolder">RELATÓRIODE QUALIDE DE CÓDIGO DE DB2 STORED PROCEDURE</td>
						</tr>
						<tr>
							<td><b>SYSTEM DB2</b></td>
							<td>${ambiente}</td>
						</tr>
						<tr>
							<td><b>SCHEMA</b></td>
							<td>${schema}</td>
						</tr>
						<tr>
							<td><B>ELEMENTO</B></td>
							<td>${nomeProcedure}</td>
						</tr>
					</table>
					<div class="valorRecomendado">
						Maior TOTAL_COST do elemento = ${maiorTotalCost} <br> Valor
						recomendado = 1.0 <br> <br> Maior PROCMS do elemento =
						${maiorPROCMS} <br> Valor recomendado = 1 <br>
					</div>
					<BR>
					<textarea class='areaTextParecerTecnico'
						id="areaTextParecerTecnico" rows="7" maxlength="1200"
						style="width: 75%; height: 250px;">
 TOTAL_COST: 
 ACCESSTYPE: 
 INDEXONLY: 
 PROCMS: </textarea>
					<!-- <div class="divParecer" id="divParecer" contenteditable="true">
						TOTAL_COST<BR> ACCESSTYPE<BR> INDEXONLY<BR> PROCMS<BR>
					</div> -->
					<BR>
				</div>
				<hr class="hrFinal">
			</div>
			<input class="btn btn-default botaoImprimir botaoForm" type="button"
				id="botaoImprimir" value="GERAR PDF" /> <input
				class="btn btn-default botaoFechar botaoForm" type="button"
				value="FECHAR" onclick="hideForm()" />
		</div>
	</div>
vlw brother, I’ll try here !!
– Felippe Casanova
nothing, if solved your problem please mark the answer as accepted
– Senpai
So man, I tried here and did not solve. I researched about mPDF and saw that it is more used in PHP, being my "back" is in java. I do not know if you have a way to use it in java, if you know, please point out an example.
– Felippe Casanova