[Dspace-general] problem with the pluggable package importer and exporter

Larry Stone lcs at MIT.EDU
Mon Nov 5 15:21:35 EST 2007


The message with the exception was supposed to be pretty self-explanatory:
"This packager cannot accept an encrypted PDF document" -- if the PDF is
set so it cannot be printed or edited, that is done by encrypting it.
The PDFbox tools which extract metadata from the PDF "package" may not work,
so it is rejected.  Turn off the encryption in the PDF if you can..

Note that the PDF "packager" is really just an example and was written
to demonstrate the concept of package ingesters.  It wasn't really intended
to be used in production, since PDF files don't have adequate metadata anyway.

    -- Larry


>   i'm trying to import items into dspace using the pluggable package importer.
>   So, I typed the following lines to the command line:
>   C:\DSpace\bin\dsrun org.dspace.app.packager.Packager
>   -e annamavroudi at yahoo.gr  -c 123456789/2
>   -t PDF C:\import_package_test1\ebd9_10.pdf
>
>   where C:\import_package_test1\ebd9_10.pdf   is the item's path.
>
>   But i got the following error:
>   Using Dspace installation in C:\Dspace
>   Destination Collections:
>   Owning Collection:
>   org.dspace.content.crosswalk.MetadataValidationException: This packager cannot accept an encrypted PDF document
>          at org.dspace.content.packager.PDFPackager.crosswalkPDF<PDFPackager.java:282>
>   at org.dspace.content.packager.PDFPackager.ingest<PDFPackager.java:185>
>   at org.dspace.content.packager.PDFPackager.main<PDFPackager.java:274>
>   org.dspace.content.crosswalk.MetadataValidationException: This packager cannot accept an encrypted PDF document
>
>   why do i get this error?
>   thanks in advance,
>   anna
>
>
> ---------------------------------
>   Yahoo!
>       (spam);  Yahoo! Mail
>  http://login.yahoo.com/config/mail?.intl=gr
> --0-1772219453-1194091970=:48884
> Content-Type: text/html; charset=iso-8859-7
> Content-Transfer-Encoding: 8bit
>
> <div>Hi all, </div>  <div>i'm trying to import items into dspace using the pluggable package importer.</div>  <div>So, I typed the following lines to the command line:</div>  <div><SPAN lang=EN-GB style="mso-ansi-language: EN-GB"><FONT face="Times New Roman" size=3>C:\DSpace\bin\dsrun org.dspace.app.packager.Packager </FONT></SPAN></div>  <div><SPAN lang=EN-GB style="mso-ansi-language: EN-GB"><FONT face="Times New Roman" size=3>-e </FONT><A href="mailto:annamavroudi at yahoo.gr"><FONT face="Times New Roman" size=3>annamavroudi at yahoo.gr</FONT></A><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>-c 123456789/2 </FONT></FONT></SPAN></div>  <div><SPAN lang=EN-GB style="mso-ansi-language: EN-GB"><FONT size=3><FONT face="Times New Roman">-t PDF C:\import_package_test1\ebd9_10.pdf<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></div>  <div>&nbsp;</div>  <div>where <SPAN lang=EN-GB
>  style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">C:\import_package_test1\ebd9_10.pdf&nbsp;&nbsp; is the item's path.</SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA"></SPAN>&nbsp;</div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">But i got the following error:</SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">Using
>  Dspace installation in C:\Dspace</SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">Destination Collections:</SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">Owning Collection:  </SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">org.dspace.content.crosswalk.MetadataValidationException: This packager cannot accept an encrypted PDF document</SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY:
>  'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;at org.dspace.content.packager.PDFPackager.crosswalkPDF&lt;PDFPackager.java:282&gt;</SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">at org.dspace.content.packager.PDFPackager.ingest&lt;PDFPackager.java:185&gt;</SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">at org.dspace.content.packager.PDFPackager.main&lt;PDFPackager.java:274&gt;</SPAN></div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman';
>  mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">org.dspace.content.crosswalk.MetadataValidationException: This packager cannot accept an encrypted PDF document</SPAN></div></SPAN>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA"></SPAN>&nbsp;</div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">why do i get this error?</SPAN></div>  <div><SPAN lang=EN-GB
>  style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">thanks in advance,</SPAN></div>  <div><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EL; mso-bidi-language: AR-SA">anna</SPAN></div><p>&#32;
>               <hr size=1><font size=-1 face=Arial>
>  Yahoo!<br>
>      (spam);  Yahoo! Mail          <br>
> <a href="http://login.yahoo.com/config/mail?.intl=gr">http://login.yahoo.com/config/mail?.intl=gr</a> </font>
> --0-1772219453-1194091970=:48884--
>
> --===============1373228826==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> _______________________________________________
> Dspace-general mailing list
> Dspace-general at mit.edu
> http://mailman.mit.edu/mailman/listinfo/dspace-general
>
> --===============1373228826==--




More information about the Dspace-general mailing list