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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:03:28+00:00 2026-06-13T03:03:28+00:00

I am having a problem with fpdf and its eps extension that I can’t

  • 0

I am having a problem with fpdf and its eps extension that I can’t seem to get past it.
This is what my code looks like:

define('FPDF_FONTPATH','fpdf/font/');
require('fpdf/fpdf_eps.php');
$pdf = new PDF_EPS();
$pdf->AddPage();
$pdf->ImageEps("images/image.eps",50,100);
$pdf->AddPage();
$pdf->SetFont('Arial','B',14);
$pdf->MultiCell(0,5,"some text with multiple lines");
$pdf->Output("filname.pdf", "D");

And this is what I constantly get:

Strict Standards: Only variables should be passed by reference in (…php file and line…)

FPDF error: Could not include font metric file

Any help will be greatly appreciated.

The eps extension can be found here: http://valentin.dasdeck.com/fpdf/fpdf_eps

  • 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-06-13T03:03:29+00:00Added an answer on June 13, 2026 at 3:03 am

    About Strict Standards: Only variables should be passed by reference in (…php file and line…)

    This means what it says.. You can only hand variables by reference (the & characters before arguments in the function definition). You can either lose the & or make sure error_reporting() does not include E_STRICT, which will suppress this warning. (at any rate php should just copy whatever you pass to that function instead of handing over a reference to it so i wouldn’t worry about it)

    Regarding: FPDF error: Could not include font metric file

    This error is related to SetFont(). There should be a .ufm or .afm file for Arial (or whatever font you want to load) in the font path so fpdf can load and use them.

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

Sidebar

Related Questions

i having problem in converting this C# code into VB.net. The loadLecturer seem to
I am having problem to get a numerical value for this expression where I
Having problem with this bit of code qith jQuery. it should pick the values
Im having problem in my UIscrollView ,this is what I have done: Whenever a
I'm having problem with datagrid view. I have attached an image with the code
I am having problem with drawing multiple lines during repaint. The code is as
I having problem to update the counter (integer value). this is the definitions of
having problem with null pointer exception and i read few article bout that error
I am having problem in using this font in my Application. I have imported
I am having problem with random number generation in c#. If I RUN this

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.