The BusinessCard Example uses the Adobe Flex Client Library to directly access services of ServePDF.com. This small Flex application lets you enter data to be merged with a simple BusinessCard PDF Form. Just change the input values below and click on "Create PDF" to see the service in action.
The snippet below is an ActionScript fragment that shows you what is needed to call the process service. Basically, you need to collect information into the PDFData object and invoke a method on the ServePDF object.
var pdfData:PDFData = new PDFData()
pdfData.head.accessKey = "businesscard-access"
var content:Content = pdfData.body.getContent()
content.formURL =
"http://docs.servepdf.com/forms/businesscard1.pdf"
content.addText("name",nameTI.text)
content.addText("email",emailTI.text)
content.addText("address",addressTI.text)
content.addText("function",functionTI.text)
content.addText("internet",internetTI.text)
content.addText("slogan",sloganTI.text)
content.addText("phone",phoneTI.text)
var service:ServePDF = new ServePDF()
service.process(pdfData,"businesscard-secret")
Full source code of this and other examples are found on servepdflib