Append
内容
[
隐藏
]Append(Stream, Stream[], int, int, Stream)
追加页面,这些页面是从 portStreams 中的文档数组中选择的。 结果文档包括 firstInputFile 和 startPage 到 endPage 范围内的所有 portStreams 文档页面。
public bool Append(Stream inputStream, Stream[] portStreams, int startPage, int endPage,
Stream outputStream)
范围 | 类型 | 描述 |
---|---|---|
inputStream | Stream | 输入 PDF 流。 |
portStreams | Stream[] | 要从中复制页面的文档。 |
startPage | Int32 | 页面从 portStreams 文档开始。 |
endPage | Int32 | 页面以 portStreams 文件结尾。 |
outputStream | Stream | 输出 PDF 流。 |
返回值
真为成功,或为假。
例子
PdfFileEditor fileEditor = new PdfFileEditor();
Stream instream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream stream1 = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read);
Stream stream2 = new FileStream("file2.pdf", FileMode.Open, FileAccess.Read);
Stream outstream = new FileStream("outfile.pdf", FileMode.Create, FileAccess.Write);
fileEditor.Append(instream, new Stream[] { stream1, stream2}, 3, 5, outstream);
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
Append(string, string[], int, int, string)
附加页面,这些页面是从 portFiles 文档中选择的。 结果文档包括 firstInputFile 和所有 portFiles 文档页面在 startPage 到 endPage 范围内。
public bool Append(string inputFile, string[] portFiles, int startPage, int endPage,
string outputFile)
范围 | 类型 | 描述 |
---|---|---|
inputFile | String | 输入PDF文件。 |
portFiles | String[] | 要从中复制页面的文档。 |
startPage | Int32 | 页面从 portFiles 文档开始。 |
endPage | Int32 | 页面以 portFiles 文件结尾。 |
outputFile | String | 输出 PDF 文档。 |
返回值
如果操作成功则为真。
例子
PdfFileEditor fileEditor = new PdfFileEditor();
fileEditor.Append("input.pdf", new string[] { "file1.pdf", "file2.pdf"}, 3, 5, "outfile.pdf");
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
Append(string, string, int, int, string)
在portFile 的firstInputFile 的末尾追加从startPage 到endPage 范围内从portFile 中选择的页面。
public bool Append(string inputFile, string portFile, int startPage, int endPage, string outputFile)
范围 | 类型 | 描述 |
---|---|---|
inputFile | String | 输入PDF文件。 |
portFile | String | 来自 Pdf 文件的页面。 |
startPage | Int32 | 页面从 portFile 开始。 |
endPage | Int32 | 页面以 portFile 结尾。 |
outputFile | String | 输出 PDF 文档。 |
返回值
如果操作成功则为真。
例子
PdfFileEditor fileEditor = new PdfFileEditor();
fileEditor.Append("input.pdf", "file1.pdf", 3, 5, "outfile.pdf");
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
Append(Stream, Stream, int, int, Stream)
在portStream 的firstInputStream 末尾追加从startPage 到endPage 范围内从portStream 中选择的页面。
public bool Append(Stream inputStream, Stream portStream, int startPage, int endPage,
Stream outputStream)
范围 | 类型 | 描述 |
---|---|---|
inputStream | Stream | 输入文件流。 |
portStream | Stream | 来自 Pdf 文件流的页面。 |
startPage | Int32 | 页面从 portFile Stream 开始。 |
endPage | Int32 | 页面以 portFile Stream 结束。 |
outputStream | Stream | 输出 PDF 文件流。 |
返回值
真为成功,或为假。
例子
PdfFileEditor fileEditor = new PdfFileEditor();
Stream instream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream stream1 = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read);
Stream outstream = new FileStream("outfile.pdf", FileMode.Create, FileAccess.Write);
fileEditor.Append(instream, stream1, 3, 5, "outfile.pdf");
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
Append(Stream, Stream[], int, int, HttpResponse)
将文档附加到源文档并将结果保存到响应对象中。
public bool Append(Stream inputStream, Stream[] portStreams, int startPage, int endPage,
HttpResponse response)
范围 | 类型 | 描述 |
---|---|---|
inputStream | Stream | 包含源文档的流。 |
portStreams | Stream[] | 带有要附加的文档的流数组。 |
startPage | Int32 | 附加页的起始页。 |
endPage | Int32 | 附加页的结束页。 |
response | HttpResponse | 将保存文档的响应对象。 |
返回值
如果操作成功,则为 true。
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
Append(string, string[], int, int, HttpResponse)
将文档附加到源文档并将结果保存到 HttpResponse 对象中。
public bool Append(string inputFile, string[] portFiles, int startPage, int endPage,
HttpResponse response)
范围 | 类型 | 描述 |
---|---|---|
inputFile | String | 包含源文档的文件名。 |
portFiles | String[] | 包含附加文档的文件名数组。 |
startPage | Int32 | 附加页的起始页。 |
endPage | Int32 | 附加页的结束页。 |
response | HttpResponse | 将保存文档的响应对象。 |
返回值
如果操作成功,则为 true。
也可以看看
- class PdfFileEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF