• Resolved Rafał

    (@ayek)


    Dear Estatik Team,
    I’d like to rearrange the layout of generated PDF flyer, much more than by few options in Estatik’s Settings → Sharing & PDF. Where am I to dive?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Estatik

    (@estatik)

    Hello,
    Please modify the templates/property/pdf.php file to change the template of the PDF flyer. If you need to modify the list of fields and sections in the PDF, please use also class-property-pdf.php file.
    Thanks.

    Thread Starter Rafał

    (@ayek)

    Going to tackle. Seems to be a hard task 😉
    Thank you

    Thread Starter Rafał

    (@ayek)

    How to change the background color of QR code image?
    (the default is #C4C4C4)

    I’ve changed this line:987 in \estatik\libraries\phpqrcode\phpqrcode.php
    $col[0] = ImageColorAllocate($base_image,196,196,196);
    as the last 3 parameters stands for R,G,B values
    And it works, but I’ll lost this at next update of Estatik,
    Is it possible to apply a filter to save my customization?

    Plugin Author Estatik

    (@estatik)

    Hi there,

    The only way not to lose your custom changes with the next update (but within 3.x.x version) is to override this template >> and enter your custom code in the area marked on a screenshot.
    All this should be implemented in your child theme.

    Thread Starter Rafał

    (@ayek)

    Hi!
    Sorry, it’s too difficult for me. Am i allowed to add another parameter here to set the background color or set it as transparent?

    If you make changes directly to the plugin, then those changes will be overwritten when you update. You need to override the specified template in your custom plugin or child theme.

    Thread Starter Rafał

    (@ayek)

    @novaleks I know I have to overwrite the template, but HOW to construct a function that passes the background color for QR code image???
    Any help appreciated

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘How to customize PDF template’ is closed to new replies.