そのようなものを作ろうとしています:
最初のステップ:
convert img.jpg img.pdf
2番目のステップ:
pdfimages -j img.pdf img1
HEXでソース画像と抽出画像を比較すると、違いがわかります。データを失うことなくそのような変換を行う方法は?
承認された回答:
1つの方法は、pdflatexを使用することです。 convertの代わりに 。
ここではimage.texと呼ばれる追加のファイルが必要です :
\documentclass{article}
\usepackage[active,tightpage]{preview}
\usepackage{graphicx}
\PreviewMacro[{*[][]{}}]{\includegraphics}
\begin{document}
\includegraphics{img.jpg}
\end{document}
次に、pdflatex image.texを実行します image.pdfを生成します。