フッターコンテンツにスキップ
製品比較

IronPDFとGroupDocsの比較

Comparing IronPDF and GroupDocs for PDF Document Automation

GroupDocsとIronPDFは、エンジニアにドキュメント自動化のためのツールを提供し、PDFドキュメントの作成、編集、フォーマット、印刷を可能にするクロスプラットフォームアプリケーションです。 .NETおよび.NET Coreでプロジェクトを構築する際、開発者はプロジェクトのニーズに最も適したツールを選択しなければなりません。

開発者は利用可能なライブラリやツールについて十分に情報を得ておく必要があり、PDFライブラリも例外ではありません。 各ライブラリには独自の強みと弱みがあり、開発者はビジネスおよびプロジェクトの要件に最適なツールを選択することが重要です。

この記事では、.NETおよび.NET Core開発者向けの最も人気のある2つのPDFライブラリ、GroupDocsとIronPDFを比較します。

IronPDFとは何ですか?

IronPDFは、.NETプラットフォーム用のC#ベースの商用PDF作成パッケージです。 HTML、CSS、画像、JavaScriptからPDFを生成し、ウェブアプリケーション、安全なイントラネット、コンソールアプリケーション、WPFアプリケーション、MVCパターンのウェブサイトに対応できる柔軟性を持っています。 IronPDFは、バージョン4から始まるすべての.NET Frameworkおよび.NET Coreプロジェクトと互換性があります。詳細についてはIronPDF公式ウェブサイトをご覧ください。

GroupDocsライブラリとは何ですか?

GroupDocs.Editor APIは、開発者に人気のあるHTMLエディター(無料および有料の両方)とシームレスにインターフェイスする簡単なアプリケーションを作成できるクロスプラットフォーム.NETライブラリで、多様なファイル形式のドキュメントを変換、編集、操作する機能を提供します。 その機能について詳しくはこちらをご覧ください。

PDFドキュメントへの注釈付け

GroupDocs.Annotation

GroupDocs.Annotation for .NETは、C#、ASP.NET、およびその他の.NETテクノロジーを使用して、図形の描画、テキストと画像の追加、テキストのハイライトなどの文書注釈機能を実行できるアプリケーションを開発者が作成できるようにします。 注釈は操作され、元のファイルタイプに保存することができます。

using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using GroupDocs.Annotation;
using GroupDocs.Annotation.Models;
using GroupDocs.Annotation.Models.AnnotationModels;

// Initialize list of AnnotationInfo
List<AnnotationInfo> annotations = new List<AnnotationInfo>();

// Initialize text annotation
AnnotationInfo textAnnotation = new AnnotationInfo
{
    Box = new Rectangle((float)265.44, (float)153.86, 206, 36),
    Type = AnnotationType.Text
};

// Add annotation to list
annotations.Add(textAnnotation);

// Get input file stream
using Stream inputFile = new FileStream("D:/input.pdf", FileMode.Open, FileAccess.ReadWrite);

// Export annotation and save the output file
CommonUtilities.SaveOutputDocument(inputFile, annotations, DocumentType.Pdf);
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using GroupDocs.Annotation;
using GroupDocs.Annotation.Models;
using GroupDocs.Annotation.Models.AnnotationModels;

// Initialize list of AnnotationInfo
List<AnnotationInfo> annotations = new List<AnnotationInfo>();

// Initialize text annotation
AnnotationInfo textAnnotation = new AnnotationInfo
{
    Box = new Rectangle((float)265.44, (float)153.86, 206, 36),
    Type = AnnotationType.Text
};

// Add annotation to list
annotations.Add(textAnnotation);

// Get input file stream
using Stream inputFile = new FileStream("D:/input.pdf", FileMode.Open, FileAccess.ReadWrite);

// Export annotation and save the output file
CommonUtilities.SaveOutputDocument(inputFile, annotations, DocumentType.Pdf);
Imports System
Imports System.Collections.Generic
Imports System.Drawing
Imports System.IO
Imports GroupDocs.Annotation
Imports GroupDocs.Annotation.Models
Imports GroupDocs.Annotation.Models.AnnotationModels

' Initialize list of AnnotationInfo
Private annotations As New List(Of AnnotationInfo)()

' Initialize text annotation
Private textAnnotation As New AnnotationInfo With {
	.Box = New Rectangle(CSng(265.44), CSng(153.86), 206, 36),
	.Type = AnnotationType.Text
}

' Add annotation to list
annotations.Add(textAnnotation)

