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 6069267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:48:14+00:00 2026-05-23T09:48:14+00:00

I need to include the ‘customer’s logo’ in the PDF file when we download

  • 0

I need to include the ‘customer’s logo’ in the PDF file when we download it from invoice.

I tried with the following code.

$page->drawImage($customerLogo, 25, 800, 125, 825);

But it through the following fatal error…

Fatal error: Call to a member function getResource() on a non-object in D:\Application\xampp\htdocs\projects\guardian\lib\Zend\Pdf\Page.php on line 344

Any one knows, how to fix this problem.

  • 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-23T09:48:14+00:00Added an answer on May 23, 2026 at 9:48 am

    I have used this method before:

    Place an image in image in your /media folder then where you want the image to appear inser this code:

    $image = Mage::getConfig()->getOptions()->getMediaDir().DS.'you-logo-here.png';             
                            if (is_file($image)) {
                                $image = Zend_Pdf_Image::imageWithPath($image);
                                $page->drawImage($image, $x+5, $y-18, $x+45, $y-6);
                            }  
    

    You will have to play with your php drawImage dimensions and coordinates. But this should do it.

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

Sidebar

Related Questions

I need to include a GWT file into JSP page. The GWT resource is
I need to include a html file inside a php file, I tried using
I need to include a path from a config file in one directory on
I have a prototype model where I need to include the following extension methods
I'm packaging an ejb and I need to include some .classes from a dependency
Programaticly, I need to include a google Maps map to automaticly generated pdf files.
I need some help trying to match a C include file with full path
when you need to use a function you include a header file but wheres
I need to include an html page (table of contents) on a CD/DVD. I'd
I need to include the content-length of a image /png file posted in 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.