Miko. eCommerce Template

Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

PDF Customization

4 months 3 weeks ago #1

  • Mario's Avatar
  • Mario
  • Posts: 108
How input some text to end pdf document.
I need add text something like "Put here your signature" and line near, or text box with that text.
Something like in attachment.
If can't add line or box how add only text on end of text in document.

Thanks for your time.
Mario
Attachments:

4 months 3 weeks ago #2

  • Mario's Avatar
  • Mario
  • Posts: 108
Also I have problem with adding page number, how input in footer page number, something like Page 1/2 .
Thanks.

4 months 3 weeks ago #3

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
Hello,
Thank you for contacting us

You need at the file pdf.php(components/com_baforms/libraries/pdf-submissions/pdf.php)
after line 37 add the code:
        $pdf->SetFont('Roboto', '', 24);
        $pdf->MultiCell(0, 10, 'Some Text', 0, 'L');//L C R
In the code, change the path to a picture and text alignment (L C R)

2.
You need at the file tfpdf.php(components/com_baforms/libraries/pdf-submissions/tfpdf.php)
on line 370 find
// To be implemented in your own inherited class
and replace with code
$this->SetY(-15);
	$pdf->SetFont('Roboto', '', 12);
	$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');

Best Regards,
Vyacheslav, Balbooa Support Team

4 months 3 weeks ago #4

  • Mario's Avatar
  • Mario
  • Posts: 108
First part works great but second part no, when replace code for page numbers, pdf is not generated and no arrived to email. How can I fix that?

4 months 3 weeks ago #5

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
You need at the file pdf.php(components/com_baforms/libraries/pdf-submissions/pdf.php)
after line 34 add the code:
 $pdf->AliasNbPages();

You need at the file tfpdf.php(components/com_baforms/libraries/pdf-submissions/tfpdf.php)
on line 370 find
// To be implemented in your own inherited class

and replace with code
        $this->SetY(-10);
	$this->SetFont('Roboto', '', 6);
	$this->Cell(0, 6, 'Page '.$this->PageNo().'/{nb}', 0, 0, 'C');


Best Regards,
Vyacheslav, Balbooa Support Team

4 months 3 weeks ago #6

  • Mario's Avatar
  • Mario
  • Posts: 108
I need to display the name of the attached file and the name of the upload box in the generated pdf document, can you help me, please?

4 months 3 weeks ago #7

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
Hello,

Thank you for contacting us!

You need at the file pdf.php(components/com_baforms/libraries/pdf-submissions/pdf.php)
at the line 46
if ((!$this->settings->empty && $field->value == '') || $field->type == 'upload') {

Replace with this code:
if ((!$this->settings->empty && $field->value == '')) {

Best Regards,
Vyacheslav, Balbooa Support Team

4 months 3 weeks ago #8

  • Mario's Avatar
  • Mario
  • Posts: 108
Thanks, works perfect.

Best regards, Mario.

4 months 3 weeks ago #9

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
Let us know if you need more assistance!

Best Regards,
Vyacheslav, Balbooa Support Team

4 months 3 weeks ago #10

  • Mario's Avatar
  • Mario
  • Posts: 108
Please help me how fix pdf when text covers the page number.
Thanks.
Mario
Attachments:

4 months 3 weeks ago #11

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
support.balbooa.com/forum/joomla-forms/1...-customization#51863
In code
$this->SetY(-10);

-10 these are the coordinates of the displacement, you can choose the value that suits you

Best Regards,
Vyacheslav, Balbooa Support Team

4 months 3 weeks ago #12

  • Mario's Avatar
  • Mario
  • Posts: 108
Thanks,

best regards.
Mario

4 months 3 weeks ago #13

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
You are welcome ;)

2 months 4 weeks ago #14

  • Mario's Avatar
  • Mario
  • Posts: 108
Hi, I have a problem with text and page number. In some cases text overlaps page number, can you help me with that?
Attachments:

2 months 4 weeks ago #15

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
Hello,
Thank you for contacting us

We answered this question earlier
support.balbooa.com/forum/joomla-forms/1...-customization#51976

Regards,
Vyacheslav, Balbooa.com

2 months 4 weeks ago #16

  • Mario's Avatar
  • Mario
  • Posts: 108
OK, I know for that, can I set page break on some place in first page in PDF and how I can change margins from 1 cm to 2 cm.

2 weeks 5 days ago #17

  • Mario's Avatar
  • Mario
  • Posts: 108
After help with PDF converter in 2.0.5. update please help me with code to enable page numbers in footer, I try but not working.
"example. Page 1 of 2 "

2 weeks 5 days ago #18

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
We added changes to the file tfpdf.php (components/com_baforms/libraries/pdf-submissions/tfpdf.php)

Best Regards,
Vyacheslav, Balbooa Support Team

2 weeks 4 days ago #19

  • Mario's Avatar
  • Mario
  • Posts: 108
Hi, I made a test submission and did not receive an email, please help how to fix it.

2 weeks 4 days ago #20

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
We have fixed an issue!
We added more changes to the file tfpdf.php (components/com_baforms/libraries/pdf-submissions/tfpdf.php)

Best Regards,
Vyacheslav, Balbooa Support Team

2 weeks 4 days ago #21

  • Mario's Avatar
  • Mario
  • Posts: 108
Hi, it's working, thanks a lot. You are the best.

Another little thing, how can fix problem with numbers, in footer it says "Stranica 1/{nb}"
Attachments:

2 weeks 4 days ago #22

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
We have fixed an issue!
Changes at the file pdf.php (components/com_baforms/libraries/pdf-submissions/pdf.php)

Best Regards,
Vyacheslav, Balbooa Support Team

2 weeks 12 hours ago #23

  • Mario's Avatar
  • Mario
  • Posts: 108
Thanks, working.
You are the best.
Thanks for your time.
Best regards, Mario.

2 weeks 12 hours ago #24

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
You are welcome ;)
Powered by Kunena Forum