' Get input file stream
Using inputFile As Stream = New FileStream("D:/input.pdf", FileMode.Open, FileAccess.ReadWrite)
	
	' Export annotation and save the output file
	CommonUtilities.SaveOutputDocument(inputFile, annotations, DocumentType.Pdf)
End Using
$vbLabelText   $csharpLabel

IronPDF

IronPDFは、IronPdf.PdfDocument.AddTextAnnotationのようなメソッドを使用してプログラムでPDFドキュメントに注釈を付けることを許可します。

using System;
using IronPdf;

class Program
{
    static void Main()
    {
        // Create a PDF annotation object
        PdfDocument pdf = PdfDocument.FromFile("existing.pdf");
        var annotation = new IronPdf.Annotations.TextAnnotation()
        {
            Title = "This is the major title",
            Subject = "This is a subtitle",
            Contents = "This is the long 'sticky note' comment content...",
            Icon = IronPdf.Annotations.TextAnnotation.AnnotationIcon.Help,
            Opacity = 0.9,
            Printable = false,
            Hidden = false,
            OpenByDefault = true,
            ReadOnly = false,
            Rotateable = true
        };

        // Add the annotation "sticky note" to a specific page and location within any new or existing PDF.
        pdf.AddTextAnnotation(annotation, 1, 150, 250);
        pdf.SaveAs("existing.pdf");
    }
}
using System;
using IronPdf;

class Program
{
    static void Main()
    {
        // Create a PDF annotation object
        PdfDocument pdf = PdfDocument.FromFile("existing.pdf");
        var annotation = new IronPdf.Annotations.TextAnnotation()
        {
            Title = "This is the major title",
            Subject = "This is a subtitle",
            Contents = "This is the long 'sticky note' comment content...",
            Icon = IronPdf.Annotations.TextAnnotation.AnnotationIcon.Help,
            Opacity = 0.9,
            Printable = false,
            Hidden = false,
            OpenByDefault = true,
            ReadOnly = false,
            Rotateable = true
        };

        // Add the annotation "sticky note" to a specific page and location within any new or existing PDF.
        pdf.AddTextAnnotation(annotation, 1, 150, 250);
        pdf.SaveAs("existing.pdf");
    }
}
Imports System
Imports IronPdf

Friend Class Program
	Shared Sub Main()
		' Create a PDF annotation object
		Dim pdf As PdfDocument = PdfDocument.FromFile("existing.pdf")
		Dim annotation = New IronPdf.Annotations.TextAnnotation() With {
			.Title = "This is the major title",
			.Subject = "This is a subtitle",
			.Contents = "This is the long 'sticky note' comment content...",
			.Icon = IronPdf.Annotations.TextAnnotation.AnnotationIcon.Help,
			.Opacity = 0.9,
			.Printable = False,
			.Hidden = False,
			.OpenByDefault = True,
			.ReadOnly = False,
			.Rotateable = True
		}

		' Add the annotation "sticky note" to a specific page and location within any new or existing PDF.
		pdf.AddTextAnnotation(annotation, 1, 150, 250)
		pdf.SaveAs("existing.pdf")
	End Sub
End Class
$vbLabelText   $csharpLabel

IronPDFの注釈機能には、色の選択、要素のサイズ変更、不透明度設定、テキスト編集などのオプションが含まれています。

ファイル形式の変換

ドキュメント処理において、特定のファイル形式をPDFに変換することは重要です。 ここでは、GroupDocsとIronPDFがどのようにファイル変換を行うかを比較します。

GroupDocsを使用したファイルのPDFへの変換

GroupDocs Conversion APIは、各種ドキュメントタイプ(MS WordやExcelなど)を追加の生産性スイートを必要とせずにPDFに変換することを可能にします。

C#でXLSBをPDFに変換

using System;
using GroupDocs.Conversion.Options.Convert;

namespace ConvertXlsbToPdfInCSharp
{
    class Program
    {
        public static void Main(string[] args)
        {
            // Load license
            string licensePath = "GroupDocs.Conversion.lic";
            GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
            lic.SetLicense(licensePath);

            // Load source XLSB for conversion
            var converter = new GroupDocs.Conversion.Converter("sample.xlsb");

            // Conversion options
            var convertOptions = new PdfConvertOptions();

            // Convert XLSB to PDF
            converter.Convert("converted.pdf", convertOptions);
            Console.WriteLine("Conversion complete.");
        }
    }
}
using System;
using GroupDocs.Conversion.Options.Convert;

