This commit is contained in:
Kathy Ruffing 2012-06-08 13:22:56 +00:00
parent 09139f8595
commit 639895f46f

View File

@ -400,7 +400,27 @@ namespace Volian.Print.Library
CreateStepPdf(mySection, cb); CreateStepPdf(mySection, cb);
} }
else else
CreateWordDocPdf(cb, mySection, ref readerWord, ref myPdfFile);
}
}
if (_MyHelper.BackgroundFile != null)
{ {
_MyHelper.MySvg = null;
while (cb.PdfWriter.CurrentPageNumber <= _MyHelper.BackgroundPageCount)
{
PrintTextMessage(cb, "No Proms Output", _TextLayer);
cb.PdfDocument.NewPage(); // only have 16bit pages left (for DebugMode)
}
}
OnStatusChanged(myProcedure.DisplayNumber + " PDF Creation Completed", PromsPrinterStatusType.Progress, progress);
CloseDocument(cb, outputFileName);
_MyHelper = null;
return outputFileName;
}
public void CreateWordDocPdf(PdfContentByte cb, SectionInfo mySection, ref PdfReader readerWord, ref string myPdfFile)
{
_MyHelper.MySection = mySection;
myPdfFile = BuildMSWordPDF(mySection); myPdfFile = BuildMSWordPDF(mySection);
try try
{ {
@ -471,22 +491,6 @@ namespace Volian.Print.Library
cb.PdfDocument.NewPage(); // can we put out 'error on page'? cb.PdfDocument.NewPage(); // can we put out 'error on page'?
} }
} }
}
}
if (_MyHelper.BackgroundFile != null)
{
_MyHelper.MySvg = null;
while (cb.PdfWriter.CurrentPageNumber <= _MyHelper.BackgroundPageCount)
{
PrintTextMessage(cb, "No Proms Output", _TextLayer);
cb.PdfDocument.NewPage(); // only have 16bit pages left (for DebugMode)
}
}
OnStatusChanged(myProcedure.DisplayNumber + " PDF Creation Completed", PromsPrinterStatusType.Progress, progress);
CloseDocument(cb, outputFileName);
_MyHelper = null;
return outputFileName;
}
private void GenerateTOC(SectionInfo tocSection, ProcedureInfo myProcedure, PdfContentByte cb, PdfLayer textLayer) private void GenerateTOC(SectionInfo tocSection, ProcedureInfo myProcedure, PdfContentByte cb, PdfLayer textLayer)
{ {