PDF Export ohne Kopfzeile

  • mzungu
  • mzungu's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

mzungu created the topic: PDF Export ohne Kopfzeile

Hallo miteinander,

jetzt hatte ich schon alles durchsucht aber nichts passendes gefunden auch nicht im Englischen.
(vielleicht auch blind :lol: )
Nun mein Anliegen:
Beim Export versende ich z.B. ein PDF das ich dann auf den jeweiligen Emails erhalte, nun ist es so, dass in der Kopfzeile meiner Meinung nach Sachen stehen die der jenige nicht benötigt.
Formular ID: 14
Formular Titel: Aufnahmeantrag
Form Name: XXXXXX
Gesendet um: XXXXXX
Absender IP: XXXXX
Benutzer-ID: 0
Benutzername: -
Name: -
Absender Provider: Unbekannt
Absender Browser: XXXXX
Absender Betriebssystem: XXX

Kann man dies irgendwo bearbeiten oder weglassen, wenn ja wo.
Hatte schon einmal etwas getestet funktionierte aber nicht.

Danke schon einmal für die Infos
Gruß
Roman
#77161
  • djhargrove
  • djhargrove's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Official Support
  • Posts: 3419
  • Thank you received: 222

djhargrove replied the topic: Re: PDF Export ohne Kopfzeile

Changing the export's PDF template
I want to see a specific fields and in a different format. Do you know how I can call a specific field (not all fields) using php for example?
This requires to edit the export_pdf.php but I would suggest you use an alternative template.


Please copy the file /administrator/components/com_breezingforms/pdftpl/export_pdf.php under the same location and name it export_custom_pdf.php. BF will then pick it automaticaly and it is protected from BF upgrades.

Here is an example how you could perform custom layouts and selecting on the fields that you need:

Replace this in the pdf export template:
<?php
$subs = $this->getSubrecords($rec->id);
$subsSize = count($subs);
for($s = 0; $s < $subsSize; $s++) {
    $sub = $subs[$s];
?>
<tr>
<td>
    <strong><?php echo htmlentities($sub->title, ENT_QUOTES, 'UTF-8'); ?>:</strong> 
</td>
<td>
    <?php echo nl2br(htmlentities(substr($sub->value,0,10000), ENT_QUOTES, 'UTF-8')); ?> 
</td>
</tr>
<?php
}
?>
With this (example with name and email fieldnames):
<?php
$name = '';
$email = '';

$subs = $this->getSubrecords($rec->id);
$subsSize = count($subs);
for($s = 0; $s < $subsSize; $s++) {
    $sub = $subs[$s];
        switch($sub->name){
            case 'name':
                $name = nl2br(htmlentities(substr($sub->value,0,10000), ENT_QUOTES, 'UTF-8'));
                break;
            case 'email':
                $email = nl2br(htmlentities(substr($sub->value,0,10000), ENT_QUOTES, 'UTF-8'));
                break; 
        }
}
?>
<tr>
<td>
    <strong>Name:</strong>
</td>
<td>
    <?php echo $name; ?>
</td>
</tr>
<tr>
<td>
    <strong>Email:</strong>
</td>
<td>
    <?php echo $email; ?>
</td>
</tr>


This will only render the fields "name" and "email" with your desired layout.

Additionally you can remove the head data or parts of it if you don't need it.
#77190
The following user(s) said Thank You: mzungu
  • mzungu
  • mzungu's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

mzungu replied the topic: Re: PDF Export ohne Kopfzeile

Hy djhargrove, (at first sorry for this englisch :laugh: )

sorry that i wrote not earlier, but at first ....

.....thank you for the answer, it works not in Quickmode (i mean), maybe only in easy mode.
I can do what i want. I fill in the Form, but when i send this form and i look in the pdf, it is always the same.

Very mysterious or i forgot something in the konfiguration.

Thank you maybe for an feedback.

Gruß Roman
#78480
  • mzungu
  • mzungu's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

mzungu replied the topic: Aw: Re: PDF Export ohne Kopfzeile

Ich glaube quickmode holt sich sein Export von woandershin her oder es greift anderst auf die Form zu. Keiner eine Idee ? Die PDF sieht nämlich nicht so toll aus.
Gruß Roman
#78751
Moderators: ForumSupporttomeperica
Time to create page: 0.069 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

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

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription 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 for just 49! (Summer Sale)

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!

Live Support Chat Opened!

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

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