Ejemplo n.º 1
0
    public static void Test1()
    {
      GSRevision revision = GS.Revision;

      GS gs = new GS();

      List<string> args = gs.Arguments;

      gs.Execute();

    }
Ejemplo n.º 2
0
    static void Main()
    {
      string filename = @"..\..\..\..\PDFs\SomeLayout.pdf";

      // Create instance of Ghostscript wrapper class.
      GS gs = new GS();

      // Create image from PDF file (again: this has _nothing_ to do with PDFsharp)
      Image image = gs.PdfToPng(filename, 1, 96);

      // Show image in a PictureBox control.
      MainForm form = new MainForm();
      form.pictureBox.Image = image;

      Application.Run(form);
    }