ruby on rails - No pics in my PDF created with PdfKit on heroku -


I have an app that works well in development and on my current production server.

I want to move Heroko free (basic configuration: 1 Dino, 1 employee). Unfortunately, PDF generation ( PDFKit use ) is okay, but without pictures defined in my CSS


An alternative solution has been found, but I'm still eager to know a better option:

A different file is included in a dedicated view for HTML only

  • Finally, Strong> view for the PDF:

    .foo {background-image: url (<% = Rails.root%> / public / images / Bar.png)}

    >

    This is probably an issue in the manner described in the URL CSS. As I remember, they should be file paths full path. What does your CSS look like?

  • Comments

    Popular posts from this blog

    mysql - BLOB/TEXT column 'value' used in key specification without a key length -

    c# - Using Vici cool Storage with monodroid -

    python - referencing a variable in another function? -