SplitToEnd
内容
[
隐藏
]SplitToEnd(string, int, string)
从位置拆分,并将后部保存为新文件。
public bool SplitToEnd(string inputFile, int location, string outputFile)
范围 | 类型 | 描述 |
---|---|---|
inputFile | String | 源 PDF 文件。 |
location | Int32 | 分裂位置。 |
outputFile | String | 输出 Pdf 文件路径。 |
返回值
真为成功,或为假。
例子
PdfFileEditor pfe = new PdfFileEditor();
pfe.SplitToEnd("input.pdf", 5, "out.pdf");
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
SplitToEnd(Stream, int, Stream)
从指定位置拆分,并将后面部分保存为新文件 Stream.
public bool SplitToEnd(Stream inputStream, int location, Stream outputStream)
范围 | 类型 | 描述 |
---|---|---|
inputStream | Stream | 源 Pdf 文件流。 |
location | Int32 | 分裂位置。 |
outputStream | Stream | 输出 PDF 文件流。 |
返回值
真为成功,或为假。
评论
除非指定了 CloseConcatedStreams,否则不会在此操作后关闭流。
例子
PdfFileEditor pfe = new PdfFileEditor();
Stream sourceStream = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read);
Stream outStream = new FileStream("out.pdf", FileMode.Create, FileAccess.Write);
pfe.SplitToEnd(sourceStream, 5, outStream);
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
SplitToEnd(Stream, int, HttpResponse)
从指定位置拆分,并将后面部分保存到 HttpResponse 对象中。
public bool SplitToEnd(Stream inputStream, int location, HttpResponse response)
范围 | 类型 | 描述 |
---|---|---|
inputStream | Stream | 源文档流。 |
location | Int32 | 分裂点。 |
response | HttpResponse | HttpResponse 对象。 |
返回值
如果拆分成功,则为 true。
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
SplitToEnd(string, int, HttpResponse)
从指定位置拆分,并将后面部分保存到 HttpResponse 对象中。
public bool SplitToEnd(string inputFile, int location, HttpResponse response)
范围 | 类型 | 描述 |
---|---|---|
inputFile | String | 源文件名。 |
location | Int32 | 分裂点。 |
response | HttpResponse | HttpResponse 对象。 |
返回值
如果操作成功则为真。
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF