私は現在、実行中の X サーバーなしで実行できる PDF ライブラリを見つけようとしています。私はすでに次のことを試しました...
- Migradoc/PDFSharp (X が必要)
- ITextSharp (X が必要)
- SharpPDF (動作する可能性がありますが、もう少し機能を備えたものを探しています)
ライブラリは、オープンソースまたは無料である必要はありません。
私のソリューションは Apache2.2 mod_mono で動作します。
そのようなライブラリを知っている人はいますか?
- - 編集 - -
私のテストサーバーでエラーを生成する itextsharp に使用されるテスト コードを以下に示します (Migradoc と SharpPDF のコードも同様に単純です)。
using System;
using sharp=iTextSharp.text;
using iTextSharp.text.pdf;
using iTextSharp.text.xml;
using System.IO;
namespace pdftester
{
public static class ITextSharpTest
{
public static void HelloWorld(string filename)
{
Stream stream = new FileStream(filename, FileMode.Create);
sharp.Document document = new sharp.Document();
PdfWriter.GetInstance(document, stream);
document.Open();
document.Add(new sharp.Paragraph("Hello world"));
document.Close();
}
}
}