Also keep in mind that any graphics in the PDF, even an uncompressed one, will 
show up encoded... Base64 or UTF or whatever PDFs use.

I also remember reading once that there's data at the end of the PDF that gives 
a pointer to where in the PDF certain data is.  That if you add/remove stuff 
from the PDF itself that you need to update those pointers.  I believe that 
only pertained to encoded and embedded graphics data, not text and whatnot.

We use PDFLib at work.  Basically you start with a blank form (all 
pre-constructed and layed out) and just overlay text and graphics with it.  
You're not really altering what's there as much as generating a new PDF with 
some additional stuff slapped over what was there in a layer or something.

Sorry to be so vague.. but wanted to pass on that info in case it helped avoid 
a pitfall somewhere.

Good luck!

-TG

= = = Original message = = =

Sam Smith wrote:
> I have an existing PDF file that I want to add text to or make changes to
> text with data from an HTML form via PHP.
> 
> The PDF looks like this:
> 20 0 obj<</Length 5586/Filter[/ASCII85Decode/FlateDecode]>>stream
> 8;X-DgMYb:(An746bc%oU,Mo*S<nfn`(:.P:CnHNZLL%2;CCTp,[EMAIL PROTECTED]'+2VqIkV
> -$2%Ipq]A
> aoW>]"SN?epNo...
> 
> That is, not in plain text.
> 
> If I wanted to add text to the PDF, e.g., Mr. Jones, where the heck would it
> go and what would it look like?
> 
> Thanks
> 

it's a compressed pdf. make uncompressed pdf and you should see the raw text


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to