MATLAB Answers

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

214 ビュー (過去 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 件)

Stephen Cobeldick
Stephen Cobeldick 2015 年 2 月 26 日
  2 件のコメント
Stephen Cobeldick
Stephen Cobeldick 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.

サインインしてコメントする。


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:

Community Treasure Hunt

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

Start Hunting!

Translated by