Adding page.xyz.content to Order confirmation email as pdf

Hello Community,

I have the following problem, I have found the following in the docu: https://shopify.dev/api/liquid/basics/handle.

that it is possible to access the content of websites. I would like to attach the content of one of my created pages as a PDF.

I am now trying to use the following code:

{%- if pages.devpage.content != blank -%}
{{ pages.devpage.content | attach_as_pdf: “DEVPAGE” }}
{%- endif -%}

I have noticed that even if I want to preview the title in the HTML with {{ pages.devpage.title }}
the title of the page is not displayed. Can you please help me