Re: Editing PDF
| From: | tg-php at gryffyndevelopment dot com | Date: | Tue, 10 May 2005 20:48:40 +0000 |
| Subject: | Re: Editing PDF | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-214875@lists.php.net to get a copy of this message | ||
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,!@2g_u'+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.