Hello,
I have requirement where I need to set dynamic image to a button. I have used FDFSetAP.
I have done below activities already,
1. I am using FDFToolkit.
2. Created a PDF file containing Image (which need to be set as Icon to a button.
3. In the main PDF I have created a button with below attribute.
a. Type : Button
b. Read Only
c. Layout : Icon Only
d. Highlight: None
Below is the piece of Code in aspx.
------------------------------------------------------------------------------------------------------
Dim objFDFApp As FDFACXLib.FdfAppClass
Dim objFDFDoc As FDFACXLib.FdfDoc
objFDFApp = New FDFACXLib.FdfAppClass()
objFDFDoc = objFDFApp.FDFCreate
objFDFDoc.FDFSetFile(http://testsite/PDF/form.pdf")
Const FDFNormalAP As Integer = 0
objFDFDoc.FDFSetAP("icon1",FDFNormalAP, "F:\Icon\icon.pdf", 1)
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite(objFDFDoc.FDFSaveToBuf())
----------------------------------------------------------------------
I have attached the FDF that is generated,
It do embed the image data as part of Xobject.
BUt Image is not visible when PDF opens,button area is still blank.
Am I missing anything, or is there some setting in reader to enable it.
Please help.
George