GetNextImage
内容
[
隐藏
]GetNextImage(string)
从 PDF 文档中检索下一个图像。注意:ExtractImage 必须在使用此方法之前调用。
public bool GetNextImage(string outputFile)
范围 | 类型 | 描述 |
---|---|---|
outputFile | String | 将存储图像的文件 |
返回值
True 是图像被成功提取
例子
PdfExtractor extractor = new PdfExtractor();
extractor.BindPdf("sample.pdf");
extractor.ExtractImage();
int i = 1;
while (extractor.HasNextImage())
{
extractor.GetNextImage("image-" + i +".pdf");
}
也可以看看
- class PdfExtractor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
GetNextImage(string, ImageFormat)
从 PDF 文档中检索具有给定图像格式的下一个图像。注意:ExtractImage 必须在使用此方法之前调用。
public bool GetNextImage(string outputFile, ImageFormat format)
范围 | 类型 | 描述 |
---|---|---|
outputFile | String | 将存储图像的文件 |
format | ImageFormat | 图像的格式。 |
返回值
True 是图像被成功提取
也可以看看
- class PdfExtractor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
GetNextImage(Stream, ImageFormat)
从 PDF 文件中检索下一个图像并将其存储到具有给定图像格式的流中。
public bool GetNextImage(Stream outputStream, ImageFormat format)
范围 | 类型 | 描述 |
---|---|---|
outputStream | Stream | 将保存图像数据的流 |
format | ImageFormat | 图像的格式。 |
返回值
如果图像被成功提取,则为真。
也可以看看
- class PdfExtractor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
GetNextImage(Stream)
从 PDF 文件中检索下一个图像并将其存储到流中。
public bool GetNextImage(Stream outputStream)
范围 | 类型 | 描述 |
---|---|---|
outputStream | Stream | 将保存图像数据的流 |
返回值
如果图像被成功提取,则为真。
也可以看看
- class PdfExtractor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF