open existing pdf file for editing and saving

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mhonnphp
Forum Commoner
Posts: 37
Joined: Fri Oct 12, 2007 11:29 pm
Location: Philippines
Contact:

open existing pdf file for editing and saving

Post by mhonnphp »

hello.. can i have codes for opening existing pdf files for editing?
thanks for help..
User avatar
Josh1billion
Forum Contributor
Posts: 316
Joined: Tue Sep 11, 2007 3:25 pm

Post 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! :)
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
mhonnphp
Forum Commoner
Posts: 37
Joined: Fri Oct 12, 2007 11:29 pm
Location: Philippines
Contact:

Post 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
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I'm talking about editing a PDF in PHP... aren't you?

Acrobat is a desktop application.

I'm confused.
mhonnphp
Forum Commoner
Posts: 37
Joined: Fri Oct 12, 2007 11:29 pm
Location: Philippines
Contact:

Post 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.
mhonnphp
Forum Commoner
Posts: 37
Joined: Fri Oct 12, 2007 11:29 pm
Location: Philippines
Contact:

Post by mhonnphp »

ah i can use the link..... thnx for help guyz
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply