This commit is contained in:
parent
09139f8595
commit
639895f46f
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user