Reply to Re: [PHP] pdf properties

Your name:

Reply:


Posted by Richard Lynch on 02/10/05 22:24

> Is there anyway to retrieve the properties from a pdf file using php?
>
> When you right click on a pdf file in windows you can see the title of
> the file and you can change this property there also.
>
> I wrote a php page that lists all files in a certain directory. I want
> to be able show the actual title of the document instead of just the
> file name.
>
> I have searched the manual and google, everything that comes up refers
> to generating pdfs on the fly, not working with an already made pdf.

Take a PDF where you know the title.

Then do this:

<?php echo "<PRE>", implode("", file("/path/to/your.pdf")), "</PRE>;?>

Now search for that title in your browser (control-F).

Figure out what PDF markers (like HTML tags, only not) are surrounding the
title.

Write PHP code to find those tags and extract the title from between them.

--
Like Music?
http://l-i-e.com/artists.htm

[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

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