Exception typ initializer on mac because of missing system.windows.forms.dll? Need PDF Script for MAC


I am trying to get a PDF creating dll to work with the Mac Intel Version. With the windows version its no problem and works fine. When I compile the Mac Intel Version I get a warning:

System.Windows.Forms.dll assembly is referenced by user code, but is not supported on StandaloneOSXIntel Platform. Various failures might follow.

these are my includes:
using System.IO;
using System.Configuration;
using System.Globalization;

using PdfSharp;
using PdfSharp.Drawing;
using PdfSharp.Pdf;
using PdfSharp.Pdf.IO;
using PdfSharp.Drawing.Layout;
using PdfSharp.Pdf.Advanced;

the variables and constructor:

    public class ReportMakerPDF : MonoBehaviour {
public int rowCountPage = 750; //275
public int rowCountPageMin = 650;
public int rowCntNewPage = 3;
public int rowCntNewPageStart = 2;

private static XGraphics[] xPages = new XGraphics[1];
private static PdfPage curPage = new PdfPage();
private static int pageIndex = 0;
private static ReportMakerPDF instance = null; // Setup singleton.    

/// <summary>
/// Methode singleton.
/// </summary>
public static ReportMakerPDF Instance {
	get { return instance; }
	set { instance = value; }

/// <summary>
/// Konstruktor.
/// </summary>
public ReportMakerPDF() {
	instance = this;

I have no Idee which function needs the Forms.dll, but could this be the reason for the exception? The exception occurs when I call a function in the Class (Also creating the Class at the same time).

Does Anyone have an idea how I could alternativly create a PDF with the Mac version?

Hi, I've found an export DLL which works under MAC too: http://www.francescogallorini.com/2011/02/unity-sharp-pdf/

The only problem ist, it only works with JPGs as pictures, but this can be solved: http://answers.unity3d.com/questions...#answer-148189

And it doesnt have much documentation, but if you only need a simple export, it will do (or you'll just have to look more through the source code of sharp-pdf)