Skip to main content
Participating Frequently
January 7, 2025
Question

Adobe Reader Pro - Fill a Form text field with styles using Java

  • January 7, 2025
  • 1 reply
  • 762 views

hola, tengo un problema con un Create a Form de Adobe Reader Pro :

 

he probado dos soluciones diferentes para escribir texto con estilos dentro de un text field de un PDF que abro Adobe Reader Pro, usando una aplicación Java que genera este PDF.

Sin embargo, ninguna de las dos funciona, no me convierte a texto con estilos, simplemente muestra el XML o HTML en texto plano.

Las soluciones probadas son :

1 - HTML con CSS (div con estilos)
2 - XML siguiendo el siguiente ejemplo : 

<?xml version="1.0"?>
<xfa:dataset xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
   <xfa:data>
      <text>
         <p style="font-family:Helvetica; font-size:12pt; color:#0000FF;">This is <b>bold</b> and <i>italic</i> text.</p>
      </text>
   </xfa:data>
</xfa:dataset>

Alguna idea si esto es un bug?
Como puedo implementarlo, como puedo tener soporte de la Adobe? Y donde puedo encontrar documentación técnica oficial sobre esto?

Muchas gracias,

    1 reply

    jane-e
    Community Expert
    Community Expert
    January 7, 2025

     

    @maria_carlota_4800 wrote: I have a problem with an Adobe Reader Pro Create a Form

     

     

    I've moved your post from Using the Community to the Acrobat forum.

     

    There is no such thing as Adobe Reader Pro. 

    • Acrobat Reader is free and cannot create forms
    • Acrobat Pro is paid and can be used to create forms

    Please clarify which version you are using. We can move your post to the Acrobat Reader forum if that is what you are actually using, but you cannot create forms with the free Reader.

     

    Jane

     

     

    Participating Frequently
    January 7, 2025

    I know, I have the paid one. Version 24.005.20320

    As I explained before, I have tried to fill a pdf template with Java using these 2 methods and none of those translated into text with styles.

    If you share my post, please share with me the new link of the new post please

    Thank you

    Happy new year

     

    jane-e
    Community Expert
    Community Expert
    January 7, 2025

    Hi @maria_carlota_4800 

     

    Thank you for letting us know you are using Acrobat Pro and not the free Acrobat Reader. 

     

    The direct link to your post is

    https://community.adobe.com/t5/acrobat-discussions/adobe-reader-pro-fill-a-form-text-field-with-styles-using-java/td-p/15074781

     

    You can also see your post and replies by clicking the bell icon in the upper left of the forum interface.

     

     

    Jane