diff --git a/CHANGELOG.md b/CHANGELOG.md
index dcd7baa..7ba1a9f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,10 @@ before starting to add changes. Use example [placed in the end of the page](#exa
## [Unreleased]
+## [3.7.0] 2023-06-22
+
+- [S2FRMS-18] - Fixing PDF styles
+
## [3.6.0] 2023-06-07
- [OSF-25] added modules/os2forms_forloeb
diff --git a/modules/os2forms_attachment/os2forms_attachment.module b/modules/os2forms_attachment/os2forms_attachment.module
index c122ba9..9f8892c 100644
--- a/modules/os2forms_attachment/os2forms_attachment.module
+++ b/modules/os2forms_attachment/os2forms_attachment.module
@@ -198,7 +198,7 @@ function _os2forms_attachment_print_form_add_template_override(array &$element,
'#options' => $header_options,
'#description' => t('Select default header that will be used on all forms (use standard for no override)'),
'#empty_option' => t('Use standard'),
- '#default_value' => $template_settings['os2forms_header'] ?? '',
+ '#default_value' => $template_settings['os2form_header'] ?? '',
'#weight' => -1,
];
@@ -208,7 +208,7 @@ function _os2forms_attachment_print_form_add_template_override(array &$element,
'#options' => $colophon_options,
'#description' => t('Select default colophon that will be used on all forms (use standard for no override)'),
'#empty_option' => t('Use standard'),
- '#default_value' => $template_settings['os2forms_colophon'] ?? '',
+ '#default_value' => $template_settings['os2form_colophon'] ?? '',
'#weight' => -1,
];
@@ -218,7 +218,7 @@ function _os2forms_attachment_print_form_add_template_override(array &$element,
'#options' => $footer_options,
'#description' => t('Select default footer that will be used on all forms (use standard for no override)'),
'#empty_option' => t('Use standard'),
- '#default_value' => $template_settings['os2forms_footer'] ?? '',
+ '#default_value' => $template_settings['os2form_footer'] ?? '',
'#weight' => 0,
];
diff --git a/modules/os2forms_attachment/src/Form/AttachmentComponentDeleteForm.php b/modules/os2forms_attachment/src/Form/AttachmentComponentDeleteForm.php
index e3db6d1..123dc3e 100644
--- a/modules/os2forms_attachment/src/Form/AttachmentComponentDeleteForm.php
+++ b/modules/os2forms_attachment/src/Form/AttachmentComponentDeleteForm.php
@@ -3,8 +3,8 @@
namespace Drupal\os2forms_attachment\Form;
use Drupal\Core\Entity\EntityConfirmFormBase;
-use Drupal\Core\Url;
use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\Url;
/**
* Class AttachmentComponentDeleteForm.
diff --git a/modules/os2forms_attachment/src/Form/AttachmentComponentForm.php b/modules/os2forms_attachment/src/Form/AttachmentComponentForm.php
index b75010a..05dd93a 100644
--- a/modules/os2forms_attachment/src/Form/AttachmentComponentForm.php
+++ b/modules/os2forms_attachment/src/Form/AttachmentComponentForm.php
@@ -6,8 +6,8 @@
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Session\AccountInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\webform\WebformTokenManagerInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Form handler for the Attachment component add and edit forms.
diff --git a/modules/os2forms_attachment/src/Os2formsAttachmentPrintBuilder.php b/modules/os2forms_attachment/src/Os2formsAttachmentPrintBuilder.php
index 4ae09ee..67a0c99 100644
--- a/modules/os2forms_attachment/src/Os2formsAttachmentPrintBuilder.php
+++ b/modules/os2forms_attachment/src/Os2formsAttachmentPrintBuilder.php
@@ -46,7 +46,12 @@ protected function prepareRenderer(array $entities, PrintEngineInterface $print_
'#attached' => [],
];
- $print_engine->addPage($renderer->generateHtml($entities, $render, $use_default_css, TRUE));
+ // Adding hardcoded negative margin to avoid margins in