[Archivesspace_Users_Group] Exporting to PDF errors

Trevor Thornton trthorn2 at ncsu.edu
Wed Sep 22 15:50:23 EDT 2021


The PDF exporter first generates EAD XML file and parses that to generate
the PDF. If the XML is invalid the PDF export will fail.  In this case, it
looks like you have unescaped ampersands somewhere that the XML parser is
trying to interpret as XML entities. If you find these, replacing them
with & should make this error go away.

On Wed, Sep 22, 2021 at 3:23 PM Esh, John C. <jesh at towson.edu> wrote:

> For several finding aids, when I try to export to PDF, I’m getting this
> error…
>
>
>
> Generating PDF for Athletics Department records
>
> org.xml.sax.SAXParseException; lineNumber: 88; columnNumber: 42; The
> entity name must immediately follow the '&' in the entity reference.
>
>
> net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:379)
>
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
>
>
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)
>
>
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)
>
>
> RUBY.parse(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/xml.rb:28)
>
>
> RUBY.XML(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/processor.rb:58)
>
>
> RUBY.XML(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/xml.rb:10)
>
>
> RUBY.to_fo(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:38)
>
>
> RUBY.to_pdf(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:44)
>
> RUBY.block in
> run(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:51)
>
> If anyone has any thoughts as to what’s going on, I’d love to hear them.
> This isn’t the entirety of the error code, but it seems to repeat similar
> lines after this.
>
>
>
> Thanks!
>
>
>
>    - John
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>


-- 
Trevor Thornton
Applications Developer, Digital Library Initiatives
North Carolina State University Libraries
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20210922/1d287d96/attachment.html>


More information about the Archivesspace_Users_Group mailing list