Page 1 of 1

open existing pdf file for editing and saving

Posted: Wed Oct 17, 2007 2:24 am
by mhonnphp
hello.. can i have codes for opening existing pdf files for editing?
thanks for help..

Posted: Wed Oct 17, 2007 2:30 am
by Josh1billion
Hmm.. to be honest with you, I've never opened a pdf file in a text editor, so I don't know what formatting they use (if any? maybe just HTML even?), so I can't be of much help here, but I'll chime in anyway.

To read files in general: http://www.tizag.com/phpT/fileread.php
..then edit the data..
To write files in general: http://www.tizag.com/phpT/filewrite.php

Hope that helps! :)

Posted: Wed Oct 17, 2007 2:42 am
by Kieran Huggins
I've created PDF documents in PHP using ezPDF, but I've never heard of editing PDF files in PHP.

Googling seems to hint at something existing, but the site's come down with the flu.

Judging by your question ("can I have codes") I'd suggest considering another alternative to solving your problem. PDFs can be tricky.

Posted: Wed Oct 17, 2007 2:51 am
by mhonnphp
using acrobat reader 8.. you can edit pdf file and save it.
sample site that pdf files can be edit and save : http://www.uscis.gov/files/form/ar-11.pdf

Posted: Wed Oct 17, 2007 2:55 am
by Kieran Huggins
I'm talking about editing a PDF in PHP... aren't you?

Acrobat is a desktop application.

I'm confused.

Posted: Wed Oct 17, 2007 2:59 am
by mhonnphp
ah.. okey to make it clear... what i need to do is open an existing pdf file in a browser.. after it open the user can now fill up or edit the pdf file and save it to the computer.

Posted: Wed Oct 17, 2007 3:08 am
by mhonnphp
ah i can use the link..... thnx for help guyz

Posted: Wed Oct 17, 2007 4:41 am
by s.dot
Internet Explorer will open PDF's in the browser (providing the end user has adobe acrobat reader). Other browsers open them in the read program.

Editing PDF's is tricky business.