[Archivesspace_Users_Group] ead2pdf manual PDF creation?

Arnold, Hillel harnold at rockarch.org
Tue Aug 4 15:03:19 EDT 2015


Also, it’s apparently not possible to create a PDF file anywhere outside of the ead2pdf directory either…

Hillel Arnold
Lead Digital Archivist
Rockefeller Archive Center

From: <Arnold>, Hillel Arnold <harnold at rockarch.org<mailto:harnold at rockarch.org>>
Reply-To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Date: Tuesday, August 4, 2015 at 2:41 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] ead2pdf manual PDF creation?

Hi Chris,
I’m still having trouble running this when I’m not in the ead2pdf directory, as Steve points out below.

Hillel Arnold
Lead Digital Archivist
Rockefeller Archive Center

From: Chris Fitzpatrick <Chris.Fitzpatrick at lyrasis.org<mailto:Chris.Fitzpatrick at lyrasis.org>>
Reply-To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Date: Tuesday, August 4, 2015 at 11:59 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] ead2pdf manual PDF creation?




Hi,


Yeah, I just updated the ead2pdf jar, with I think fixes this..


It's here:

https://github.com/archivesspace/ead2pdf/releases/tag/0.0.5

[https://avatars2.githubusercontent.com/u/1311559?v=3&s=400]<https://github.com/archivesspace/ead2pdf/releases/tag/0.0.5>

Release 0.0.5 · archivesspace/ead2pdf · GitHub
ead2pdf - ASpace EAD2PDF
Read more...<https://github.com/archivesspace/ead2pdf/releases/tag/0.0.5>



b,chris.


Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/


________________________________
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 Steven Majewski <sdm7g at virginia.edu<mailto:sdm7g at virginia.edu>>
Sent: Tuesday, August 4, 2015 5:51 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] ead2pdf manual PDF creation?


I ran the conversion on a random exported EAD file and got the same error.
The rest of the message shows it couldn’t find as-helper-functions.xsl

work$ java -jar  ../ead2pdf/ead2pdf.jar prod/local-exp/22-MSS12838.xml  22.pdf
prod/local-exp/22-MSS12838.xml
22.pdf
Error at /xsl:stylesheet/xsl:include[1]
  XTSE0165: I/O error reported by XML parser processing
  file:/projects/Archivespace/work/lib/as-helper-functions.xsl:
  /projects/Archivespace/work/lib/as-helper-functions.xsl (No such file or directory)
NoMethodError: undefined method `rewind' for nil:NilClass

It looks like there’s a path dependency on finding that file:

ead2pdf$ ack as-helper-functions
lib/as-ead-pdf.xsl
24:    <xsl:include href="./lib/as-helper-functions.xsl"/>

lib/AS_fop.rb
36:   # @xslt.gsub!('<xsl:include href="as-helper-functions.xsl"/>', "<xsl:include href='#{File.join(File.dirname(__FILE__), '../lib', 'as-helper-functions.xsl')}'/>" )


When I cd into the ead2pdf directory and run the same transform, it runs without error.

[ file path is:  ead2pdf/lib/as-helper-functions.xsl ]

— Steve.



On Aug 3, 2015, at 11:38 AM, Galligan, Patrick <PGalligan at rockarch.org<mailto:PGalligan at rockarch.org>> wrote:

Hey,

We’re trying to set up a workflow where we automatically generate PDF copies of finding aids from our EAD. Rather than set up two API calls (one to export updated EAD and one to download updated PDF), we wanted to use the ead2pdf.jar to run through and create PDF files.

However, when trying to run it from our dev server, I’m getting the following error:

NoMethodError: undefined method `rewind' for nil:NilClass

Any idea what could be causing that?

Patrick Galligan
Rockefeller Archive Center
Assistant Digital Archivist
914-366-6386

_______________________________________________
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150804/228dff46/attachment.html>


More information about the Archivesspace_Users_Group mailing list