Hola a todos
Estoy generando documentos de word con php, el problema es que quiero manipular el interlineado y el espacio entre caracteres, quise usar el atributo
line-height y el
letter-spacing pero sigo sin poder manipularlos, el código que usando para generarlo es el siguiente.
Código PHP:
<?
header('Content-type: application/vnd.ms-word');
header("Content-Disposition: attachment; filename=".$arrayNombresDocumentos[$columna].".doc");
header("Pragma: no-cache");
header("Expires: 0");
?>
Código HTML:
<html>
<head>
<style>
@page WordSection1 {
mso-header-margin:0pt;
mso-footer-margin:0pt;
mso-paper-source:20cm;
}
@page { size: 21.59cm 34cm; letter-spacing: 1pt; line-height: 1pt; text-align: justify;margin:<? echo $msup.'cm'; ?> <? echo $MD.'cm'; ?> <? echo $minf.'cm'; ?> <? echo $MIZ.'cm'; ?>;}
div.WordSection1 {
page:WordSection1;
}
</style>
</head>
<body>
<div class="WordSection1" style="letter-spacing: 1px;">
<p style="line-height:70%;">
<? echo $sustitucion; ?>
</p>
</div>
</body>
</html>
$sustitucion es una variable que contiene el texto.