Skip to content
Browse files

Pulled in Dash's changes and updated the code a little because the ol…

…d method for generating a file was breaking when I tested it
  • Loading branch information...
1 parent 977ab91 commit 9d22fb783ac247c48dae2e76a0578becc6785585 unknown committed Apr 9, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 GhostScriptSharp/GhostscriptSharp.cs
View
8 GhostScriptSharp/GhostscriptSharp.cs
@@ -87,16 +87,12 @@ private static void CallAPI(string[] args)
CreateAPIInstance(out gsInstancePtr, IntPtr.Zero);
try
{
-
-
-
int result = InitAPI(gsInstancePtr, args.Length, args);
if (result < 0)
{
throw new ExternalException("Ghostscript conversion error", result);
}
-
}
finally
{
@@ -140,6 +136,10 @@ private static void Cleanup(IntPtr gsInstancePtr)
s.Page.Start = firstPage;
s.Page.End = lastPage;
s.Resolution = new System.Drawing.Size(width, height);
+
+ Settings.GhostscriptPageSize pageSize = new Settings.GhostscriptPageSize();
+ pageSize.Native = GhostscriptSharp.Settings.GhostscriptPageSizes.a7;
+ s.Size = pageSize;
return GetArgs(inputPath, outputPath, s);
}

0 comments on commit 9d22fb7

Please sign in to comment.
Something went wrong with that request. Please try again.