Salve a tutti,

stò utilizzando FPDF per mettere un'immagine in un PDF, ma mi da l'errore:

codice:
FPDF error: Unsupported image file type: png
eppure le PNG dovrebbero essere supportate, utilizzo il seguente codice:

codice:
<%

Set objRs = objConn.Execute(" SELECT * FROM Progetti ")

Set pdf=CreateJsObject("FPDF")
pdf.CreatePDF()
pdf.SetPath("fpdf/")
pdf.Open()
pdf.SetFont "Times","",7
pdf.SetLeftMargin 5
pdf.SetRightMargin 5
pdf.AddPage()
pdf.SetFillColor 181,55,44

Do while NOT objRs.EOF

	pdf.Cell 11,5,"ID" ,1,0,0,1,"L"
	pdf.Cell 22,5,"NOME" ,1,0,0,1,"L"

	pdf.Cell 11,5, ""&objRs("ID")&"" ,1,0,"L"
	pdf.Cell 22,5, ""&objRs("Nome")&"" ,1,0,"L"

	pdf.Image "../images/progetti/"&objRs("ID")&".PNG",20,20

	pdf.AddPage()

objRS.Movenext
Loop

pdf.Close()
pdf.Output()

Set pdf = nothing

%>