ASP Free Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherASP Free Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 27th, 2004, 10:23 AM
websolutionsrus websolutionsrus is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: New York
Posts: 1 websolutionsrus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old July 6th, 2004, 09:16 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,942 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 9 h 49 m 28 sec
Reputation Power: 62
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

Reply With Quote
  #3  
Old July 6th, 2004, 09:19 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,942 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 9 h 49 m 28 sec
Reputation Power: 62
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

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherASP Free Lounge > ASP to PDF


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway