Transfagarasan Posted November 18, 2009 Share Posted November 18, 2009 is there any way to get the content of a pdf file (1.5 format) with php? Link to comment https://forums.phpfreaks.com/topic/182024-pdf-15/ Share on other sites More sharing options...
Transfagarasan Posted November 19, 2009 Author Share Posted November 19, 2009 nobody knows? Link to comment https://forums.phpfreaks.com/topic/182024-pdf-15/#findComment-961067 Share on other sites More sharing options...
Mchl Posted November 19, 2009 Share Posted November 19, 2009 file_get_contents and then parse it. Link to comment https://forums.phpfreaks.com/topic/182024-pdf-15/#findComment-961075 Share on other sites More sharing options...
Transfagarasan Posted November 19, 2009 Author Share Posted November 19, 2009 The pdf files in 1.5 format can't be parsed unlike the 1.3 ones, for example. I mean they are compressed or something like that. You can notice the difference between those two formats by opening with notepad a pdf 1.3 file and a pdf 1.5 file. The one in 1.3 format contains the text from the pdf mixed in the code (so can be parsed) and the other has only unreadable code. (by unreadable, I mean some strange characters) Link to comment https://forums.phpfreaks.com/topic/182024-pdf-15/#findComment-961363 Share on other sites More sharing options...
Mchl Posted November 19, 2009 Share Posted November 19, 2009 Only compressed PDF files are compressed. Version has nothing to do with it, only creator has. I suppose you can read on what compression method is used for PDF on Adobe's site. Chances are it's just gzip. Link to comment https://forums.phpfreaks.com/topic/182024-pdf-15/#findComment-961404 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.