<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Anything that involves the backend, or XSL, is the code for the
PDFs you get in the staff interface.</p>
<p><br>
</p>
<p>The public user interface generates its own PDFs, by first
building a HTML document using ERB templates, just as it does for
ordinary pages. But instead of returning that it stores it as a
temporary HTML file, then converts that to a PDF file <a moz-do-not-send="true" href="https://github.com/flyingsaucerproject/flyingsaucer">using
a Java library</a>. Then it sends the PDF file to the user.<br>
</p>
<p><br>
</p>
<p>The logo is an <i>img</i> tag with the <i>src</i> attribute
using the branding image URL set for the repository of the
resource. The HTML-to-PDF library is effectively like a web
browser running on the server, viewing a local file, so it needs a
full URL, not a path relative to the server root. Or, if the image
is hosted on another server, then there must be nothing to block
the outgoing HTTP request or returned response. Ask you local
network admins if unsure. It doesn't cache the image, so every
time a user requests a PDF, the ArchivesSpace server will download
the image from wherever you specify.<br>
</p>
<p><br>
</p>
<p>The image must be in a format supported by the HTML-to-PDF
library, but I can't find a list. Standard PNGs work.<br>
</p>
<p><br>
</p>
<p>Because it uses templates, you can override the relevant file
(_titlepage.html.erb) in a plug-in, and make it display whatever
you want (such as the logo for your whole organization, if you
don't want PDFs branded differently per repository, or no logo at
all if you just want text.) But it also contains code to add the
other things on the first page, so if you override it you might
have to update it when upgrading to a future release. <br>
</p>
<p><br>
</p>
<p>Andrew.</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 05/06/2020 16:44, Blake Carver
wrote:<br>
</div>
<blockquote type="cite" cite="mid:DM6PR22MB2309F60919467F971C4E9B409F860@DM6PR22MB2309.namprd22.prod.outlook.com">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
I was just typing out a reply to say the same thing, here's a PR
that gives you a decent idea of some of the files that are used
on the PUI side PDF</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://github.com/archivesspace/archivesspace/pull/1480" moz-do-not-send="true">https://github.com/archivesspace/archivesspace/pull/1480</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
It's not an area that you want to mess with, usually.</div>
<div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0); background-color:rgb(255,255,255)">
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><archivesspace_users_group-bounces@lyralists.lyrasis.org></a>
on behalf of Majewski, Steven Dennis (sdm7g)
<a class="moz-txt-link-rfc2396E" href="mailto:sdm7g@virginia.edu"><sdm7g@virginia.edu></a><br>
<b>Sent:</b> Friday, June 5, 2020 10:58 AM<br>
<b>To:</b> Archivesspace Users Group
<a class="moz-txt-link-rfc2396E" href="mailto:archivesspace_users_group@lyralists.lyrasis.org"><archivesspace_users_group@lyralists.lyrasis.org></a><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] PDF Export
Logo Issue</font>
<div> </div>
</div>
<div dir="auto">That style sheet is only used in the staff PDF
export.
<div>The PUI PDF is generated differently. </div>
<div><br>
<br>
<div dir="ltr">Sent from my iPad</div>
<div dir="ltr"><br>
<blockquote type="cite">On Jun 5, 2020, at 10:02 AM, Chris
Mayo <a class="moz-txt-link-rfc2396E" href="mailto:mayoc@bc.edu"><mayoc@bc.edu></a> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div>Hi Bailey,</div>
<div><br>
</div>
<div>My institution doesn't use the PUI, so I can't
really speculate about why there's a difference
between the staff and public interfaces. That being
said, the appearance of the PDFs are controlled by the
as-ead-pdf.xsl stylesheet, and I've noticed in the
past that it's really easy for the logos to break for
a number of reasons:</div>
<div>
<ul>
<li>if the logo file gets renamed or goes missing
during a software update</li>
<li>if you're modifying the stylesheet for other
reasons and accidentally comment out, delete, or
modify the part that calls for the logo file</li>
</ul>
<div>I don't know if either of those is the case in
your application, but I'd start with looking at the
stylesheet and logo files and making sure they're
all cross-referencing properly.</div>
<div><br>
</div>
<div>Best,</div>
<div>Chris<br>
</div>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Thu, Jun 4, 2020
at 11:37 AM Hoffner, Bailey E. <<a href="mailto:baileys@ou.edu" target="_blank" moz-do-not-send="true">baileys@ou.edu</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px
0px 0.8ex; border-left:1px solid rgb(204,204,204);
padding-left:1ex">
<div lang="EN-US">
<div>
<p class="x_MsoNormal"><span style="font-size:11pt">Morning All,</span></p>
<p class="x_MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11pt">We have an odd issue
where our branding image does not show up on
the PDF that can be exported from the public
interface, but it does show up on the PDF that
can be exported from the staff interface. The
ArchivesSpace logo no longer shows up, but
neither does the branding image.</span></p>
<p class="x_MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11pt">Any suggestions? Has
anyone had an issue like this before?</span></p>
<p class="x_MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11pt">Thanks!</span></p>
<p class="x_MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11pt">-Bailey</span></p>
<p class="x_MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11pt;
font-family:"Calibri
Light",sans-serif">Bailey Hoffner, MLIS</span></p>
<p class="x_MsoNormal"><span style="font-size:11pt;
font-family:"Calibri
Light",sans-serif">Metadata and
Collections Management Archivist</span></p>
<p class="x_MsoNormal"><span style="font-size:11pt;
font-family:"Calibri
Light",sans-serif">University of Oklahoma
Libraries</span></p>
<p class="x_MsoNormal"><span style="font-size:11pt;
font-family:"Calibri
Light",sans-serif">405-325-1566</span></p>
<p class="x_MsoNormal"> </p>
</div>
</div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank" moz-do-not-send="true">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank" moz-do-not-send="true">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div><span><font color="#888888">Chris
Mayo<br>
</font></span></div>
<span><font color="#888888">Digital
Production Librarian<br>
</font></span></div>
<span></span></div>
<span><font color="#888888">Boston
College<br>
</font></span></div>
<span></span></div>
<span><font color="#888888"><a href="mailto:chris.mayo@bc.edu" target="_blank" moz-do-not-send="true">chris.mayo@bc.edu</a><br>
</font></span></div>
<div><span><font color="#888888">pronouns:
they/them/theirs<br>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span>_______________________________________________</span><br>
<span>Archivesspace_Users_Group mailing list</span><br>
<span><a class="moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a></span><br>
<span><a class="moz-txt-link-freetext" href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></span><br>
</div>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Archivesspace_Users_Group mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a>
<a class="moz-txt-link-freetext" href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a>
</pre>
</blockquote>
</body>
</html>