[Archivesspace_Users_Group] ArchivesSpace failing to export resource to PDF

Adams, Thomas tadams at cshl.edu
Tue Jun 26 13:04:22 EDT 2018


Mark,

Thanks for your offer to look over my EAD, with regards to my inability to generate a PDF from a resource. I will directly forward you the EAD file (and a copy of the same file formatted for better viewing.)

The "Oral History" collection is the resource I was attempting to generate a PDF from. You are able to view it at:
                http://archivesspace.cshl.edu/repositories/2/resources/39

BTW - Is it possible to capture the temporary XSL-FO file on my end, before it is removed by the termination of the PDF generation?
That might give me a hint to which archival object might be a problem.

Celia,

With regards to your question: Are you using the pdf_per_repository plugin from UNLV?
No. I am using the built in ASpace staff interface.

Thanks

-Tom Adams

From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Custer, Mark
Sent: Tuesday, June 26, 2018 9:58 AM
To: Archivesspace Users Group (Archivesspace_Users_Group at lyralists.lyrasis.org)
Subject: Re: [Archivesspace_Users_Group] ArchivesSpace failing to export resource to PDF


Thomas,



If you could send me a copy of the EAD file, I can take a look this afternoon (I'm working on a new process to create PDF files in ASpace using the new EAD3 export option, but I have the current ASpace PDF files handy for testing).



The issue is definitely that the current EAD to PDF process is creating an invalid XSL-FO file, which Apache FOP cannot then render properly as a PDF file, as Trevor mentioned.  Without seeing the EAD file, though, it's impossible to tell if there's an issue in the EAD or the XSL file that's being used to create the temporary XSL-FO file.



Mark





________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Adams, Thomas <tadams at cshl.edu>
Sent: Monday, June 25, 2018 6:14:09 PM
To: Archivesspace Users Group (Archivesspace_Users_Group at lyralists.lyrasis.org)
Subject: [Archivesspace_Users_Group] ArchivesSpace failing to export resource to PDF


>From the staff interface in ArchivesSpace 2.3.2, I am attempting to "Export | Print resource to PDF". The batch submission get things started fine, but the job ends up with a failure status when it completes.



I see the following error message:



# more /home/archivesspace/archivesspace-v2.3.2/archivesspace/data/shared/job_files/print_to_pdf_job_236/output.log

Generating PDF for Oral History

org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker* (list-item)+ (See position 1794:68)

org.apache.xalan.transformer.TransformerIdentityImpl.transform(org/apache/xalan/transformer/TransformerIdentityImpl.java:502)

java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)

....



Trevor Thornton gave the following suggestion to the ASpace mailing list (back in 2017-03-21) to a similar error message:

       Looks like there is a list in a note somewhere that has no list items -

      that what this seems to be saying:



      org.apache.fop.fo.ValidationException: "fo:list-block" is missing child

     elements. Required content model: marker* (list-item)+ (See position 508:68)



      I would try to export the resource as an EAD, and if that works you might

     more easily search through the XML to find the problem.



I  was able to "Export | Download EAD",  that resource as suggested, but there were only three <list type="ordered"> tags in the EAD and all of them had <head> and <item> as children.



I also looked on the ArchivesSpace server and was not able to find a temporary file created at that time, that might have position 1794:68 (line#:char).



Any suggestions on what to try next?



Thanks



-Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20180626/0717c21e/attachment.html>


More information about the Archivesspace_Users_Group mailing list