With prior versions there has been no problem to open a created PDF with another tool while the program which created it is still running. Now with beta 3 you either have to wait for the program to exit or kill the process.
You can test this by using the following code eg. in a Console application:
Code:
using (var doc = new PdfDocument())
{
var page = doc.AddPage();
XGraphics gfx = XGraphics.FromPdfPage(page);
XFont font = new XFont("Verdana", 20, XFontStyle.Bold);
gfx.DrawString("Hello, World!", font, XBrushes.Black, new XRect(0, 0, page.Width, page.Height), XStringFormats.Center);
page.Close();
doc.Save(@"C:\Temp\test.pdf");
}
Console.ReadKey();
Put a breakpoint on ReadKey and try to open the created PDF using your PDF reader. With beta 3 it will tell you the file is locked.