New Forum | Previous | Next | (P-PDF) Developers
Topic: Insert image dinamically into fdf files
Conf: (P-PDF) Developers, Msg: 54289
From: sagar75
Date: 5/29/2002 05:05 PM
It's a couple of week that i managed to insert image into an FDf document using the FDFSetAp function.
No way.
Finally i include my ASP file:
--------------------------------------------
@ Language=VBScript
Response.Buffer = true
Response.ContentType = "text/html"
Dim p_image,p_page
p_image = Server.MapPath("uomo.pdf")
p_page = 1
Set FdfAcx = Server.CreateObject("FdfApp.FdfApp")
Set myFdf = FdfAcx.FDFCreate
myFdf.FDFSetAP myFDF, "foto1", FDFNormalAP, NULL,"http://www.semeraro.it/pdf/Seme4.pdf", 1
myFdf.fdfsetvalue "cod1", "1", false
myFdf.fdfsetvalue "desc1", "BASE TAMP.S/T. DA CM.5 A 15", false
myFdf.fdfsetvalue "variante1", "1M ST.NOB.BIANCO-FR.COLORE"&Vbcrlf&"1N ST.NOB.NOCE-FR.COLORE", false
FisicalPathCompleto = Server.MapPath("./")
NomeFile="g"&Day(Now())&"h"&Hour(Now())&"m"&Minute(Now())&"s"&second(Now())&".fdf"
myFDf.FDFSaveToFile FisicalPathCompleto&"\"&NomeFile
Response.Write("Per vedere il pdf compilato premi qui")
myfdf.fdfclose
set fdfacx = nothing
---------------------------------------------
In my FDF file i had the following fields:
foto1 type=button; icon only
cod1 type=text
desc1 type=text
variante1 type=text
I create a .PDF image
The result is that no image is put on the icon button place, and the text data are displayed correctly.
Anyone can help me?
Greetings
Sagar