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

PDF Customization

7 months 4 weeks ago #1

  • Mario's Avatar
  • Mario
  • Posts: 112
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:

7 months 4 weeks ago #2

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

7 months 4 weeks ago #3

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 17947
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

7 months 3 weeks ago #4

  • Mario's Avatar
  • Mario
  • Posts: 112
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?

7 months 3 weeks ago #5

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 17947
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

7 months 3 weeks ago #6

  • Mario's Avatar
  • Mario
  • Posts: 112
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?

7 months 3 weeks ago #7

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 17947
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

7 months 3 weeks ago #8

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

Best regards, Mario.

7 months 3 weeks ago #9

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

Best Regards,
Vyacheslav, Balbooa Support Team

7 months 3 weeks ago #10

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

7 months 3 weeks ago #11

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 17947
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

7 months 3 weeks ago #12

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

best regards.
Mario

7 months 3 weeks ago #13

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

6 months 2 days ago #14

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

6 months 2 days ago #15

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

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

Regards,
Vyacheslav, Balbooa.com

6 months 2 days ago #16

  • Mario's Avatar
  • Mario
  • Posts: 112
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.

3 months 3 weeks ago #17

  • Mario's Avatar
  • Mario
  • Posts: 112
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 "

3 months 3 weeks ago #18

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

Best Regards,
Vyacheslav, Balbooa Support Team

3 months 3 weeks ago #19

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

3 months 3 weeks ago #20

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 17947
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

3 months 3 weeks ago #21

  • Mario's Avatar
  • Mario
  • Posts: 112
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:

3 months 3 weeks ago #22

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 17947
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

3 months 2 weeks ago #23

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

3 months 2 weeks ago #24

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