private SimulatedPageFile MakeFinalHtmlForPdfMaker()
{
PdfFilePath = GetPdfPath(Path.GetFileName(_currentlyLoadedBook.FolderPath));
var dom = BookSelection.CurrentSelection.GetDomForPrinting(BookletPortion, _currentBookCollectionSelection.CurrentSelection, _bookServer);
AddStylesheetClasses(dom.RawDom);
//we do this now becuase the publish ui allows the user to select a different layout for the pdf than what is in the book file
SizeAndOrientation.UpdatePageSizeAndOrientationClasses(dom.RawDom, PageLayout);
PageLayout.UpdatePageSplitMode(dom.RawDom);
XmlHtmlConverter.MakeXmlishTagsSafeForInterpretationAsHtml(dom.RawDom);
dom.UseOriginalImages = true; // don't want low-res images or transparency in PDF.
return EnhancedImageServer.MakeSimulatedPageFileInBookFolder(dom);
}