• 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: rs pdf plugin bug filename

rs pdf plugin bug filename 11 years 3 months ago #20733

  • cchevarier
  • cchevarier's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
Hi,

I use this plugin to generate a document that contains an image from the form. This works well when the name of the image is of the form xxx.jpg but if the file name contains a space as "xxx xxx.jpg" I get an error. The image is correctly loaded on the server but does not inserted in the document.

Is it possible to rename the file?
Is it possible to add a treatment for special characters?

Here's how I insert the image:
<img width="189"  src="{photo:path}" alt="" />

thank you,

Cédric
The administrator has disabled public write access.

rs pdf plugin bug filename 11 years 2 months ago #21676

  • hkeyzer
  • hkeyzer's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hi,

We can confirm the same issue, and therefore have the same questions.

The issue only appears when we want the the PDF to contain an image which some one has uploaded.

The file is saved in the database and is ok if inserted into either user or admin email or thank you page.

Thanks
Henk
The administrator has disabled public write access.

rs pdf plugin bug filename 11 years 2 months ago #21678

  • adam3
  • adam3's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Confirmed - I get this as well. A bit of a nuisance, as many of my users use Apple PCs and just aren't used to trimming/removing spaces and illegal characters from filenames. A bit of REGEX in the code may sort that one.

I also have another problem (which I'll log in the support forum):

If you have an ADMIN email *and* a USER email both using pdf output, the ADMIN pdf doesn't embed the images properly (though the links it creates instead work fine).

Adam.
The administrator has disabled public write access.

rs pdf plugin bug filename 11 years 2 months ago #21682

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
If you use the latest RSForm! Pro & PDF Plugin, you can use the following placeholder:
{your_field_name:localpath}
this will replace "your_field_name's" value with the local path of the image found on the server (eg. /home/public_html/path/to/uploaded/image.jpg).
Remember that this path should only used in the PDF layout.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

rs pdf plugin bug filename 11 years 1 month ago #21703

  • hkeyzer
  • hkeyzer's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
@octavian,

Thanks that solved my issue, images with spaces are now appearing fine in my users email PDF.

Note please can someone add this to the "pdf plugin" page as it looks like others need this info and there seems to be no reference to this anywhere.

Thanks
Again
The administrator has disabled public write access.

rs pdf plugin bug filename 11 years 1 month ago #21714

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!