Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it L'avatar di StegcO
    Registrato dal
    Aug 2008
    Messaggi
    371

    [FPDF] Immagine PNG non supportata

    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
    
    %>

  2. #2
    Utente di HTML.it L'avatar di StegcO
    Registrato dal
    Aug 2008
    Messaggi
    371
    Up

  3. #3
    Utente di HTML.it L'avatar di StegcO
    Registrato dal
    Aug 2008
    Messaggi
    371
    Up

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.