Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Modificar el pdfreport sin limeMpdf

  • blacho
  • blacho's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 months 1 week ago #255938 by blacho
Modificar el pdfreport sin limeMpdf was created by blacho
Ayúdenos a ayudarle y rellene los siguientes campos:.
Su versión de LimeSurvey: 6.2.11
Servidor propio o LimeSurvey Cloud:
Plantilla de diseño utilizada: fruity_twentythree
==================
Buen día, quisiera saber cómo personalizar mi PDF generado de pdfreport sin usar limeMpdf, quiero algo simple que sea legible, letras grandes (tanto la pregunta como la respuesta), alineados a la izquierda y con buen espacio yo aquí intenté un código con espacios pero las preguntas y las respuestas no me cambian en lo absoluto, aparecen muy pequeñas. Necesito ayuda.
<style>    .question {        font-size: 25px;    }</style> <div class="well well-sm" style="background:#fff; text-align: left;">    <div class="questiontext strong h5">Respuestas del usuario:</div>    <ul class="list-unstyled">        <li class="question">{if(G01Q35.NAOK,"<strong>" + G01Q35.question + "</strong><br>" + G01Q35.shown + "<br><br>")}</li>        <li class="question">{if(G01Q41.NAOK,"<strong>" + G01Q41.question + "</strong><br>" + G01Q41.shown + "<br><br>")}</li>        <li class="question">{if(A1.NAOK,"<strong>" + A1.question + "</strong><br>" + A1.shown + "<br><br>")}</li>        <li class="question">{if(A2.NAOK,"<strong>" + A2.question + "</strong><br>" + A2.shown + "<br><br>")}</li>        <li class="question">{if(A3.NAOK,"<strong>" + A3.question + "</strong><br>" + A3.shown + "<br><br>")}</li>        <li class="question">{if(A4.NAOK,"<strong>" + A4.question + "</strong><br>" + A4.shown + "<br><br>")}</li>        <li class="question">{if(A5.NAOK,"<strong>" + A5.question + "</strong><br>" + A5.shown + "<br><br>")}</li>        <li class="question">{if(B5Copy.NAOK,"<strong>" + B5Copy.question + "</strong><br>" + B5Copy.shown + "<br><br>")}</li>        <li class="question">{if(F1.NAOK,"<strong>" + F1.question + "</strong><br>" + F1.shown + "<br><br>")}</li>        <li class="question">{if(B1.NAOK,"<strong>" + B1.question + "</strong><br>" + B1.shown + "<br><br>")}</li>        <li class="question">{if(B6Copy.NAOK,"<strong>" + B6Copy.question + "</strong><br>" + B6Copy.shown + "<br><br>")}</li>        <li class="question">{if(G02Q39Copy.NAOK,"<strong>" + G02Q39Copy.question + "</strong><br>" + G02Q39Copy.shown + "<br><br>")}</li>        <li class="question">{if(B2Copy.NAOK,"<strong>" + B2Copy.question + "</strong><br>" + B2Copy.shown + "<br><br>")}</li>        <li class="question">{if(B4Copy.NAOK,"<strong>" + B4Copy.question + "</strong><br>" + B4Copy.shown + "<br><br>")}</li>        <li class="question">{if(C2.NAOK,"<strong>" + C2.question + "</strong><br>" + C2.shown + "<br><br>")}</li>        <li class="question">{if(G03Q20.NAOK,"<strong>" + G03Q20.question + "</strong><br>" + G03Q20.shown + "<br><br>")}</li>        <li class="question">{if(D2.NAOK,"<strong>" + D2.question + "</strong><br>" + D2.shown + "<br><br>")}</li>        <li class="question">{if(D1.NAOK,"<strong>" + D1.question + "</strong><br>" + D1.shown + "<br><br>")}</li>        <li class="question">{if(D5Copy.NAOK,"<strong>" + D5Copy.question + "</strong><br>" + D5Copy.shown + "<br><br>")}</li>        <li class="question">{if(D3Copy.NAOK,"<strong>" + D3Copy.question + "</strong><br>" + D3Copy.shown + "<br><br>")}</li>        <li class="question">{if(G01Q88.NAOK,"<strong>" + G01Q88.question + "</strong><br>" + G01Q88.shown + "<br><br>")}</li>        <li class="question">{if(G01Q41CopyCopyCopy.NAOK,"<strong>" + G01Q41CopyCopyCopy.question + "</strong><br>" + G01Q41CopyCopyCopy.shown + "<br><br>")}</li>    </ul></div>FUNCIONAL
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 months 1 week ago #255940 by Joffm
Replied by Joffm on topic Modificar el pdfreport sin limeMpdf
Hola,

Por favor, utiliza el botón
 
para insertar código.

Y envia la lss.
Veo muchas ecuaciones que parecen incorrectas.
O son innecesarios

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • blacho
  • blacho's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 months 1 week ago #255941 by blacho
Replied by blacho on topic Modificar el pdfreport sin limeMpdf
Code:
<style>
    .question {
        font-size: 25px;
    }
</style>
 
