ASP FPDF, problem with inserting image

Posted by Dels on Stack Overflow See other posts from Stack Overflow or by Dels
Published on 2009-03-27T09:41:06Z Indexed on 2010/03/31 10:03 UTC
Read the original article Hit count: 1040

Filed under:
|
|
|

Hi there,

I have some problem with inserting image when i generate pdf using FPDF library (ASP port version) you can get it here ASP FPDF

I have tried this code (this was ASP VBScript):


pdf.Image Server.MapPath("map.jpg"), 10, 10, 800, 400
pdf.Image "map.jpg", 10, 10, 800, 400
pdf.Image "http://localhost/pdf_test/map.jpg", 10, 10, 800, 400

None of the codes above work... it keeps throw an error:


Microsoft JScript runtime  error '800a138f'

Object expected

/pdf/libs/fpdf.asp, line 817


And from fpdf.asp line 817 (This was ASP JScript):


type=SupposeImageType(xfile);


However, without inserting image(s) a.k.a text-only pdf it works fine. Can someone help me fix this thing?

Thanks
Dels

© Stack Overflow or respective owner

Related posts about asp-classic

Related posts about fpdf