Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Docotic.Pdf 库 可用于从 PDF 中提取图像。
以下示例展示了如何从 PDF 中提取所有图像:
static void ExtractAllImages() { string path = ""; using (PdfDocument pdf = new PdfDocument(path)) { for (int i = 0; i < pdf.Images.Count; i++) { string imageName = string.Format("image{0}", i); string imagePath = pdf.Images[i].Save(imageName); } } }
该库不会对图像重新采样。它将以与 PDF 中完全相同的方式保存它们。
免责声明:我为 Bit Miracle 工作,该库的供应商。
Docotic.Pdf library can be used to extract images from PDFs.
Here is a sample that shows how to extract all images from a PDF:
The library won't resample images. It will save them exactly the same as in PDF.
Disclaimer: I work for Bit Miracle, vendor of the library.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
Docotic.Pdf 库 可用于从 PDF 中提取图像。
以下示例展示了如何从 PDF 中提取所有图像:
该库不会对图像重新采样。它将以与 PDF 中完全相同的方式保存它们。
免责声明:我为 Bit Miracle 工作,该库的供应商。
Docotic.Pdf library can be used to extract images from PDFs.
Here is a sample that shows how to extract all images from a PDF:
The library won't resample images. It will save them exactly the same as in PDF.
Disclaimer: I work for Bit Miracle, vendor of the library.