[Archivesspace_Users_Group] Finding Aid PDF Error

Majewski, Steven Dennis (sdm7g) sdm7g at virginia.edu
Thu Jan 9 15:08:49 EST 2020


I edited on of my repos on a test instance to use your logo at  https://dlib.uncp.edu/customizations/global/images/UNCP_P_Vert_Bk.png <https://dlib.uncp.edu/customizations/global/images/UNCP_P_Vert_Bk.png> 
I don’t know if that’s the one you’re using in ArchivesSpace: it was the one on your home page, and it although it was sized small on the page header, I downloaded the file and saw that it was similarly large sized. 

[1] Export PDF : I got the same sort of glitch with colliding and overlapping text on the first page:







[2] I edited stylesheets/as-ead-pdf.xsl to make this change:

dcs-archivesspace$ git diff 
diff --git a/stylesheets/as-ead-pdf.xsl b/stylesheets/as-ead-pdf.xsl
index 289e34bf1..e0828ef69 100644
--- a/stylesheets/as-ead-pdf.xsl
+++ b/stylesheets/as-ead-pdf.xsl
@@ -275,7 +275,7 @@
     -->
     <xsl:template name="icon">
         <fo:block text-align="left" margin-left="-.75in" margin-top="-.5in">
-            <fo:external-graphic content-height="75%" content-width="75%">
+            <fo:external-graphic content-height="25%" content-width="25%">
               <xsl:attribute name="src"><xsl:value-of select="$pdf_image"/></xsl:attribute>
             </fo:external-graphic>
         </fo:block>


[3] Results — it worked for me!  
    You may need to restart the servers after making that edit so that it will load the new file.
    ( I see, however, a different glitch with our resource: the MSS number is getting duplicated 
      In the staff generated PDF, but not in the public generated PDF or any other pages. 
      I suspect this is coming from Finding Aid Info, which is the only other place I see that id# in the 		resource.  ) 







> On Jan 9, 2020, at 1:21 PM, June L Power <june.power at uncp.edu> wrote:
> 
> Following up on a pre-holiday issue.
>  
> I was able to edit the .xsl file to reduce the image size from 75% to 25% but it had no effect on the output. I also have a resized image, but I’m not sure where to tell the IT people to put it as I don’t know what the structure on the server looks like.
>  
> I have no access to my server I just have to give IT specific directions – like put logo image in xyz folder with abc name.
>  
> Any help would be greatly appreciated.
>  
> June
>  
>  
> June Power, MLIS
> Director, Special Collections and Archives
> Mary Livermore Library
> The University of North Carolina at Pembroke
> P.O. Box 1510
> Pembroke, NC  28372
>  
> 910.521.6369
> 910.521.6547 (fax)
> june.power at uncp.edu <mailto:june.power at uncp.edu>
>   <image001.gif>   <image002.png>
>  
>  
>  
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Majewski, Steven Dennis (sdm7g)
> Sent: Tuesday, November 5, 2019 4:22 PM
> To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
> Subject: Re: [Archivesspace_Users_Group] Finding Aid PDF Error
>  
> Yes — your logo image is pretty large. The easiest hack might be to edit and downsize the image file. 
>  
>  
> The staff Postscript export uses Apache FOP. 
> If you have a computer in which you can install a FOP processor and Saxon ( or if you can run Oxygen XML Editor ) 
> You can debug the PDF output outside of ArchivesSpace, which can sometime be easier, especially if you’re trying
> To identify if the problems is with the EAD export or the FOP transform. 
>  
> In this case, the problem is confined between the logo image size and the FOP transform. 
> The FOP XSL Stylesheet is:  archivesspace/stylesheets/as-ead-pdf.xsl
> So if you don’t want to edit the image, you can try hacking the FOP xsl file. 
>  
> I’m not very expert on FOP, but I’m guessing this is the part you would want to change. 
> Maybe changing those content width/height values would do it. 
> See what happens if you change “75%” to “50%” 
>  
>   <!--
>         This template can be modified to include repository specific icons,
>         use the template as an example. PDF exports only support this single
>         icon template for an image in this directory specified by filename
>         i.e. src="myicon.png"
>     -->
>     <xsl:template name="icon">
>         <fo:block text-align="left" margin-left="-.75in" margin-top="-.5in">
>             <fo:external-graphic content-height="75%" content-width="75%">
>               <xsl:attribute name="src"><xsl:value-of select="$pdf_image"/></xsl:attribute>
>             </fo:external-graphic>
>         </fo:block>
>     </xsl:template>
>  
>  
>  
> 
> 
> On Nov 5, 2019, at 3:49 PM, June L Power <june.power at uncp.edu <mailto:june.power at uncp.edu>> wrote:
>  
> Thanks Steve.
>  
> I’m running version v2.6.0 and creating the PDF from the staff interface. I am unable to create them from the public side.  I’m trying to figure this out with no real IT support, but with IT controlling server file access. So they sent me the .xsl file and told me to edit it to fix the problem and send it back to them to load to server.  
>  
> I’ve attached a sample of what it is doing right now. There is a logo image there and it is pretty large.
>  
> June
>  
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> On Behalf Of Majewski, Steven Dennis (sdm7g)
> Sent: Tuesday, November 5, 2019 3:38 PM
> To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org <mailto:archivesspace_users_group at lyralists.lyrasis.org>>
> Subject: Re: [Archivesspace_Users_Group] Finding Aid PDF Error
>  
>  
> What version of ArchivesSpace are you running, and is this PDF produced from the Staff interface of the PUI ? 
> Also: have you added a custom logo image ? 
> ( I have seen some problems in the past if your custom logo is much larger that the default image. ) 
>  
> — Steve M. 
>  
> 
> 
> 
> On Nov 5, 2019, at 1:17 PM, June L Power <june.power at uncp.edu <mailto:june.power at uncp.edu>> wrote:
>  
> I am new to using ASpace and have been looking through the documentation trying to find a resolution for this error.
>  
> The collection information text is overlapping the repository text. The repository text is later repeated. How can I remove the repository text from this page of the generated PDF?
>  
> TIA! 
>  
> <image001.jpg>
> June Power, MLIS
> Director, Special Collections and Archives
> Mary Livermore Library
> The University of North Carolina at Pembroke
> P.O. Box 1510
> Pembroke, NC  28372
>  
> 910.521.6369
> 910.521.6547 (fax)
> june.power at uncp.edu <mailto:june.power at uncp.edu>
>   <image002.gif>   <image003.png>
>  
> <ASpacePDFError.png>_______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
>  
> <job_2_file_2.pdf>_______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
>  
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0005.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-01-09 at 2.57.15 PM.png
Type: image/png
Size: 978680 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0002.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0006.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: job_656_file_786.pdf
Type: application/pdf
Size: 53201 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0002.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0007.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-01-09 at 2.56.18 PM.png
Type: image/png
Size: 709445 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0003.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0008.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: job_657_file_787.pdf
Type: application/pdf
Size: 52105 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0003.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0009.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4974 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200109/cf183f00/attachment-0001.bin>


More information about the Archivesspace_Users_Group mailing list