1) after you read the PDF "template" file from the disk, assign it into a variable - for example @@local$myPDF
2) make sure that your "container" variables (like "User$CompanyName" and "User$CompanyName") exist and have values at that point during the execution
3) if you want to write the instantiated PDF into a file, then in the file action, specify the path and into "Data to write" section type:
<@PURGERESULTS>
<@VAR local$myPDF ENCODING="none">
4) if you don't want to write the PDF into a file, you can send it directly into browser by inserting a result action after the step 2 with properly set HTTP header.
 
A.
-----Original Message-----
From: Brian Mowers [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 11, 2003 6:54 PM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: Re: PDF variable substitution

I am trying to read in a small PDF file that has some <@Var user$varname>'s in it into a variable then replace the variables with the current value in tango as read from a database. The <@var user$variables> are placed in the 'default value' of the PDF form field.

I can read the file into a variable fine and write it out to any file I want fine. I was hoping for variable substitution to take place just before I again write out the file (with a PDF extension).
Below is a snippet of the file with a <@var User$CompanyName> variable that I am trying to substitute.


/BS << /W 2 /S /S >> /Ff 4194304 /DV (<@var User$CompanyName>) /V (<@var User$CompanyName>) /AP << /N 49 0 R >> >> endobj 44 0 obj [ 43 0 R ] endobj 45 0 obj << /Fields [ 43 0 R ] /DR

It would be cool if this would work.
Thanks for pondering,

Brian.
T2000 .047 IIS NT 4.0


Then I would like to substitute the <@Var user$ variables> for the real value.

Brian Mowers
[EMAIL PROTECTED]

Reply via email to