TOPIC:

Add uploadet picture to PDF report ? 1 year 8 months ago #261602

  • kingo-tech's Avatar Topic Author
  • kingo-tech
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 85
  • Thanks: 0
Hi

Is it possible in some way to add the uploaded picture to the PDF report, so the picture is shown instead of the path to the picture.

Please Log in or Create an account to join the conversation.

Add uploadet picture to PDF report ? 1 year 8 months ago #261603

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 163
Hi,

yes, you can do it, I will send you an example of how to do it.

Regards,
Mirko

Please Log in or Create an account to join the conversation.

Add uploadet picture to PDF report ? 1 year 8 months ago #261606

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 163
Hi,

in the attached file, I sent you the pdf_attachment PHP file,
Please GO->Joomla Root \media\breezingforms\pdftpl\pdf_attachment.PHP, please replace my file with your php file. (you can do it backup for your file).

And in this part of code
if (count($xmldata)){
   foreach ($xmldata as $data) {
      $value = nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8'));
      switch($data[_FF_DATA_NAME]){
        case 'upload':
          $update = $value;
          break;
        
      }
    }
}

in this piece case 'upload': instead, upload insert name of your file upload (not title)

If you get stuck, let me know and I'll help you!

Regards,
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: Post by Mirec.

Add uploadet picture to PDF report ? 5 months 1 week ago #278265

  • kingo-tech's Avatar Topic Author
  • kingo-tech
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 85
  • Thanks: 0
Unfortunately it is not working.

Just so you know what i'm doing.
A user has to send a receipt (upload) to a specific manager (drop down list with email).
He puts in some info for the manager
This manager then has to accept the receipt and send it to accounting.

The fine name is generated from info in the form so my filename looks like this
{filemask:username}_{filemask:casenumber}-{filemask:subcasenumber}_{filemask:_datetime}

So it has no specific name.

Accounting has to save the PDF file (With attachment (picture upload) ) for reference in the accounting system.

Actually I also have the same issue when I want to send the admin email, to a chosen manager from list. I can only use the mailback mail, but would like the manager to recive admin email. And it is not reacting on this in mail recipient(s): {manager:value}

Can you help me with this as i use this in a lot of forms on this site system

Please Log in or Create an account to join the conversation.

Add uploadet picture to PDF report ? 5 months 1 week ago #278300

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 163
Hi,


could you please send to me the backend link and access data so I can test this problem with the admin and check your FORM by email ma@evolutio.hr

If you have more questions, feel free to ask!

Regards,
Mirko

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.051 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!