[Archivesspace_Users_Group] ead2pdf manual PDF creation?

Arnold, Hillel harnold at rockarch.org
Thu Aug 6 12:38:42 EDT 2015


So trying to run the .jar from the master branch of this repo I’m getting an error:

LoadError: no such file to load -- saxon-xslt

  require at org/jruby/RubyKernel.java:1065

  require at /var/folders/ts/sw453n7d4511xs2c03ks66tr0000gn/T/jruby733257485658081325extract/jruby-stdlib-complete-1.7.16.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55

   (root) at /Users/harnold/Repos/ead2pdf/ead2pdf.jar!/ead2pdf/lib/AS_fop.rb:8

  require at org/jruby/RubyKernel.java:1065

   (root) at /var/folders/ts/sw453n7d4511xs2c03ks66tr0000gn/T/jruby733257485658081325extract/jruby-stdlib-complete-1.7.16.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1

  require at /var/folders/ts/sw453n7d4511xs2c03ks66tr0000gn/T/jruby733257485658081325extract/jruby-stdlib-complete-1.7.16.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55

     load at org/jruby/RubyKernel.java:1081

   (root) at file:/Users/harnold/Repos/ead2pdf/ead2pdf.jar!/ead2pdf/bin/ead2pdf-main.rb:5

  require at org/jruby/RubyKernel.java:1065

   (root) at file:/Users/harnold/Repos/ead2pdf/ead2pdf.jar!/META-INF/main.rb:1

   (root) at file:/Users/harnold/Repos/ead2pdf/ead2pdf.jar!/META-INF/main.rb:1

error: org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- saxon-xslt

I’m able to run it fine from Steve’s fork.

Additionally when I try to compile this locally, the resulting .jar throws the same error. I’m not getting any error/unexpected messages when running `warble compiled jar`, but I don’t really know enough to be able to troubleshoot much further…any ideas?

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: Thursday, August 6, 2015 at 6:05 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, thanks for this..sorry, originally did this with about 50% of my attention. I've updated the ead2pdf project. 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 Arnold, Hillel <harnold at rockarch.org<mailto:harnold at rockarch.org>>
Sent: Wednesday, August 5, 2015 6:57 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] ead2pdf manual PDF creation?

Steve,
Thanks so much for this! I can confirm this .jar file works as expected: you don’t have to cd into the ead2pdf directory and you can create a pdf in another location (directory permissions permitting, obviously).

Hillel Arnold
Lead Digital Archivist
Rockefeller Archive Center

From: Steven Majewski <sdm7g at virginia.edu<mailto:sdm7g at virginia.edu>>
Reply-To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Date: Wednesday, August 5, 2015 at 12:07 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?


OK: Latest version also fixes the relative URLS for logo reference when running out of the jar file.
You should be able to download and run just the jar file from this release.

Release jarfile-fix: tagged for release: fixes problems with relative URLs when running ap… · sdm7g/ead2pdf<https://github.com/sdm7g/ead2pdf/releases/tag/jarfile-fix>


Try replacing ead2pdf/lib/archivesspace.small.png in the .jar file with your own logo renamed.


— Steve


On Aug 4, 2015, at 7:03 PM, Steven Majewski <sdm7g at virginia.edu<mailto:sdm7g at virginia.edu>> wrote:

My fork at https://github.com/sdm7g/ead2pdf
is working out of the .jar alone now, finding the included stylesheet,
however it’s still getting an error on including the logo ./lib/archivesspace.small.png
which it still expects to be relative to $PWD.

Looking for a fix for that...

— Steve.



On Aug 4, 2015, at 3:03 PM, Arnold, Hillel <harnold at rockarch.org<mailto:harnold at rockarch.org>> wrote:

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

_______________________________________________
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

_______________________________________________
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/20150806/1d9ca851/attachment.html>


More information about the Archivesspace_Users_Group mailing list