admin@simpleinvoices.group
Simple Invoices Knowledge Base
  • SimpleInvoices Group Forum
  • About
  • Requirements
  • Version Update Process
  • Installation
  • Invoice Types
  • Globalization Support
  • Common Problems
  • Foreign Keys
  • Invoice Templates & Styles
  • Database Updates
  • How To …
  • Add a 2nd Domain
  • Extensions
  • Invoice Prepopulation
  • Contributions
Select Page

stylesheet isn’t working

SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › stylesheet isn’t working

Tagged: holiday, logo, stylesheet css pdf export

  • This topic has 1 reply, 2 voices, and was last updated 2 years, 9 months ago by RRowley.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 8, 2022 at 7:22 pm #1705
    FreakWent
    Participant

    If I do print preview, the invoice stylesheet works fine.

    If I export to PDF, it’s totally ignored.

    The line
    <link rel=”stylesheet” type=”text/css” href=”{$css|urlSafe}” media=”all”>

    exists in the template.tpl.

    Why isn’t the stylesheet affecting my PDF invoices?

    July 16, 2022 at 9:17 am #1707
    RRowley
    Participant

    The problem is the PDF logic on a localhost server cannot handle an absolute URL path to the icon image. It does work with a relative path.

    I just update the files on github to change the logo path to a relative path on all export template. This is version 2020.3.20. If you have your own template, you can remove the holiday_logo function from it as the logo value passed to the template is correctly modified and any holiday logo resolved before it is passed to the template.

    The holiday_logo function in the template still exists but does not change anything. It will generate an entry in the error_log file indicating that the template should be updated. This is done so that your template will process correctly even with this function still in it.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Recent Comments

    Archives

    Categories

    • No categories

    Meta

    • Register
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2018-2020 - Rowley's Fearless Tech-Comp Consulting