This commit is contained in:
@@ -172,7 +172,7 @@ namespace Volian.Print.Library
|
||||
DateTime tStart = DateTime.Now;
|
||||
string MSWordFile = null;
|
||||
if (section.MyContent.ContentEntryCount == 1)
|
||||
{
|
||||
{
|
||||
MSWordFile = MSWordToPDF.GetDocPdf(section, PrintOverride.TextColor);
|
||||
OnStatusChanged("MSWord converted to PDF " + MSWordFile, PromsPrinterStatusType.MSWordToPDF);
|
||||
}
|
||||
@@ -182,6 +182,12 @@ namespace Volian.Print.Library
|
||||
{
|
||||
cb.BeginLayer(layer);
|
||||
iTextSharp.text.Image image = iTextSharp.text.Image.GetInstance(page);
|
||||
|
||||
// the following checks if the content of page is landscape and rotates because we're printing on
|
||||
// a portrait page. If, at some point, we print a total landscape page, not a mix, this will need
|
||||
// re-evaluated.
|
||||
if (page.Height < page.Width)
|
||||
image.RotationDegrees = 90F;
|
||||
image.SetAbsolutePosition(xOff, yOff);
|
||||
cb.AddImage(image);
|
||||
cb.EndLayer();
|
||||
|
Reference in New Issue
Block a user