|
|
|
|
@ -10,8 +10,16 @@ namespace Gremlin.Operations
|
|
|
|
|
public static void CreatePDF(QuoteViewModel quoteVM)
|
|
|
|
|
{
|
|
|
|
|
//Copy images to quotePath
|
|
|
|
|
File.WriteAllBytes($"{quoteVM.QuotePath}\\agilentLogo.png", Properties.Resources.agilentLogo);
|
|
|
|
|
File.WriteAllBytes($"{quoteVM.QuotePath}\\signWoitschetzki.png", Properties.Resources.signWoitschetzki);
|
|
|
|
|
if (quoteVM.QuotePath is "" or null)
|
|
|
|
|
{
|
|
|
|
|
File.WriteAllBytes("agilentLogo.png", Properties.Resources.agilentLogo);
|
|
|
|
|
File.WriteAllBytes("signWoitschetzki.png", Properties.Resources.signWoitschetzki);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
File.WriteAllBytes($"{quoteVM.QuotePath}\\agilentLogo.png", Properties.Resources.agilentLogo);
|
|
|
|
|
File.WriteAllBytes($"{quoteVM.QuotePath}\\signWoitschetzki.png", Properties.Resources.signWoitschetzki);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Create PDF twice
|
|
|
|
|
RunningPDFLaTeX(quoteVM, 2);
|
|
|
|
|
|