You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by je...@apache.org on 2007/06/20 09:51:27 UTC
svn commit: r548968 - in /xmlgraphics/commons/trunk:
src/java/org/apache/xmlgraphics/xmp/XMPConstants.java
src/java/org/apache/xmlgraphics/xmp/schemas/DublinCoreAdapter.java
src/java/org/apache/xmlgraphics/xmp/schemas/pdf/PDFAOldXMPSchema.java
status.xml
Author: jeremias
Date: Wed Jun 20 00:51:26 2007
New Revision: 548968
URL: http://svn.apache.org/viewvc?view=rev&rev=548968
Log:
Fixed the PDF/A namespace according to ISO-19005-1:2005/Cor.1:2007 and deprecated the use of the draft PDF/A namespace used by Adobe Acrobat 7.x.
Modified:
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPConstants.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/DublinCoreAdapter.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/pdf/PDFAOldXMPSchema.java
xmlgraphics/commons/trunk/status.xml
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPConstants.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPConstants.java?view=diff&rev=548968&r1=548967&r2=548968
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPConstants.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPConstants.java Wed Jun 20 00:51:26 2007
@@ -42,12 +42,17 @@
/** Namespace URI for the Adobe PDF Schema */
String ADOBE_PDF_NAMESPACE = "http://ns.adobe.com/pdf/1.3/";
- /** Namespace URI for the PDF/A Identification Schema */
- String PDF_A_IDENTIFICATION = "http://www.aiim.org/pdfa/ns/id";
+ /**
+ * Namespace URI for the PDF/A Identification Schema
+ * (from the technical corrigendum 1 of ISO 19005-1:2005, note that the trailing slash
+ * was missing in the original ISO 19005-1:2005 specification)
+ */
+ String PDF_A_IDENTIFICATION = "http://www.aiim.org/pdfa/ns/id/";
/**
* Namespace URI for the PDF/A Identification Schema
* (from an older draft of ISO 19005-1, used by Adobe Acrobat)
+ * @deprecated Outdated, please use PDF_A_IDENTIFICATION instead.
*/
String PDF_A_IDENTIFICATION_OLD = "http://www.aiim.org/pdfa/ns/id.html";
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/DublinCoreAdapter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/DublinCoreAdapter.java?view=diff&rev=548968&r1=548967&r2=548968
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/DublinCoreAdapter.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/DublinCoreAdapter.java Wed Jun 20 00:51:26 2007
@@ -108,4 +108,27 @@
return getLangAlt(lang, "title");
}
+ /**
+ * Sets the description of the content of the resource.
+ * @param lang the language of the value ("x-default" or null for the default language)
+ * @param value the new value
+ */
+ public void setDescription(String lang, String value) {
+ setLangAlt("description", lang, value);
+ }
+
+ /** @return the description of the content of the resource (in the default language) */
+ public String getDescription() {
+ return getDescription(null);
+ }
+
+ /**
+ * Returns the description of the content of the resource in a language-dependant way.
+ * @param lang the language ("x-default" or null for the default language)
+ * @return the language-dependent value.
+ */
+ public String getDescription(String lang) {
+ return getLangAlt(lang, "description");
+ }
+
}
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/pdf/PDFAOldXMPSchema.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/pdf/PDFAOldXMPSchema.java?view=diff&rev=548968&r1=548967&r2=548968
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/pdf/PDFAOldXMPSchema.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/schemas/pdf/PDFAOldXMPSchema.java Wed Jun 20 00:51:26 2007
@@ -27,6 +27,7 @@
/**
* XMP Schema for PDF/A (ISO 19005-1). This schema uses a namespace URI used in a draft version
* of the ISO standard which is still necessary because of a bug in Adobe Acrobat.
+ * @deprecated Outdated, please use PDFAXMPSchema instead
*/
public class PDFAOldXMPSchema extends XMPSchema {
Modified: xmlgraphics/commons/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/status.xml?view=diff&rev=548968&r1=548967&r2=548968
==============================================================================
--- xmlgraphics/commons/trunk/status.xml (original)
+++ xmlgraphics/commons/trunk/status.xml Wed Jun 20 00:51:26 2007
@@ -28,6 +28,10 @@
<changes>
<release version="Trunk" date="n/a">
+ <action context="Code" dev="JM" type="fix">
+ Fixed the PDF/A namespace according to ISO-19005-1:2005/Cor.1:2007 and deprecated the
+ use of the draft PDF/A namespace used by Adobe Acrobat 7.x.
+ </action>
</release>
<release version="1.1" date="22 Dec 2006">
<action context="Code" dev="JM" type="add">
---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org