问题描述
我尝试过pdfsharp和itextsharp。我更喜欢pdfsharp,但似乎没有人完成从pdf文件中提取图像并以jpeg格式保存它的示例代码,对我来说最重要的是,包括提取图像的高度和宽度属性。
我已经尝试过文档中显示的示例代码,但它对我不起作用。我确信有人已完成文档中显示的不完整代码。你能带我去看那个代码吗?
我已经在visual studio 2012中使用vb.net成功编写了使用pdfsharp编写PDF文件的代码,但我使用的形式提取了图像提取整个页面。我只想要图片。
I have tried pdfsharp and itextsharp. I prefer pdfsharp, however no one seemed to finish the sample code for extracting an image from a pdf file and saving it in jpeg format and most importantly for me, to include the height and width properties of the extracted image.
I have tried the sample code shown in the documentation but it doesn't work for me. I am sure someone has completed the incomplete code shown in the documentation. Can you lead me to that code?
I have successfully written code creating PDF files using pdfsharp using vb.net in visual studio 2012 but I extracted the image using form which extracts the whole page. I want just the image.
推荐答案
这篇关于有人可以提供代码,使用pdfsharp从pdf文件中提取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!