• When I create a Packing slip or Invoice, a lot of the text is squashed up to the top of the page. The logo extends to 80% of page width, squashing the address.
    Making the logo smaller doesn’t change this.

    Where do I look to fix this?

    Kevin Russell

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @nicecuppa,

    You can use a small code snippet to style your logo:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
    function wpo_wcpdf_custom_styles () {
        ?>
        td.header img { 
            max-width:40mm;
            height:auto; 
        }
        <?php
    }

    This snippet should be placed in the functions.php of your child theme. If you haven’t worked with snippets or functions.php please read this guide: How to use filters

    Thread Starter nicecuppa

    (@nicecuppa)

    Thanks Kluver

    I’ve fixed most of the formatting issues now, bar one:

    One the Invoice, the price is added as £50.00 except that the £ is printed behind the 5 so you cannot read the first number.

    I’ve tried all sorts of fixes including

    <?php echo str_replace("£","",$total['value']); ?>

    …but nothing works.

    Any Ideas?
    Kevin

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Kevin,
    That’s unusual… Is this a custom template or do you use a custom font? If you have the ‘extended currency symbol support’ option enabled in the settings, could you try turning it off temporarily (unless you have other currencies in your store that are more ‘exotic’ like rubles or indian rupees).

    Thread Starter nicecuppa

    (@nicecuppa)

    Ewout

    No change I’m afraid.

    Not a Custom template or custom font. Just Sans Serif.

    Kevin

    Plugin Contributor Ewout

    (@pomegranate)

    Hey Kevin,
    Whey you say “Sans Serif”, that’s actually a custom font (by which I mean: non-default). The default font for the Simple template is “Open Sans”. Could you switch back to Open Sans to see if that resolves the issue?

    Not enabled the extended currency symbol support option in the plugin either?

    Thread Starter nicecuppa

    (@nicecuppa)

    Ewout

    Quite right – I misread the style sheet.

    font-family: 'Open Sans', sans-serif;

    Standard Font

    Plugin Contributor Ewout

    (@pomegranate)

    I’m running out of possible explanations for this (+cannot reproduce and have no other reports)… Are you using any currency related woocommerce plugins?

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

The topic ‘PDF Formatting – overlapping text’ is closed to new replies.