views:

29

answers:

1

Hi,

I'm currently trying to find a PDF library which will run without a running X server. I have already tried the following...

  1. Migradoc/PDFSharp (requires X)
  2. ITextSharp (requires X)
  3. SharpPDF (might work, but I am looking for something with a bit more features)

The library does not have to be opensource or free.

My solution runs on Apache2.2 mod_mono.

Does anyone know of such library?

--- edit ---

The test code used for itextsharp, which produces errors on my testserver is listed below (the code for Migradoc and SharpPDF is just as simple):

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();
        }
    }    
}
A: 

Hi again,

Since no one has given a definitive answer to the thread, i'm closing it.

I've chosen to go the sharpPDF way, as it's the only one supported on my server. I'll simply have to implement what's needed for my project.

Thanks for the help received so far :)

iSharp