Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 07-31-2003, 05:54 AM   #1 (permalink)
Muffled
 
Kadath's Avatar
 
Location: Camazotz
I'd like to keep my job

I'll have the best chance of that if I can answer this problem.
I've got a pdf that is used in all 67 PA counties. Rather than have 67 different forms with the address of the county office filled in each one, I need to have one form and have the County field filled when the form opens, either by XML metadata or some other source. Rather than get into further details, I'll stick with that question. Is it possible for a pdf to auto-fill a field on opening?
__________________
it's quiet in here
Kadath is offline  
Old 07-31-2003, 06:14 AM   #2 (permalink)
Psycho
 
It looks like it's possible...
I did a search for "dynamic pdf" on google and I found a site:

http://www.fastio.com/forms/form1040.html

that does it for the 1040 form. That just shows you it can be done. I don't think they tell you how because from what I've skimmed, they want you to buy their product. (That's how I interpreted the last paragraph on the bottom of the page.) From other stuff I skimmed it appears that you can use PHP 4.2 to generate dynamic PDFs also.

PHP and dynamic PDF:
http://www.devarticles.com/art/1/503/2

Good luck, and hope you can keep your job!
nash is offline  
Old 07-31-2003, 07:04 AM   #3 (permalink)
Industrialist
 
Mondak's Avatar
 
Location: Southern California
I know someone who can do it. I will send him a PM and tell him to check out this thread.
__________________
All truth passes through three stages:
First it is ridiculed
Second, it is violently opposed and
Third, it is accepted as self-evident.

ARTHUR SCHOPENHAUER (1788-1860)

Mondak is offline  
Old 07-31-2003, 07:12 AM   #4 (permalink)
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
Yes, it can be done. If you have access to the original PDF you can use an Adobe version of Java Script to do all kinds of cool things on the form.

How will you know which address to fill when the form opens?
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
Old 07-31-2003, 11:20 AM   #5 (permalink)
Muffled
 
Kadath's Avatar
 
Location: Camazotz
Well, based on the location within the online collection, it'll get the address. I was thinking of having an XML document in the folder to read the address from. Can you cue the JScript to read from a source document like that?
__________________
it's quiet in here
Kadath is offline  
Old 07-31-2003, 12:14 PM   #6 (permalink)
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
Quote:
Originally posted by Kadath
Well, based on the location within the online collection, it'll get the address. I was thinking of having an XML document in the folder to read the address from. Can you cue the JScript to read from a source document like that?
That I don't know. It's been awhile since I looked at it but I don't think so. I don't know if you can do this or not but here is an idea. Assign each county a number. Have them enter the number on the form. When they exit the field where the number has been typed in the "on exit" event for that field is triggered. The function does a lookup and based on the number entered fills in the appropriate address. All this info is embeded into the PDF file.
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
Old 07-31-2003, 01:33 PM   #7 (permalink)
Muffled
 
Kadath's Avatar
 
Location: Camazotz
Hmm. The goal for the client is for the form to auto-populate the address. Keep in mind that we're talking about maybe five thousand forms here, and it would suck to make the changes to each of the 67 copies every time, not to mention type the address in to thirty thousand plus forms. The counties are already numbered and are ordered in folders by that number. Can it cue off the folder using relative linking?
__________________
it's quiet in here
Kadath is offline  
Old 07-31-2003, 02:12 PM   #8 (permalink)
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
Quote:
Originally posted by Kadath
Hmm. The goal for the client is for the form to auto-populate the address. Keep in mind that we're talking about maybe five thousand forms here, and it would suck to make the changes to each of the 67 copies every time, not to mention type the address in to thirty thousand plus forms. The counties are already numbered and are ordered in folders by that number. Can it cue off the folder using relative linking?
I don't know if it can read information outside of file or not. Check out this link
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
Old 08-05-2003, 09:42 AM   #9 (permalink)
Addict
 
Fat_Boy's Avatar
 
Location: Southern California
This can easily be done by taking advantage of the FDF layer of the PDF. You can manipulate the FDF by using JSP or ASP. You can also take advantage of the Java Script within the PDF Document.

The JSP or ASP model can perform lookups to a database or any other file to retrieve the information.

I noticed you find out the address from the web-site they call it from. You can then just use an FDF file. Fill out the address in a blank form and select File | Export | Form Data. This will create an FDF. Place this in the directory where the PDF is located and instead of calling the PDF, call the FDF. This will launch the PDF with the proper information.

If this isn't an option use the Java Script to create an FDF on the fly and load it into the browser with the correct information.

Let me know and I will try to locate a sample for you.
Fat_Boy is offline  
 

Tags
job


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 04:32 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360