Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 14th, 2003, 06:07 AM
Authorized User
 
Join Date: Jul 2003
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default How Can I Edit PDF's Using ASP Code

Hi there

Could anyone help me with the following:
Do you know of any code that you could use to edit a PDF?
A user would be able to go onto a website, enter in the text they wanted to put in to a specific area of a PDF (to customise it with their own name) and then download this PDF with their new info in it. They would also need to save this new updated PDF as a JPEG.

So, for example, I have a PDF which contains the following:
Merry Christmas
Regards
Miss XXXXXXXXX

A user would need to go into this PDF and change 'XXXXXXXXX' to, say, 'Lucy Robinson', and then save the PDF as a JPEG with this name in it.

Amy ideas?!

Thanks in advance

Lucy

 
Old October 14th, 2003, 11:29 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You'll need to look into a PDF generator or a PDF editor. Adobe Forms have this capability, but they are very difficult to work with. There are some other threads on these forums that address this issue. They might not be in the ASP forums, but the concepts are the same regardless.

Is there a reason you are converting a PDF to a JPEG? Kind of defeats the whole concept of a PDF (IMO).

Peter
 
Old October 15th, 2003, 04:19 AM
Authorized User
 
Join Date: Jul 2003
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for that - i'll look into the info you've mentioned :)

Only reason for converting the PDF to a JPEG is that the PDF would essentially just be an image with some text over the top which they can edit. The user would then want to put this image onto their site and possibly hand it out as a flyer.

Lucy
 
Old October 15th, 2003, 08:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found a web site the other day you might find something similiar to what you need http://www.pdfzone.com
 
Old February 10th, 2005, 08:17 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone ever find or hear of a solution to this problem?

I have a similar task to do. I've tried to do it numerous ways including reading the file in as a TextStream then find and replace a temp value in the pdf with the name/variable. It works but it isn't a great solution as Acrobat rebuilds the file when it opens it after the change has been made. I think it has a checksum or something and can tell if the file has been altered. I think because i'm trying to read the file in as ASCII format and not in a hex format. Not too sure but there has to be an easier way. perhaps converting it to XML or something but then i'm not too familiar with that either. I've looked at pdf generators/editors but most of them cost big bucks and i am restricted from installing things on my server (COM objects etc) which adds to the challenge for me . Any suggestions would be great.

cheers
Josh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp manually edit ik Classic ASP Professional 8 August 24th, 2006 08:33 AM
Asp manually edit ik Classic ASP Professional 0 August 18th, 2006 03:44 AM
pg190 edit/delete code for 'people' table ?? jeronimo BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 June 28th, 2004 01:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.