Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Developers

Topic: FDFSetAPRef - insert image
Conf: (P-PDF) Developers, Msg: 53295
From: ChrisKolor
Date: 5/29/2002 04:58 PM

I must admit FDFToolkit documentation is darker then November night...
I want to import jpg picture into the pdf template and have problem with; I created imag1.pdf file converting jpg file, added 'im_temp1' page template and now I want to import it dynamicly to another template (to button called 'but1'). No error yet no result as well...
Here is the the example file:
Dim FdfAcX
Dim TemplatePDF
Const FDFNormalAP = 0

'Create an FDF object
Set FdfAcX = Server.CreateObject("FdfApp.FdfApp")

Set FDF = FdfAcX.FDFCreate

'Specify PDFs containing TEMPLATEs
TemplatePDF = ""
TemplateImage1 = ""

'Specify template
FDF.FDFAddTemplate True, TemplatePDF, "template1", False

'Fill button 'but1' with the image included in pdf file
FDF.FDFSetAPRef "but1", FDFNormalAP, TemplateImage1, "im_temp1"

'Populate one text field
FDF.FDFSetValue "text1", "This is some sample text.", False

'Return template-based FDF response
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite FDF.FDFSaveToBuf

'Close the FDF

'Clean up objects
Set FDF = Nothing
Set FdfAcX = Nothing

What can be wrong?
Thanks for any help

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
Platinum Sponsor

Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.


Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.