PPTX
DOCX
XLSX
PDF
ODP
PDF
PDF 文書結合ソリューション
無料のクロスプラットフォームアプリと API を使用して、複数の PDF ファイルを個別のドキュメントとして結合します。.NET、.NET コア、Java、C++、アンドロイドを使用して PDF ファイルを結合するネイティブ API
Aspose.PDF ライブラリを使用して PDF ファイルをマージする方法
PDFファイルをマージするために、機能豊富で強力で使いやすいドキュメント操作APIである Aspose.PDF APIを使用します。NuGet パッケージマネージャーを開き、Aspose.PDF を検索してインストールします。Package Manager コンソールから次のコマンドを使用することもできます。
ドキュメントデータを結合するハイコード API
.NET、.NET コア、Java、C++、アンドロイドを使用して PDF ファイルを結合するネイティブ API。 1 つ以上の PDF ドキュメントの結合は、非常に一般的な作業です。Aspose.PDF ライブラリはそれを使って素晴らしい仕事をします。この例は C# で記述されていますが、この API は VB.NET などの他の.NET プログラミング言語でも使用できます。PDF ファイルは、最初のファイルが他のドキュメントの最後に結合されるように結合されます。Aspose.PDF は、さまざまな形式のファイルを組み合わせて表示します。リンクをたどって、Aspose.PDF ライブラリとファイルを組み合わせる可能性をすべて知りましょう。
C# で PDF ファイルをマージしてみる
C# 経由で PDF を Aspose.PDF (.NET ライブラリ用) と組み合わせます。
PDF ファイルをマージするサンプルコード、C#。
// Open first document
Document pdfDocument1 = new Document(_dataDir + "Concat1.pdf");
// Open second document
Document pdfDocument2 = new Document(_dataDir + "Concat2.pdf");
// Add pages of second document to the first
document1.Pages.Add(document2.Pages);
document.Save(_dataDir+"ConcatenatedPDF.pdf");
Java経由でPDFファイルをマージしてみる
Java 経由で PDF を Java ライブラリ用の Aspose.PDF と組み合わせます。
PDFファイルをマージするサンプルコード、Java。
// Create PdfFileEditor object
PdfFileEditor fileEditor = new PdfFileEditor();
String[] files = new String[] { "file1.pdf", "file2.pdf", "pdf3.pdf" };
// Merge multiple PDF files
fileEditor.concatenate(files, "merged-pdf.pdf");
C++ で PDF ファイルをマージしてみる
C++ で PDF を C++ ライブラリ用の Aspose.PDF と組み合わせます。
PDF ファイルをマージするサンプルコード、C++。
// Open first document
auto doc1 = MakeObject<Document>(u"file1.pdf");
// Open second document
auto doc2 = MakeObject<Document>(u"file2.pdf");
// Add pages of second document to the first
doc1->get_Pages()->Add(doc2->get_Pages());
// Save concatenated output file
doc1->Save(u"merged-output.pdf");
PythonでPDFファイルをマージしてみる
PDF を Python ライブラリの.NET 用の Aspose.PDF と Python 経由で組み合わせます。
PDFファイルをマージするサンプルコード、Python。
// Open first document
Document merge_file1 = new Document("PDF1.pdf");
// Open second document
Document merge_file2 = new Document("PDF2.pdf");
// Add pages of second document to the first
merge_file1.Pages.Add(merge_file2.Pages);
// Save concatenated output file
merge_file1.Save("mergedPDF.pdf");