changes for comparing PROMS generated PDFs with PROMS generated PDFs
Added checkbox to compare PROMS generated PDFs with PROMS generated PDFs Logic to support the comparing of PROMS generated PDFs with PROMS generated PDFs
This commit is contained in:
@@ -149,7 +149,13 @@ namespace Volian.Print.Library
|
||||
get { return _OriginalPageBreak; }
|
||||
set { _OriginalPageBreak = value; }
|
||||
}
|
||||
public PromsPrinter(ItemInfo myItem, string rev, string revDate, string watermark, bool debugOutput, bool origPgBrk, string backgroundFolder, bool openPDF, bool overWrite, ChangeBarDefinition cbd, String pdfFile)
|
||||
private bool _ComparePROMStoPROMSPDF; // compare folder contains PROMS generated PDFs
|
||||
public bool ComparePROMStoPROMSPDF
|
||||
{
|
||||
get { return _ComparePROMStoPROMSPDF; }
|
||||
set { _ComparePROMStoPROMSPDF = value; }
|
||||
}
|
||||
public PromsPrinter(ItemInfo myItem, string rev, string revDate, string watermark, bool debugOutput, bool origPgBrk, bool promsToPromsPDF, string backgroundFolder, bool openPDF, bool overWrite, ChangeBarDefinition cbd, String pdfFile)
|
||||
{
|
||||
_MyItem = myItem;
|
||||
_Rev = rev;
|
||||
@@ -162,6 +168,7 @@ namespace Volian.Print.Library
|
||||
_MyChangeBarDefinition = cbd;
|
||||
_PDFFile = pdfFile;
|
||||
_OriginalPageBreak = origPgBrk;
|
||||
_ComparePROMStoPROMSPDF = promsToPromsPDF;
|
||||
}
|
||||
public string Print(string pdfFolder)
|
||||
{
|
||||
@@ -363,7 +370,10 @@ namespace Volian.Print.Library
|
||||
// X argument below: accounts for 16-bit pdf OverrideLeftMargin = -2 characters at the plant format's default Font's
|
||||
// characters per inch.
|
||||
// 16bit OverrideLeftMargin, defined as -2 in driver\drvin.rtf, - override took 2 characters out, so we're adding it back in:
|
||||
_MyHelper.BackgroundOffset = new PointF(2 * 72F / (float)myProcedure.ActiveFormat.PlantFormat.FormatData.Font.CPI, -9.5F);
|
||||
if (!_ComparePROMStoPROMSPDF)
|
||||
_MyHelper.BackgroundOffset = new PointF(2 * 72F / (float)myProcedure.ActiveFormat.PlantFormat.FormatData.Font.CPI, -9.5F);
|
||||
else
|
||||
_MyHelper.BackgroundOffset = new PointF(0, 0); // compare folder contains PROMS generated PDF
|
||||
_MyHelper.BackgroundPageOffset = 0;
|
||||
}
|
||||
_MyHelper.WatermarkLayer = _WatermarkLayer;
|
||||
|
Reference in New Issue
Block a user