Display uploaded image in customized PDF

  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 58
  • Thank you received: 2

rd created the topic: Display uploaded image in customized PDF

Hello,

1. Question: how can an image being shown in the pdf-file?
I tried the code posted by MUFFINMAN in post #66107 (IMAGES IN PDF ATTACHMENT).
But all I got is a the path to the image, not the image itself (please see attachment)


2. Question: our workers use smartphones on the construction site to fill out the form.
They have to submit plenty of images. We use the resize option in the HTML5 element to reduce data transfer. But the smartphone is transferring the image in full resolution first and the resize is done afterwards. Can this be changed into: click "upload image" -- make photo -- resize photo -- submit foto?

Thank you for your help
Regards,
Rolf
#235371
Attachments:
  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 58
  • Thank you received: 2

rd replied the topic: Display uploaded image in customized PDF

First question still open but
solved second question by myself. I was so focused on Breezingforms that I couldn't see the simple solution: Installed Open Camera App. Switched the resolution to low res, set Open Camera to new standard Photo app, voila --> problem solved, only small data is submitted :-)
#235379
  • Posts: 5591
  • Karma: 118
  • Thank you received: 512

MarioPuco replied the topic: Display uploaded image in customized PDF

Hi,

Great that you solved no.2 on your own.

Regarding the first question please check these topcis :

crosstec.org/en/forums/3-breezingforms-f...d-in-pdf.html#194438
crosstec.org/en/forums/3-breezingforms-f...f-export.html#141642
crosstec.org/en/forums/1-forums/98576-im...pdf-mail.html#110939

I'm sure on of them will work.
Let me know how it goes.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#235380
  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 58
  • Thank you received: 2

rd replied the topic: Display uploaded image in customized PDF

OMG -- I realized that my customized PDF was not taken at all!!
I had a typo in the file name :-(

So - fixed it. Took the Muffinman Code from Post #66106 again. And it works.

Mario, I'm Sorry for bothering you!
(I should stop for today, start making stupid errors)

Regards,
Rolf
#235382
The following user(s) said Thank You: MarioPuco
  • Posts: 5591
  • Karma: 118
  • Thank you received: 512

MarioPuco replied the topic: Display uploaded image in customized PDF

Hi,

All cool Rolf :)
Glad you resolved it on your own :)

If you have any other questions, let me know.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#235398
  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 58
  • Thank you received: 2

rd replied the topic: Display uploaded image in customized PDF

Hi Mario,

I am about to implement this code into my various forms and realise that I have more than one upload and the code below only works with one upload.

The
$upload = '';
refers to the upload element in general and the
case 'testimage':
to the name of the upload element. Later on I call the value of the element with this code
<?php echo $upload; ?>
, right?

But in my case I have to address to more than one upload element. So I have to give each upload Element a name, right? But how do I do this?
Please can you help me once more?

Thank you.
Rolf

Here is my code so far:
<tr>
<?php
$upload = '';

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 'image1':
          $upload = $value;
          break;
      case 'image2':
          $upload = $value;
          break;
      case 'image3':
          $upload = $value;
          break;
      case 'image4':
          $upload = $value;
          break;
      }
    }
}
?>
<td>
<img src="<?php echo $upload; ?>" width="150" />
</td>
</tr>
#235401
Moderators: ForumSupporttomeperica
Time to create page: 1.384 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here