• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: uppercase in pdf (solved)

uppercase in pdf (solved) 11 years 7 months ago #25207

  • djseleco
  • djseleco's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Thank you received: 10
Hello, i need to transform in uppercase text a value of a field that will be appear inside pdf file.
Does anyone know how to help me?
Thanks
Last Edit: 11 years 6 months ago by djseleco.
The administrator has disabled public write access.

uppercase in pdf 11 years 7 months ago #25208

Hello djseleco,

This can be achieved with the help of a "PHP PDF Pre-Processing Script", which can be placed in the Components > RSForm!Pro > Manage Forms > edit your form > Properties > PHP PDF Pre-Processing Scripts.

To uppercase a field submitted by the user, you can use something like the following:

$ph='{field_name:value}';
$value_key=array_search($ph,$args);

$args[$value_key] = strtoupper($args[$value_key]);

Please remember to replace '{field_name:value}' with the correct placeholder for your field.

For more information on PHP PDF Pre-Processing Scripts, please refer to the following article:

www.rsjoomla.com/support/documentation/v...essing-scripts-.html
Please remember that my responses aren't considered customer support, to receive customer support please submit a new customer support ticket, and we will gladly assist you.

Best Regards,
Cristian Nicolae.
The administrator has disabled public write access.

uppercase in pdf 11 years 7 months ago #25210

  • djseleco
  • djseleco's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Thank you received: 10
thanks cristian but this code doesn't work :(
The administrator has disabled public write access.

uppercase in pdf 11 years 6 months ago #25213

Hello djseleco,

If the above script does not work, you can simply place your field placeholder in a span that contains an "uppercase" style, for example:

<span style="text-transform: uppercase">{field_name:value}</span>

The above placeholder is usable in the "PDF Layout" area, which can be found in Components > RSForm!Pro > Manage Forms > edit your form > Properties > User/Admin Email.

PS: Please remember to replace "field_name" with the Name of your field.
Please remember that my responses aren't considered customer support, to receive customer support please submit a new customer support ticket, and we will gladly assist you.

Best Regards,
Cristian Nicolae.
The administrator has disabled public write access.
The following user(s) said Thank You: djseleco

uppercase in pdf (solved) 11 years 6 months ago #25217

  • djseleco
  • djseleco's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Thank you received: 10
Thanks Cristian, this solution work perfectly :)
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!