namespace ConvertXlsbToPdfInCSharp
{
    class Program
    {
        public static void Main(string[] args)
        {
            // Load license
            string licensePath = "GroupDocs.Conversion.lic";
            GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
            lic.SetLicense(licensePath);

            // Load source XLSB for conversion
            var converter = new GroupDocs.Conversion.Converter("sample.xlsb");

            // Conversion options
            var convertOptions = new PdfConvertOptions();

            // Convert XLSB to PDF
            converter.Convert("converted.pdf", convertOptions);
            Console.WriteLine("Conversion complete.");
        }
    }
}
Imports System
Imports GroupDocs.Conversion.Options.Convert

Namespace ConvertXlsbToPdfInCSharp
	Friend Class Program
		Public Shared Sub Main(ByVal args() As String)
			' Load license
			Dim licensePath As String = "GroupDocs.Conversion.lic"
			Dim lic As New GroupDocs.Conversion.License()
			lic.SetLicense(licensePath)

			' Load source XLSB for conversion
			Dim converter = New GroupDocs.Conversion.Converter("sample.xlsb")

			' Conversion options
			Dim convertOptions = New PdfConvertOptions()

			' Convert XLSB to PDF
			converter.Convert("converted.pdf", convertOptions)
			Console.WriteLine("Conversion complete.")
		End Sub
	End Class
End Namespace
$vbLabelText   $csharpLabel

HTMLをPDFに変換

GroupDocsは、HTMLドキュメントをPDF形式に変換することができ、ウェブコンテンツを印刷可能なアーカイブに変換するのに便利です。 HTMLをPDFに変換する詳細なチュートリアルはこちらをご覧ください。

using System;
using GroupDocs.Conversion.Options.Convert;

namespace ConvertHtmlToPdfInCSharp
{
    class Program
    {
        public static void Main(string[] args)
        {
            // Use license
            string licensePath = "GroupDocs.Conversion.lic";
            GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
            lic.SetLicense(licensePath);

            // Load HTML document
            var converter = new GroupDocs.Conversion.Converter("sample.html");

            // PDF options
            var convertOptions = new PdfConvertOptions();

            // Convert HTML to PDF
            converter.Convert("converted.pdf", convertOptions);
            Console.WriteLine("Conversion complete.");
        }
    }
}
using System;
using GroupDocs.Conversion.Options.Convert;

namespace ConvertHtmlToPdfInCSharp
{
    class Program
    {
        public static void Main(string[] args)
        {
            // Use license
            string licensePath = "GroupDocs.Conversion.lic";
            GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
            lic.SetLicense(licensePath);

            // Load HTML document
            var converter = new GroupDocs.Conversion.Converter("sample.html");

            // PDF options
            var convertOptions = new PdfConvertOptions();

            // Convert HTML to PDF
            converter.Convert("converted.pdf", convertOptions);
            Console.WriteLine("Conversion complete.");
        }
    }
}
Imports System
Imports GroupDocs.Conversion.Options.Convert

Namespace ConvertHtmlToPdfInCSharp
	Friend Class Program
		Public Shared Sub Main(ByVal args() As String)
			' Use license
			Dim licensePath As String = "GroupDocs.Conversion.lic"
			Dim lic As New GroupDocs.Conversion.License()
			lic.SetLicense(licensePath)

			' Load HTML document
			Dim converter = New GroupDocs.Conversion.Converter("sample.html")

			' PDF options
			Dim convertOptions = New PdfConvertOptions()

			' Convert HTML to PDF
			converter.Convert("converted.pdf", convertOptions)
			Console.WriteLine("Conversion complete.")
		End Sub
	End Class
End Namespace
$vbLabelText   $csharpLabel

IronPDFを使用したファイルのPDFへの変換

IronPDFは、Chromiumエンジンを利用してHTMLを正確にPDFに変換します。

HTMLをPDFに

IronPDFは、HTMLコンテンツを直接PDFにシンプルな実装で変換できます。

using IronPdf;

var renderer = new IronPdf.ChromePdfRenderer();
using var pdf = renderer.RenderHtmlAsPdf("<h1>Html with CSS and Images</h1>");
pdf.SaveAs("pixel-perfect.pdf");
using IronPdf;

var renderer = new IronPdf.ChromePdfRenderer();
using var pdf = renderer.RenderHtmlAsPdf("<h1>Html with CSS and Images</h1>");
pdf.SaveAs("pixel-perfect.pdf");
Imports IronPdf

Private renderer = New IronPdf.ChromePdfRenderer()
Private pdf = renderer.RenderHtmlAsPdf("<h1>Html with CSS and Images</h1>")
pdf.SaveAs("pixel-perfect.pdf")
$vbLabelText   $csharpLabel

もっと変革力を求めるなら、IronPDFのHTMLからPDFへの変換に関するドキュメントをご確認ください。

URLをPDFに

