private void AddStylesheetClasses(XmlDocument dom) { HtmlDom.AddPublishClassToBody(dom); if (LayoutPagesForRightToLeft) { HtmlDom.AddRightToLeftClassToBody(dom); } HtmlDom.AddHidePlaceHoldersClassToBody(dom); if (BookSelection.CurrentSelection.GetDefaultBookletLayoutMethod() == PublishModel.BookletLayoutMethod.Calendar) { HtmlDom.AddCalendarFoldClassToBody(dom); } }
private TempFile MakeFinalHtmlForPdfMaker() { PdfFilePath = GetPdfPath(Path.GetFileName(_currentlyLoadedBook.FolderPath)); XmlDocument dom = BookSelection.CurrentSelection.GetDomForPrinting(BookletPortion, _currentBookCollectionSelection.CurrentSelection, _bookServer); HtmlDom.AddPublishClassToBody(dom); //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, PageLayout); PageLayout.UpdatePageSplitMode(dom); XmlHtmlConverter.MakeXmlishTagsSafeForInterpretationAsHtml(dom); return(BloomTemp.TempFileUtils.CreateHtm5FromXml(dom)); }