how to read a pdf file and convert to image file ?
    49 views (last 30 days)
  
       Show older comments
    
i want read a pdf file using matlab and want to convert it to image file(jpeg)
can i use open(filename)for opening and saveas for converting pdf to image
0 Comments
Answers (2)
  Stefanie Schwarz
    
 on 5 Jan 2021
        There is a way to import a PDF as image in MATLAB by making use of the Apache PDFBox library that we ship. Please see the following post for the code:
0 Comments
  Stephen23
      
      
 on 26 Feb 2015
        You might like to read this:
2 Comments
  Massimo Ciacci
 on 12 Mar 2020
				
      Edited: Massimo Ciacci
 on 12 Mar 2020
  
			I'm also searching for this since an hour now. So far I cound not find any solution to this. The link  suggested above is a dead end, even 5 years later.
I considered ImageMagick command line but I could not even get that one to work, I'm a noob when it comes to mingw and cygwin... 
  Stephen23
      
      
 on 13 Mar 2020
				
      Edited: Stephen23
      
      
 on 14 Mar 2020
  
			"So far I cound not find any solution to this."
There is no general solution to extracting data from a PDF. The link clearly explains why.
"The link  suggested above is a dead end, even 5 years later."
In fact using PDFs is a dead-end. They are not a data-exchange format. You might have some luck with OCR.
See Also
Categories
				Find more on Convert Image Type in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


