how to read a pdf file and convert to image file ?

조회 수: 136(최근 30일)
priya
priya 2015년 2월 26일
답변: Stefanie Schwarz 2021년 1월 5일
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

답변(2개)

Stefanie Schwarz
Stefanie Schwarz 2021년 1월 5일
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:

Stephen
Stephen 2015년 2월 26일
  댓글 수: 2
Stephen
Stephen 2020년 3월 13일
"So far I cound not find any solution to this."
Did you try extractfiletext as mizuki suggested?
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.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by