Re: Editing PDF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux