Inserting Image from url in PDF using FPDF

hello,
Im using FPDF to make PDF file.
and I want to insert qr-code image to PDF file.

I made php file for make qr-code.In HTML it works.
<img src="sampleqr.php?url=https://www.yahoo.com/" height="100" width="100">

How can i put this qr-code image to PDF, like this.
$pdf->Image('sampleqr.php?url=https://www.yahoo.com/', $x, $y, 50.0);
it doesnt work.

Is it possible to do this easily NOT save file in local?
HFunakawaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
I think the easiest way to do this is to create the QR code and save the file locally.  Then create the PDF and insert the local file into the PDF.  After you've created the PDF you can delete the local QR code file.  The reason I recommend this (from experience) is that the Image() method does not seem able to accept the output of a script - it needs to be able to read a file directly from disk.  Files that are read from disk are not parsed through the PHP engine, so the PHP part of this process must come first and be completed before you can use the QR code file to make the PDF.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HFunakawaAuthor Commented:
Thanks for you comment that easy to understand why i have to save file.I will try.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.