B2018-071 Don't crash when trying to convert an invalid word document to PDF
B2018-069 Revert PDF Location to default temporary folder when running baseline testing
This commit is contained in:
parent
a2e0b9aee3
commit
98b84fdaf8
@ -533,6 +533,12 @@ namespace Volian.Print.Library
|
|||||||
NxtRCT = rct;
|
NxtRCT = rct;
|
||||||
MyContentByte.PdfDocument.NewPage();
|
MyContentByte.PdfDocument.NewPage();
|
||||||
}
|
}
|
||||||
|
private static bool _BaselineTesting = false; // Is the baseline being run (/P Commandline Parameter)
|
||||||
|
public static bool BaselineTesting
|
||||||
|
{
|
||||||
|
get { return PromsPrinter._BaselineTesting; }
|
||||||
|
set { PromsPrinter._BaselineTesting = value; }
|
||||||
|
}
|
||||||
private iTextSharp.text.Rectangle NxtRCT = PageSize.LETTER;
|
private iTextSharp.text.Rectangle NxtRCT = PageSize.LETTER;
|
||||||
private SectionInfo GetNextSection(SectionInfo currentSection)
|
private SectionInfo GetNextSection(SectionInfo currentSection)
|
||||||
{
|
{
|
||||||
@ -2329,8 +2335,9 @@ namespace Volian.Print.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
FileInfo fi = new FileInfo(MyPdfFile);
|
FileInfo fi = new FileInfo(MyPdfFile);
|
||||||
if (fi.Length == 0) // B2017-218 Handle invalid word sections
|
if (fi.Length == 0 ) // B2017-218 Handle invalid word sections
|
||||||
{
|
{
|
||||||
|
if(!PromsPrinter.BaselineTesting) //B2018-071 Output a message box unless baseline testing is being performed.
|
||||||
MessageBox.Show(si.DisplayNumber + " " + si.DisplayText + " is not valid", "Invalid Word Section", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
MessageBox.Show(si.DisplayNumber + " " + si.DisplayText + " is not valid", "Invalid Word Section", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user