public void DebugCurrentPDFLayout()
{
// var dom = BookSelection.CurrentSelection.GetDomForPrinting(BookletPortion, _currentBookCollectionSelection.CurrentSelection, _bookServer);
//
// SizeAndOrientation.UpdatePageSizeAndOrientationClasses(dom, PageLayout);
// PageLayout.UpdatePageSplitMode(dom);
//
// XmlHtmlConverter.MakeXmlishTagsSafeForInterpretationAsHtml(dom);
// var tempHtml = BloomTemp.TempFile.CreateHtm5FromXml(dom); //nb: we intentially don't ever delete this, to aid in debugging
// //var tempHtml = TempFile.WithExtension(".htm");
//
// var settings = new XmlWriterSettings {Indent = true, CheckCharacters = true};
// using (var writer = XmlWriter.Create(tempHtml.Path, settings))
// {
// dom.WriteContentTo(writer);
// writer.Close();
// }
// System.Diagnostics.Process.Start(tempHtml.Path);
var htmlFilePath = MakeFinalHtmlForPdfMaker().Key;
if (SIL.PlatformUtilities.Platform.IsWindows)
Process.Start("Firefox.exe", '"' + htmlFilePath + '"');
else
Process.Start("xdg-open", '"' + htmlFilePath + '"');
}