mikefrederick Posted February 19, 2008 Share Posted February 19, 2008 I am uploading a bunch of pdf files and as of now I am opening each one and saving the first page and then uploading it as a preview of the other file. Anyone know of any way that I could do this automatically? I would like to be able to preview 2 pages of each file, although I realize that I might have to just select a number of bytes... Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/ Share on other sites More sharing options...
aschk Posted February 19, 2008 Share Posted February 19, 2008 Use PDFLib, create new PDF object with the pdf file as the source. Take the first page and copy it into a new PDF object. Save new pdf object as preview et voila Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-470542 Share on other sites More sharing options...
mikefrederick Posted February 19, 2008 Author Share Posted February 19, 2008 I was working with PDFLib, but could not figure out how to edit a file, could you show an example? Seems adding pages and whatnot is easy, but editing the existing file is not. Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-470546 Share on other sites More sharing options...
mikefrederick Posted February 19, 2008 Author Share Posted February 19, 2008 anyone? Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-470573 Share on other sites More sharing options...
mikefrederick Posted February 19, 2008 Author Share Posted February 19, 2008 anyone have a good way to do this? Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-471022 Share on other sites More sharing options...
mikefrederick Posted February 19, 2008 Author Share Posted February 19, 2008 cmon guysss Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-471100 Share on other sites More sharing options...
mikefrederick Posted February 22, 2008 Author Share Posted February 22, 2008 Still lookin for an answer if it's out there. Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-473772 Share on other sites More sharing options...
maexus Posted February 23, 2008 Share Posted February 23, 2008 Have you read http://us2.php.net/pdf Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-474532 Share on other sites More sharing options...
mikefrederick Posted February 24, 2008 Author Share Posted February 24, 2008 yeah, don't see anyway it is possible Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-474879 Share on other sites More sharing options...
mikefrederick Posted February 24, 2008 Author Share Posted February 24, 2008 I finally figured this out and if anyone needs to know how to do it let me know. Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-475122 Share on other sites More sharing options...
AndyB Posted February 24, 2008 Share Posted February 24, 2008 I finally figured this out and if anyone needs to know how to do it let me know. It might help others who read/find this thread if you post a synopsis of the solution. Link to comment https://forums.phpfreaks.com/topic/91880-how-to-preview-a-pdf-file/#findComment-475155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.