private void AddAdvertisingSection(PDFDocument document, int startHorizontal, int startVertical) { if (!AdvertisingSettings.IsEnabled) { document.AddImage(ImageHelper.LoadFromResourcesAsByteArray("webcal"), 90, 21, (startHorizontal + 5), (startVertical + 30)); return; } document.AddImage(AdvertisingSettings.RawImage ?? ImageHelper.LoadFromResourcesAsByteArray("webcal"), 90, 21, startHorizontal + 5, startVertical + 30); if (!string.IsNullOrEmpty(AdvertisingSettings.Message)) { AbsolutePositionText(document, AdvertisingSettings.Message, (startHorizontal + 100), (startVertical + 800), 550, 62, document.GetCustomFont(AdvertisingSettings.FontSize, AdvertisingSettings.Font)); } }