|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP to PDF
Looking for direction on how to converat an .ASP file into a .PDF file. Also, if I have to obtain software to do this what is suggested?
Thank you!! Faith |
|
#2
|
||||
|
||||
|
If you can lay your hands on version 5 of Acrobat, it came packaged with Acrobat Distiller. The technique, in brief, is then:
1. Create a HTML page to use as your template 2. Within the HTML page add data "place holders" for you to substitute your data into (I use "#FieldName#") 3. Use Acrobat to open this page 4. Now print the page to Acrobat Distiller as a PostScript file choosing to save the output to file. This will result in a .eps version of your template 5. Create a PDF folder in your application space 6. Run Distiller and add the folder in point 5. as a "watched" folder. This will create /in/ and /out/ folders 7. In your application, open the .eps file using the File System Object 8. Read your data and substitute the "#FieldName#" place holders with the data from your recordset 9. Save the resultant output as a .eps file in the /in/ folder in point 6. 10. If Distiller is running a new .pdf file will be created in the /out/ folder in point 6. This is a fairly rudimentary overview but if you choose to go this way, I'd be happy to provide some further assistance For some reason, the later versions of Acrobat no longer have the Distiller packaged with them. There used to be some server software available called (I think) "Acrobat Distiller Server" but I could never find a supplier Hope this helps MK |
|
#3
|
||||
|
||||
|
Some points to note:
1. If you are planning large data substitutions (i.e. paragraphs rather than words) you need to be careful to accomodate line length in your original HTML document 2. It's difficult to set-up Distiller to run as a server 3. Distiller has no modeless dialog error handling and as soon as you get a crash you'll start to get a back-log of unprocessed .eps files MK |
![]() |
| Viewing: ASP Free Forums > Other > ASP Free Lounge > ASP to PDF |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|