UiPath Documentation
activities
latest
false

Actividades del flujo de trabajo

Última actualización 11 de may. de 2026

Mostrar archivos PDF

Puede mostrar archivos PDF en sus formularios.

Tutoriales

Archivo PDF local

Para mostrar un archivo PDF dentro del formulario:

  1. Drag and drop the HTML Element component into the Form Designer.

  2. In the Content field of the Display configuration tab, enter <iframe href="/file://path-to-file"></iframe>, where path-to-file is the local path to the file you want to read.

    Para las etiquetas <iframe> , recomendamos utilizar etiquetas de cierre </iframe> en lugar de etiquetas /> de cierre automático.

  3. Establece la altura y el ancho del archivo PDF en tu formulario añadiendo los atributos width y height en la etiqueta <iframe> .

Por ejemplo, para mostrar el archivo PDF ubicado en C:\Folder\doc.pdf con formato de 350x500 píxeles (width x height), introduzca el siguiente fragmento:

<iframe href="/file://c:\folder\doc.pdf" width=350 height=500></iframe>
<iframe href="/file://c:\folder\doc.pdf" width=350 height=500></iframe>

Archivo PDF dinámico

Para representar un archivo PDF de forma dinámica:

  1. Set the PDF file path as a variable in the FormFieldsCollection (Studio) and name it pdf.

  2. Navigate to the Display tab of the HTML Element component (Form Designer).

  3. In the Content field, add <iframe href={{data.pdf}} width=350 height=500></iframe>.

    Puedes establecer la etiqueta HTML completa que contiene el archivo PDF como una variable. En este caso, vincula los datos utilizando solo {{data.pdf}} en el campo Contenido .

  4. Under the Content field, check Refresh On Change.

  • Tutoriales
  • Archivo PDF local
  • Archivo PDF dinámico

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado