<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PDF Reports with Logo in header in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/PDF-Reports-with-Logo-in-header/m-p/953483#M110006</link>
    <description>&lt;P&gt;I am trying to develop a way to control PDF output of report data. &amp;nbsp;I would like to have formatting control of the header and footer, and the ability to embed a logo. &amp;nbsp;Any thoughts on how to approach this?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2026 21:33:20 GMT</pubDate>
    <dc:creator>Stu_Dente</dc:creator>
    <dc:date>2026-06-11T21:33:20Z</dc:date>
    <item>
      <title>PDF Reports with Logo in header</title>
      <link>https://community.jmp.com/t5/Discussions/PDF-Reports-with-Logo-in-header/m-p/953483#M110006</link>
      <description>&lt;P&gt;I am trying to develop a way to control PDF output of report data. &amp;nbsp;I would like to have formatting control of the header and footer, and the ability to embed a logo. &amp;nbsp;Any thoughts on how to approach this?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 21:33:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PDF-Reports-with-Logo-in-header/m-p/953483#M110006</guid>
      <dc:creator>Stu_Dente</dc:creator>
      <dc:date>2026-06-11T21:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Reports with Logo in header</title>
      <link>https://community.jmp.com/t5/Discussions/PDF-Reports-with-Logo-in-header/m-p/953620#M110012</link>
      <description>&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;Ah, I just went through this whole thing building multi-page PDF reports in JMP 19, so let me save you the headache I went through.&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;Straight up: you get &lt;EM&gt;some&lt;/EM&gt; control, but not as much as you'd hope, and it's better to know that going in than to find out the hard way like I did.&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;For headers and footers, you've got &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;Set Print Headers(left, center, right)&lt;/CODE&gt; and &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;Set Print Footers(...)&lt;/CODE&gt; to match — three little text slots each. They take plain text plus some handy tokens, so &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;"Page &amp;amp;pn; of &amp;amp;pc;"&lt;/CODE&gt; dropped in the right footer slot gives you "Page 1 of 5" and so on. Works great. But here's what got me: they're &lt;STRONG&gt;text only&lt;/STRONG&gt;, and you can't set the font size in the script at all — it secretly follows the "Small" font role tucked away in File ▸ Preferences ▸ Fonts. Took me forever to realize that's why my footer wouldn't shrink. And if you try to stack two lines in one slot, watch out — the &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;\!N&lt;/CODE&gt; newline thing the docs mention straight-up didn't work on my JMP 19 build and silently nuked the entire header. No error, just gone.&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;Page setup itself is actually solid, no complaints there. &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;Set Page Setup(margins(...), scale(n), portrait(0), paper size("Letter"))&lt;/CODE&gt; handles orientation, margins, scaling, all fine. Just remember to tack on &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;Save PDF(path, Show Page Setup(0))&lt;/CODE&gt; — that little &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;Show Page Setup(0)&lt;/CODE&gt; shuts off the print dialog popup, which you'll really want once you're cranking out a stack of these unattended.&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;The logo's where it gets annoying. Because the headers and footers are text only, the logo just can't go there — so there's no built-in way to get it on every page. What &lt;EM&gt;does&lt;/EM&gt; work is sticking it in the body of the report as a picture box, and you can bake it right in as base64 so you're not hauling around a separate image file:&lt;/P&gt;
&lt;DIV class="relative group/copy bg-bg-000/50 border-0.5 border-border-400 rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-100" tabindex="0" role="group" aria-label="Code"&gt;
&lt;DIV class="overflow-x-auto"&gt;
&lt;PRE class="code-block__code !my-0 !rounded-lg !text-sm !leading-relaxed p-3.5" style="color: #14181f; background: transparent; font-family: var(--font-mono);"&gt;&lt;CODE style="color: #14181f; background: transparent; font-family: var(--font-mono); white-space: pre-wrap;"&gt;&lt;SPAN&gt;Picture Box( New Image( Char To Blob( logoB64, "base64" ), "png" ) )&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;Park that at the top of your outer &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;V List Box&lt;/CODE&gt; and boom, you've got a letterhead — but page 1 only, 'cause the body just renders wherever it lands.&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;If you genuinely need that logo on every single page, I'll be honest with you, JMP 19 won't do it on its own. What I ended up doing was a two-step deal: let JMP pump out the PDF, then run a quick little script afterward to stamp the logo on every page — Python with pypdf or reportlab knocks it out in a handful of lines across the whole folder. Not pretty, but it's rock solid, and once it's wired up you forget it's even there.&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;So the gist of it: JMP 19 is great for the data side and gives you decent text headers/footers and page setup, plus a logo on page 1 — but no per-page images and zero font control from the script. If a logo on every page is a hard line for you, just plan on letting JMP build the PDF and stamping it after, instead of beating your head against the wall trying to force it all inside JMP like I did.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2026 22:21:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PDF-Reports-with-Logo-in-header/m-p/953620#M110012</guid>
      <dc:creator>BioAnalysisFL</dc:creator>
      <dc:date>2026-06-12T22:21:17Z</dc:date>
    </item>
  </channel>
</rss>

