Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3440488
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:26:16+00:00 2026-05-18T08:26:16+00:00

Im creating a PDF Document on my Website. All works just fine, but when

  • 0

Im creating a PDF Document on my Website.
All works just fine, but when i try to add a Image into the PDF i get
“We’re sorry, but something went wrong.
We’ve been notified about this issue and we’ll take a look at it shortly.”

So something fails with Prawn.

This is how i try
“image ‘logo.png”
i tryed so many ways, all found in the internet, nothing seemed to work.
One was with the BASEDIR, how do i know where BASEDIR is?

Anyway im using OSX Server 10.6 and id be very thankfull to anwser me those questions

-Where is the Prawn Logfile?
-How does one add a Image

Thanks very much,
Greetings!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:26:16+00:00Added an answer on May 18, 2026 at 8:26 am

    You’ll need to refer to the full path to the file.

    We usually refer to our images used in PDFs using the RAILS_ROOT as the starting point. So we use something like:

    pdf.image "#{RAILS_ROOT}/public/images/logo-header.png"
    

    Assuming pdf is a Prawn::Document object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a pdf document using C# code in my process. I need
I am converting my data set into a pdf document.My data set contains the
I'm creating a PDF using iTextSharp and after adding all my pages, I want
I'm creating a PDF using iTextSharp and after adding all my pages, I want
I'm creating a PDF document and inside of it i'm creating a table. I
I am currently creating a PDF document which has fields on it which I'd
I am interested in creating tables in a PDF document with XML using iTextSharp.
We are creating PDF documents on the fly from the database using PDFsharp .
I'm using html2fpdf for creating PDF documents. Now once I have created that, I
I'm investigating the possiblity of creating PDF files from an embedded system, specifially an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.