<div class="well well-sm" style="background:#fff; text-align: left;">
    <div class="questiontext strong h5">Respuestas del usuario:</div>
    <ul class="list-unstyled">
        <li class="question">{if(G01Q35.NAOK,"<strong>" + G01Q35.question + "</strong><br>" + G01Q35.shown + "<br><br>")}</li>
        <li class="question">{if(G01Q41.NAOK,"<strong>" + G01Q41.question + "</strong><br>" + G01Q41.shown + "<br><br>")}</li>
        <li class="question">{if(A1.NAOK,"<strong>" + A1.question + "</strong><br>" + A1.shown + "<br><br>")}</li>
        <li class="question">{if(A2.NAOK,"<strong>" + A2.question + "</strong><br>" + A2.shown + "<br><br>")}</li>
        <li class="question">{if(A3.NAOK,"<strong>" + A3.question + "</strong><br>" + A3.shown + "<br><br>")}</li>
        <li class="question">{if(A4.NAOK,"<strong>" + A4.question + "</strong><br>" + A4.shown + "<br><br>")}</li>
        <li class="question">{if(A5.NAOK,"<strong>" + A5.question + "</strong><br>" + A5.shown + "<br><br>")}</li>
        <li class="question">{if(B5Copy.NAOK,"<strong>" + B5Copy.question + "</strong><br>" + B5Copy.shown + "<br><br>")}</li>
        <li class="question">{if(F1.NAOK,"<strong>" + F1.question + "</strong><br>" + F1.shown + "<br><br>")}</li>
        <li class="question">{if(B1.NAOK,"<strong>" + B1.question + "</strong><br>" + B1.shown + "<br><br>")}</li>
        <li class="question">{if(B6Copy.NAOK,"<strong>" + B6Copy.question + "</strong><br>" + B6Copy.shown + "<br><br>")}</li>
        <li class="question">{if(G02Q39Copy.NAOK,"<strong>" + G02Q39Copy.question + "</strong><br>" + G02Q39Copy.shown + "<br><br>")}</li>
        <li class="question">{if(B2Copy.NAOK,"<strong>" + B2Copy.question + "</strong><br>" + B2Copy.shown + "<br><br>")}</li>
        <li class="question">{if(B4Copy.NAOK,"<strong>" + B4Copy.question + "</strong><br>" + B4Copy.shown + "<br><br>")}</li>
        <li class="question">{if(C2.NAOK,"<strong>" + C2.question + "</strong><br>" + C2.shown + "<br><br>")}</li>
        <li class="question">{if(G03Q20.NAOK,"<strong>" + G03Q20.question + "</strong><br>" + G03Q20.shown + "<br><br>")}</li>
        <li class="question">{if(D2.NAOK,"<strong>" + D2.question + "</strong><br>" + D2.shown + "<br><br>")}</li>
        <li class="question">{if(D1.NAOK,"<strong>" + D1.question + "</strong><br>" + D1.shown + "<br><br>")}</li>
        <li class="question">{if(D5Copy.NAOK,"<strong>" + D5Copy.question + "</strong><br>" + D5Copy.shown + "<br><br>")}</li>
        <li class="question">{if(D3Copy.NAOK,"<strong>" + D3Copy.question + "</strong><br>" + D3Copy.shown + "<br><br>")}</li>
        <li class="question">{if(G01Q88.NAOK,"<strong>" + G01Q88.question + "</strong><br>" + G01Q88.shown + "<br><br>")}</li>
        <li class="question">{if(G01Q41CopyCopyCopy.NAOK,"<strong>" + G01Q41CopyCopyCopy.question + "</strong><br>" + G01Q41CopyCopyCopy.shown + "<br><br>")}</li>
    </ul>
</div>

File Attachment:

File Name: limesurvey...6442.lss
File Size:467 KB

si puedes hacer que todas esas preguntas me aparezcan en el pdf te lo agradecería mucho, o si me dices como también
yo intenté con ese codigo teniendo en cuenta las encuestas de DEMO de pdf report.
muchas gracias

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 months 1 week ago #255992 by Joffm
Replied by Joffm on topic Modificar el pdfreport sin limeMpdf
Hola,
que significan estas ecuaciones? Que quieres hacer?   
<li class="question">{if(A1.NAOK,"<strong>" + A1.question + "</strong><br>" + A1.shown + "<br><br>")}</li>

1. A1 está una pregunta "multiple textos" -> tiene subpreguntas
2. donde está la condición del IF
3. Donde está el parte "falso" del IF

IF está definido
{IF(condición, parte verdadero, parte falso)}
{if(Q1==2,"muy bien","malisimo")}

4. Pero: Porque el IF?
Algo como
<li class="question"><strong>{A1_AA2.question}</strong><br>{A1_AA2}<br><br></li>
está suficiente.

Mas tarde voy a enviar algo.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • blacho
  • blacho's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 months 1 week ago #255993 by blacho
Replied by blacho on topic Modificar el pdfreport sin limeMpdf
Simplemente quiero que aparezcan todas las preguntas con sus respectivas respuestas, en buen tamaño de letra para el usuario y si es posible poner el logo de mi empresa.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 months 1 week ago #256006 by Joffm
Replied by Joffm on topic Modificar el pdfreport sin limeMpdf
Hola,
Code:
<style type="text/css">.question {
        font-size: 25px;
  text-align:left
    }
</style>
<div class="well well-sm" style="background:#fff; text-align: left;">
<div class="questiontext strong h5">Respuestas del usuario:</div>
 
<ul class="list-unstyled">
    <li class="question"><strong>{A1_AA2.question}</strong><br />{A1_AA2}<br /> </li>
    <li class="question"><strong>{A1_AA3.question}</strong><br />{A1_AA3}<br /> </li>
    <li class="question"><strong>{A2.question}</strong><br />{A2.shown}<br /> </li>
    <li class="question"><strong>{A3.question}</strong><br />{A3.shown}<br /> </li>
...
</ul>
</div>




Ves los problemas.
No utilizas ".question" sino que escribes los textos.
O usas un estilo diferente.

Un menú desplegable no acepta estilos, así que elimínelo.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose