Reply to Re: [PHP] Editing PDF

Your name:

Reply:


Posted by tg-php on 05/10/05 23:48

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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация