Rita_Ruah Posted July 29, 2013 Share Posted July 29, 2013 Hello, Is there any easy way to do this? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
mikosiko Posted July 29, 2013 Share Posted July 29, 2013 so... we only know that you have some kind of scanned documents and you seems to want to merge them to produce an unique pdf file... - What type are your scanned documents?... pdf's, images, what?... if they are pdf's, merging them manually in an unique document is fairly simple using adobe or other tools. - Do you want to merge them automatically using php, based in some criteria to select the files to merge? I personally use a solution based on php and ghostscript (http://www.ghostscript.com) to merge multiple pdf's documents in an unique pdf file... fairly straight forward and simple to implement ... ghostscript came with several well documented examples. Quote Link to comment Share on other sites More sharing options...
Rita_Ruah Posted July 29, 2013 Author Share Posted July 29, 2013 (edited) Hello, the scanned documents are jpegs. I would like the user to select the images, and then, produce a pdf with all the images (imagine, I scanned 3 pages (I now have 3 jpegs), I select the 3 jpegs, and the output will be a pdf with the 3 images (one in each page of the pdf). Edited July 29, 2013 by Rita_Ruah Quote Link to comment Share on other sites More sharing options...
mikosiko Posted July 29, 2013 Share Posted July 29, 2013 you should explore one of the many libraries available .... just search for "php image to pdf".... FPDF is one of them , Mpdf, dompdf to name a few... I have used fpfd before and it has good examples and the documentation is fair Quote Link to comment Share on other sites More sharing options...
Rita_Ruah Posted July 29, 2013 Author Share Posted July 29, 2013 Didn't managed to find a script to do this... can you please link me to an working demo source? Sorry... Quote Link to comment Share on other sites More sharing options...
Rita_Ruah Posted July 30, 2013 Author Share Posted July 30, 2013 Can you help me? EDIT: how do I change my profile picture?Thanks in advance! Quote Link to comment Share on other sites More sharing options...
mikosiko Posted July 30, 2013 Share Posted July 30, 2013 (edited) Can you help me? EDIT: how do I change my profile picture? Thanks in advance! Help you with what?.... if you are looking for pre-made code for your objectives I doubt you can find something... the suggested libraries (classes) in my previous post are for you to explore/investigate/study pick the one that will help you to fulfill your objectives, and write your own code... in general, this forum objective is help you to solve issues with "your code" not to provide you full solutions... if you need a full solution you should then post in the freelance forum and probably paid for that. Check the tutotials in the FPDF website www.fpdf.org in particular the tutorial # 2 include a way to manage images Edited July 30, 2013 by mikosiko Quote Link to comment Share on other sites More sharing options...
Rita_Ruah Posted July 31, 2013 Author Share Posted July 31, 2013 (edited) Ok, thank you! My doubt is where to start, I don't know how to work with classes (where can I study them?). I am thinking about something like this: 1 - Select images...2 - For each image, the script would print the selected image on the pdf, then, a pagebreak would happen. 3 - ??? 4 - PROFIT. Edited July 31, 2013 by Rita_Ruah Quote Link to comment Share on other sites More sharing options...
Barand Posted July 31, 2013 Share Posted July 31, 2013 Ok, thank you! My doubt is where to start, I don't know how to work with classes (where can I study them?). http://php.net/manual/en/language.oop5.php Quote Link to comment Share on other sites More sharing options...
mikosiko Posted July 31, 2013 Share Posted July 31, 2013 (edited) Ok, thank you! My doubt is where to start, I don't know how to work with classes (where can I study them?). I am thinking about something like this: 1 - Select images... 2 - For each image, the script would print the selected image on the pdf, then, a pagebreak would happen. 3 - ??? 4 - PROFIT. Just look the indicated tutorial in the website that I provided for you early... there are several examples of how to use the FPDF class Edited July 31, 2013 by mikosiko Quote Link to comment Share on other sites More sharing options...
Rita_Ruah Posted July 31, 2013 Author Share Posted July 31, 2013 Just look the indicated tutorial in the website that I provided for you early... there are several examples of how to use the FPDF class I managed to do it in just fifteen minutes... I feel so ashamed right now... Silly me... Thank you for guiding me in the right direction! just one final question... can you tell me how to change my profile picture? Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.