Bloom.Publish.PublishModel.MakeFinalHtmlForPdfMaker C# (CSharp) Method

MakeFinalHtmlForPdfMaker() private method

private MakeFinalHtmlForPdfMaker ( ) : SimulatedPageFile
return Bloom.Api.SimulatedPageFile
        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);
        }