IronPDFを使用すると、カスタムブラウザエンジンを用いて、ウェブURL全体をPDF形式に変換することが簡単です。

using IronPdf;

IronPdf.ChromePdfRenderer renderer = new IronPdf.ChromePdfRenderer();
using var pdf = renderer.RenderUrlAsPdf("https://ironpdf.com/");

pdf.SaveAs("url.pdf");
using IronPdf;

IronPdf.ChromePdfRenderer renderer = new IronPdf.ChromePdfRenderer();
using var pdf = renderer.RenderUrlAsPdf("https://ironpdf.com/");

pdf.SaveAs("url.pdf");
Imports IronPdf

Private renderer As New IronPdf.ChromePdfRenderer()
Private pdf = renderer.RenderUrlAsPdf("https://ironpdf.com/")

pdf.SaveAs("url.pdf")
$vbLabelText   $csharpLabel

IronPDFを使用したURLからPDFへの変換に関する詳細については、公式APIガイドをご覧ください。

結論

IronPDFとGroupDocsは、それぞれPDFドキュメント処理において独自の利点を提供します。 IronPDFは、簡易さと使いやすさに優れ、最小限のセットアップで効果的なHTMLレンダリングを提供します。 GroupDocsは、PDF以外にも幅広いドキュメントタイプを網羅し、多様な変換要求に適しています。 IronPDFのライセンスは透明で、IronPDFの価格ページでさまざまなプロジェクトサイズや要件に応じたオプションを提供しています。

PDF署名やドキュメント処理機能の需要が高まる中、これらのライブラリの強みを理解することで、開発者はニーズに合った適切なツールを選択することができます。 Iron Softwareの継続的な革新と機能についてもっと詳しく知りたい場合はこちらをご覧ください。

ご注意GroupDocsはそれぞれの所有者の登録商標です。 このサイトはGroupDocsと提携しておらず、承認または支援も受けていません。 すべての製品名、ロゴ、およびブランドは各所有者の所有物です。 比較は情報提供のみを目的としており、執筆時点で公開されている情報を反映しています。

よくある質問

どのようにして.NETライブラリを使用してHTMLをPDFに変換できますか?

IronPDF の RenderHtmlAsPdf メソッドを使用して、HTML 文字列を PDF に変換できます。HTML ファイルを変換するには、RenderHtmlFileAsPdf メソッドが利用可能です。

IronPDF は PDF 注釈にどのような機能を提供していますか?

IronPDF は強力な注釈機能を提供しており、テキスト注釈の追加、色のカスタマイズ、要素のサイズ変更、透明度の設定、プログラムによる PDF 内のテキスト編集を可能にします。

.NET ライブラリのうち、より広範なドキュメント形式での変換をサポートしているのはどれですか?

GroupDocs はより広範なドキュメント形式をサポートしており、MS Word、Excel などのファイルを PDF に変換できるため、多様なドキュメント変換ニーズに最適です。

IronPDF はウェブ URL の PDF 変換をどのように処理しますか?

IronPDF は独自のブラウザエンジンを使用してウェブ URL 全体を PDF 形式に変換できるため、オンライン コンテンツから PDF を生成するプロセスを簡素化します。

PDF ドキュメント自動化に IronPDF を使用する利点は何ですか?

IronPDF は、最小限のセットアップでのシンプルさと使いやすさ、効果的な HTML レンダリング、強力な注釈機能を提供し、ウェブ アプリケーションおよび MVC パターン化されたウェブサイトに適しています。

GroupDocs を使用してドキュメントに注釈を追加するにはどうすればよいですか?

GroupDocs は、図形、テキスト、画像を含むさまざまな注釈をドキュメントに追加できるようにし、複数フォーマットにわたるドキュメント操作のための包括的なツールを提供します。

PDF ライブラリを選ぶ際に開発者は何を考慮すべきですか?

開発者は独自のプロジェクト要件を評価し、IronPDF および GroupDocs のようなライブラリの強みを比較して、最もニーズに合ったものを選ぶべきです。

IronPDF はウェブ アプリケーション内での安全なドキュメント作成に使用できますか?

はい、IronPDF はウェブ アプリケーション内で安全な PDF ドキュメントを生成するのに適しており、HTML、CSS、JavaScript を正確にレンダリングする機能を活用します。

Curtis Chau
テクニカルライター

Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。

開発以外にも、CurtisはIoT(Internet of Things)への強い関心を持ち、ハードウェアとソフトウェアの統合方法を模索しています。余暇には、ゲームをしたりDiscordボットを作成したりして、技術に対する愛情と創造性を組み合わせています。