change the export format pdf
  • gtorresgtorres January 2010

    Hi,

    the first, say simpleinvoices is a tool that I was surprised both by its management and for its intuitive interface.

    I am new management tool and I have a question. I need to change the format of the export to pdf. Currently I get something like this:

    Blank Box Factura

    Factura Resumen
    Factura N

  • justinjustin January 2010

    hey gtorres

    we use a html2pdf script to convert the html invoices into PDF

    the default invoice templates live in ./templates/invoices/default
    - you can edit this template files and it'll change the PDF

    let us know how you go

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • gtorresgtorres January 2010

    Then I must conclude that this module is not installed with simpleinvoices, right?

    Thanks, gtorres

  • gtorresgtorres January 2010

    Hi Justin,

    the question is that I edit that file, but the format does not change. Only recognizes the html file, not the css.

    greetings

  • gtorresgtorres January 2010

    What is the problem?, Am I missing something in installation?

    The rest works perfectly.

  • justinjustin January 2010

    hye gtorres

    are you using localhost/simpleinvoices to access simple invoices ?

    if so - try using 127.0.0.1/simpleinvoices
    - some people have reported that certain web servers configs dont resolve localhost correctly

    let us know

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • gtorresgtorres January 2010

    No, I'm doing it remotely. We use plesk panel. Can it be so?

  • gtorresgtorres January 2010

    Hi Justin,

    I think I know what the problem is. In previous reply, I commented that wearing a plesk panel, well, I have seen on the server, the directive "allow_url_fopen" is disabled for security reasons and they can not enable. They have told me I should use cURL function. What CURL function?, Where should I use?

    Greetings

  • manumanu January 2010

    Hello, i have the same problem here on remote server: when exporting to pdf CSS are not included and the document look very bad.

    I have found that for PDF we can't use in the template it will not be understood by the script.

    I know a solution from another software, the solution is using direct styling in the template like this :


    body { color: blue; }


    But In SimpleInvoice the use of "{" is forbidden and the code above will return a blank page so I put this code :


    {$biller.custom_field4}


    and in my custom field 4 in my biller settings i copy/paste my styles. And it worked. Off course i had to delete the {$biller.custom_field4} found in other part of the template.... The best way would be to add a css style field in the Biller edit page i think :)

    (sry for my bad english)

  • gtorresgtorres January 2010

    Thank you very munch. You saved my life. Now I have another problem, the format appears to me, but I not get the logo. Why?

    Thanks again

  • gtorresgtorres January 2010

    This is the error:

    [Mon Jan 18 10:21:47 2010] [error] [client xx.xx.xxx.xx] Cannot open , referer: http:///simpleinvoices/
    [Mon Jan 18 10:21:47 2010] [error] [client xx.xx.xxx.xx] Cannot open http://localhost/logo.jpg, HTTP result code is: 404, referer: http:///simpleinvoices/

  • gtorresgtorres January 2010

    Please, answer if you know something.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories