Entity Print PDF Layout for Views page My requirement is to convert a views page into a PDF. I have created the views page with table formatting and a PDF plugin attached to the header that allows one to download the views page as PDF. I created an entity-print.html twig template and an HTML structure copied from the answer in this post How to customize entity print pdf and created a twig variable 'footer' in THEME_preprocess_page function in the theme's .theme file but the calls {{ footer }} to that variable in the template returns nothing.
In other to at least test CSS formatting, I placed these in the respective files:
ENTITY-PRINT.HTML.TWIG
&lt;html&gt;
&lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;title&gt;{{ title }}&lt;/title&gt;
    {{ entity_print_css }}
&lt;/head&gt;
&lt;body&gt;
{# The footer is repeated on all pages and must be printed first. #}

&lt;footer&gt;
    {{  footer  }}
&lt;/footer&gt;
{%  if cover_page  %}
&lt;div class=&quot;cover-page&quot;&gt;
    {{ cover_page }}
&lt;/div&gt;
{%  endif  %}
{# The header is repeated after the cover page for all pages. #}
&lt;header&gt;
    {{  header  }}
&lt;/header&gt;
&lt;div class=&quot;page&quot;&gt;
    {{ content }}
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

THEMENAME.THEME
function THEMENAME_preprocess_page(&amp;$variables) {
  $variables['footer'] = &quot;HERE IS YOUR FOOTER&quot;;
  $variables['header'] = &quot;HERE IS YOUR HEADER&quot;;
}

IN .INFO.YML
entity_print:
 views:
   views_page_machine_name: 'theme_name/result-pdf'

IN .LIBRARIES.YML
result-pdf:
  css:
    theme:
      styles/result-pdf.css: {}

IN CSS FILE (i.e. result-pdf.css)
* {
    color: red;
}

div {
    background: blue;
}

and then created result-pdf.css but the styles did not change anything in the generated pdf.
One of the answers in another post Entity print get variable in twig template pointed to creating an entity specific template for layout of the PDF  with HTML as required. For example, for the article content type you have node--article--pdf.html.twig. What is the template suggestion for a views as described in my case?
The question is how do I achieve:

create a HTML layout format that is fed all the fields from the views page
rightly set the footer/header variable for output in the entity-print.html template mentioned above
turn bullet into A pdf (so that the download link on the views page generates the formatted html as pdf).

Perhaps bullet 1-3 is irrelevant, a step by step direction on how to have a views page formatted as required and converted to PDF using the entity print module will be appreciated.
The solution came down to replacing &quot;views&quot; with &quot;view&quot; - without the s and &quot;views_page_machine_name&quot; with &quot;all&quot;, such that this:
entity_print:
 views:
   views_page_machine_name : 'theme_name/result-pdf'

became:
entity_print:
 view:
   all: 'theme_name/result-pdf'