You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ju...@apache.org on 2008/03/08 15:24:46 UTC

svn commit: r634972 [1/5] - in /incubator/pdfbox/trunk/migration: ./ fontbox/ jempbox/ pdfbox/

Author: jukka
Date: Sat Mar  8 06:24:45 2008
New Revision: 634972

URL: http://svn.apache.org/viewvc?rev=634972&view=rev
Log:
PDFBOX-1: Exported issues from SourceForge

Added:
    incubator/pdfbox/trunk/migration/
    incubator/pdfbox/trunk/migration/fontbox/
    incubator/pdfbox/trunk/migration/fontbox/bugs.xml
    incubator/pdfbox/trunk/migration/fontbox/patches.xml
    incubator/pdfbox/trunk/migration/jempbox/
    incubator/pdfbox/trunk/migration/jempbox/bugs.xml
    incubator/pdfbox/trunk/migration/jempbox/features.xml
    incubator/pdfbox/trunk/migration/jempbox/patches.xml
    incubator/pdfbox/trunk/migration/pdfbox/
    incubator/pdfbox/trunk/migration/pdfbox/bugs.xml
    incubator/pdfbox/trunk/migration/pdfbox/features.xml
    incubator/pdfbox/trunk/migration/pdfbox/patches.xml
    incubator/pdfbox/trunk/migration/pdfbox/support.xml

Added: incubator/pdfbox/trunk/migration/fontbox/bugs.xml
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/migration/fontbox/bugs.xml?rev=634972&view=auto
==============================================================================
--- incubator/pdfbox/trunk/migration/fontbox/bugs.xml (added)
+++ incubator/pdfbox/trunk/migration/fontbox/bugs.xml Sat Mar  8 06:24:45 2008
@@ -0,0 +1,202 @@
+<tracker version="1.0" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sourceforge.net/export/sf_tracker_export.xsd">
+	<artifact id="1769918">
+		<submitted_by>yt_okamoto</submitted_by>
+		<submitted_date>2007-08-08 03:20</submitted_date>
+		<artifact_type id="773646">773646</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Open</status>
+		<resolution>None</resolution>
+		<summary>CMapParser "cidrange" support</summary>
+		<detail>Hi Ben,
+
+FontBox couldn't parse some cmap files which contain "cidrange" property (ex. 90ms-RKSJ-H) correctly. Extract text from PDF which contain such encoding by PDFBox, it will fail as follows.
+
+java.io.IOException: Unknown encoding for '90ms-RKSJ-H'
+	at org.pdfbox.encoding.EncodingManager.getEncoding(EncodingManager.java:82)
+	at org.pdfbox.pdmodel.font.PDFont.getEncoding(PDFont.java:618)
+	at org.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:471)
+	at org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:325)
+	at org.pdfbox.util.operator.ShowText.process(ShowText.java:64)
+	at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:452)
+	at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215)
+	at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
+	at org.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:336)
+	at org.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:259)
+	at org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:216)
+	at org.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:149)
+	at TempTestMain.main(TempTestMain.java:56)
+
+Regards,
+Yuta
+</detail>
+	</artifact>
+	<artifact id="1426440">
+		<submitted_by>ng_aldridge</submitted_by>
+		<submitted_date>2006-02-07 10:47</submitted_date>
+		<artifact_type id="773646">773646</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Closed</status>
+		<resolution>Fixed</resolution>
+		<summary>Problem loading Truetype font</summary>
+		<detail>Hi,
+
+Although Windows seems to like loading this file,
+Fontbox seems to choke:
+
+
+java.io.EOFException
+	at java.io.RandomAccessFile.readUnsignedShort(Unknown
+Source)
+	at
+org.fontbox.ttf.RAFDataStream.readUnsignedShort(RAFDataStream.java:132)
+	at
+org.fontbox.ttf.CMAPEncodingEntry.initSubtable(CMAPEncodingEntry.java:142)
+	at org.fontbox.ttf.CMAPTable.initData(CMAPTable.java:104)
+	at org.fontbox.ttf.TTFParser.parseTTF(TTFParser.java:158)
+	at org.fontbox.ttf.TTFParser.parseTTF(TTFParser.java:90)
+	at
+org.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:167)
+	at
+org.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:140)
+	at eforms.EFTester.dumpPDFDetails(EFTester.java:202)
+	at eforms.EFTester.run(EFTester.java:272)
+	at eforms.EFTester.main(EFTester.java:95)
+
+I have attached the offending font.
+
+Regards,
+
+Nathan</detail>
+		<follow_ups>
+			<item>
+				<date>1162434643</date>
+				<sender>benlitchfield</sender>
+				<text>Logged In: YES 
+user_id=601708
+
+issue with parsing, fixed in CVS.
+
+Ben</text>
+			</item>
+		</follow_ups>
+		<existingfiles>
+			<file>
+				<id>166537</id>
+				<name>Wphv04n_.zip</name>
+				<description>WP-TypographicSymbols.ttf</description>
+				<filesize>16058</filesize>
+				<filetype>application/x-zip-compressed</filetype>
+				<adddate>1139338060</adddate>
+				<submitted_by>1111818</submitted_by>
+			</file>
+		</existingfiles>
+		<change_log>
+			<item>
+				<field>close_date</field>
+				<old_value>0</old_value>
+				<date>1162434643</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>resolution_id</field>
+				<old_value>100</old_value>
+				<date>1162434643</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>status_id</field>
+				<old_value>1</old_value>
+				<date>1162434643</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>File Added</field>
+				<old_value>166537: Wphv04n_.zip</old_value>
+				<date>1139338062</date>
+				<by>ng_aldridge</by>
+			</item>
+		</change_log>
+	</artifact>
+	<artifact id="1362857">
+		<submitted_by>yves_bussard</submitted_by>
+		<submitted_date>2005-11-21 07:39</submitted_date>
+		<artifact_type id="773646">773646</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Closed</status>
+		<resolution>Fixed</resolution>
+		<summary>IndexOutOfBoundException in CMapParser</summary>
+		<detail>Hi Ben,
+
+I got an IndexOutOfBoundException in the CMapParser. I
+looked at the pdf document (which unfortunately I'm not
+allowed to attach) and saw in the PdfReference 1.6 on
+page 445 that the dstString in a ToUnicode CMap may
+contain up to 512 bytes (you reserve only 4 bytes in
+line 258 of the CMapParser). In fact I had 8 and 12
+bytes in some cases (ligatures). Anyway I believe you
+should use a 512 byte array when parsing the CMap. Also
+I suggest you make the buffer an member field of the
+parser so you don't have to instantiate an array each
+time you parse the next token. But then you'll have to
+change the code 'buffer[bufferIndex]+= intValue;' (line
+291) as the buffer won't be initialized to zeroes each
+time you call parseNextToken().
+
+cheers
+Yves</detail>
+		<follow_ups>
+			<item>
+				<date>1162427496</date>
+				<sender>benlitchfield</sender>
+				<text>Logged In: YES 
+user_id=601708
+
+changed buffer to be 512 and only created once per class instance, initialized the value when we increase the 
+buffer index</text>
+			</item>
+			<item>
+				<date>1144755003</date>
+				<sender>pedropuchalski</sender>
+				<text>Logged In: YES 
+user_id=1463773
+
+I have encounter the same bug in my pdf document. I have fix 
+it for myself. Mayby You or Ben want my code? I'm asking 
+here, couse I don't know how to participate in other way in 
+this project. Best regards
+Pedro</text>
+			</item>
+		</follow_ups>
+		<change_log>
+			<item>
+				<field>close_date</field>
+				<old_value>0</old_value>
+				<date>1162427496</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>resolution_id</field>
+				<old_value>100</old_value>
+				<date>1162427496</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>status_id</field>
+				<old_value>1</old_value>
+				<date>1162427496</date>
+				<by>benlitchfield</by>
+			</item>
+		</change_log>
+	</artifact>
+</tracker>
+
+ 	  	 

Added: incubator/pdfbox/trunk/migration/fontbox/patches.xml
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/migration/fontbox/patches.xml?rev=634972&view=auto
==============================================================================
--- incubator/pdfbox/trunk/migration/fontbox/patches.xml (added)
+++ incubator/pdfbox/trunk/migration/fontbox/patches.xml Sat Mar  8 06:24:45 2008
@@ -0,0 +1,327 @@
+<tracker version="1.0" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sourceforge.net/export/sf_tracker_export.xsd">
+	<artifact id="1880469">
+		<submitted_by>jukkaz</submitted_by>
+		<submitted_date>2008-01-26 14:23</submitted_date>
+		<artifact_type id="773648">773648</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Open</status>
+		<resolution>None</resolution>
+		<summary>Updated Maven POM file</summary>
+		<detail>Hi,
+
+Attached is an updated Maven 2 POM file for FontBox.
+This POM file is not designed to replace the Ant build,
+just to make it easy for Maven users to quickly build
+FontBox (mvn install) and set it up for IDE integration
+(mvn eclipse:eclipse).
+
+BR,
+
+Jukka Zitting
+</detail>
+		<existingfiles>
+			<file>
+				<id>263868</id>
+				<name>pom.xml</name>
+				<description>Maven 2 POM file for FontBox</description>
+				<filesize>3170</filesize>
+				<filetype>text/xml</filetype>
+				<adddate>1201386188</adddate>
+				<submitted_by>660288</submitted_by>
+			</file>
+		</existingfiles>
+		<change_log>
+			<item>
+				<field>File Added</field>
+				<old_value>263868: pom.xml</old_value>
+				<date>1201386190</date>
+				<by>jukkaz</by>
+			</item>
+		</change_log>
+	</artifact>
+	<artifact id="1509929">
+		<submitted_by>tomidev</submitted_by>
+		<submitted_date>2006-06-21 05:49</submitted_date>
+		<artifact_type id="773648">773648</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="9">9</priority>
+		<status>Closed</status>
+		<resolution>Fixed</resolution>
+		<summary>java.lang.ArrayIndexOutOfBoundsException</summary>
+		<detail>We have the same problem, as described in:
+http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1490186&amp;group_id=149227&amp;atid=773648.
+
+This problem was caused by many PDF documents, we
+changed the code, like described in the patch abouve
+and everything worked fine.
+
+java.lang.ArrayIndexOutOfBoundsException: 4
+	at
+org.fontbox.cmap.CMapParser.parseNextToken(CMapParser.java:294)
+	at org.fontbox.cmap.CMapParser.parse(CMapParser.java:103)
+	at
+org.pdfbox.pdmodel.font.PDFont.parseCmap(PDFont.java:549)
+	at org.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:372)
+	at
+org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:346)
+	at
+org.pdfbox.util.operator.ShowText.process(ShowText.java:66)
+	at
+org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:508)
+	at
+org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:221)
+	at
+org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
+	at
+org.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:341)
+	at
+org.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:251)
+	at
+org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:203)
+	at pdf2text.Main.main(Main.java:51)
+
+The test application, looks like below:
+
+package pdf2text;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
+import java.util.Iterator;
+
+import org.apache.commons.io.FileUtils;
+import org.pdfbox.pdmodel.PDDocument;
+import org.pdfbox.util.PDFTextStripper;
+
+public class Main {
+
+	private static File file;
+
+	private static PDDocument pdfdoc;
+
+	private static Writer output;
+
+	/**
+	 * @param args
+	 */
+	public static void main(String[] args) {
+		try {
+			if (args.length &lt; 1) {
+				System.err.println("Usage: Main &lt;dir-to-check&gt;");
+			}
+
+			// Verzeichni mit PDF Dokumenten
+			System.out.println("Using directory " + args[0]);
+			File dir = new File(args[0]);
+			String[] fileExtensions = { "pdf" };
+			boolean recursive = true;
+
+			// Datei mit extrahiertem Text
+			String extracted = "C:/Temp/pdf-extracted-text.txt";
+
+			for (Iterator files = FileUtils.iterateFiles(dir,
+fileExtensions,
+					recursive); files.hasNext();) {
+				file = (File) files.next();
+				try {
+					pdfdoc = PDDocument.load(file);
+
+					FileOutputStream fos = new
+FileOutputStream(extracted);
+					output = new OutputStreamWriter(fos, "UTF-16");
+
+					PDFTextStripper stripper = null;
+					stripper = new PDFTextStripper();
+					stripper.writeText(pdfdoc, output);
+					pdfdoc.close();
+					System.out.println("Successfully read " +
+file.getName());
+
+				} catch (IOException e) {
+					e.printStackTrace();
+				} catch (Exception e) {
+					// Fehlerhafte Files werden auf die Console
+geschrieben
+					System.out.println("### EXCEPTION ###");
+					System.out.println(file.getName());
+					e.printStackTrace();
+					System.out.println();
+				}
+			}
+		} catch (Throwable thr) {
+			thr.printStackTrace();
+		}
+
+	}
+}
+
+
+We are using PDFBox with FontBox within WebTest and we
+are doing automated PDF document tests.
+
+Since there is already a never version of PDFBox with
+FontBox in WebTest, we would like to patch this problem
+within FontBox and not within WebTest. We can't go back
+to PDFBox 0.7.2 for different reasons.
+
+I attached a test PDF document, which causes this error.
+
+Any help is appreciated.
+
+Thanks a lot and best regards,
+Tomi</detail>
+		<follow_ups>
+			<item>
+				<date>1162427725</date>
+				<sender>benlitchfield</sender>
+				<text>Logged In: YES 
+user_id=601708
+
+Fixed in CVS.</text>
+			</item>
+			<item>
+				<date>1150894334</date>
+				<sender>tomidev</sender>
+				<text>Logged In: YES 
+user_id=612341
+
+I changed the priority, since without a patch we can't use
+the current version of PDFBox
+(pdfbox-0.7.3-dev-log4j-20060611) with FontBox.</text>
+			</item>
+		</follow_ups>
+		<existingfiles>
+			<file>
+				<id>182432</id>
+				<name>fontbox-test.pdf</name>
+				<description>PDF document, which causes a java.lang.ArrayIndexOutOfBoundsException within FontBox</description>
+				<filesize>124066</filesize>
+				<filetype>application/pdf</filetype>
+				<adddate>1150894184</adddate>
+				<submitted_by>612341</submitted_by>
+			</file>
+		</existingfiles>
+		<change_log>
+			<item>
+				<field>close_date</field>
+				<old_value>0</old_value>
+				<date>1162427725</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>resolution_id</field>
+				<old_value>100</old_value>
+				<date>1162427725</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>status_id</field>
+				<old_value>1</old_value>
+				<date>1162427725</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>priority</field>
+				<old_value>5</old_value>
+				<date>1150894335</date>
+				<by>tomidev</by>
+			</item>
+			<item>
+				<field>File Added</field>
+				<old_value>182432: fontbox-test.pdf</old_value>
+				<date>1150894184</date>
+				<by>tomidev</by>
+			</item>
+		</change_log>
+	</artifact>
+	<artifact id="1490186">
+		<submitted_by>pedropuchalski</submitted_by>
+		<submitted_date>2006-05-17 04:38</submitted_date>
+		<artifact_type id="773648">773648</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Closed</status>
+		<resolution>Fixed</resolution>
+		<summary>Patch witch fix NullPointerException in CMapPerser</summary>
+		<detail>This bug was coused by declaring four elements array of 
+bytes(new byte[4]), but there may by much more. I 
+simply replaced byte array by ArrayList object and it 
+works just fine for me:)
+
+This array was used to extract UTF-16BE code for 
+coresponding char code in the CMap. And sometlimes this 
+is much more then 4 bytes. I. e. "1/4" is rendered and 
+described as one char/glyph in pdf, but will be 6 bytes 
+long in UTF-16BE: &lt;0031002f0032&gt;.
+ </detail>
+		<follow_ups>
+			<item>
+				<date>1162427533</date>
+				<sender>benlitchfield</sender>
+				<text>Logged In: YES 
+user_id=601708
+
+increased buffer size.</text>
+			</item>
+			<item>
+				<date>1147866444</date>
+				<sender>pedropuchalski</sender>
+				<text>Logged In: YES 
+user_id=1463773
+
+Sorry...:/ When I was writing this post I was thinking about 
+ArrayOutOfBoundsException NOT NullPointerException. I think 
+if I was native speeker there won't be such mistake, but I'm 
+not:/ </text>
+			</item>
+		</follow_ups>
+		<existingfiles>
+			<file>
+				<id>178268</id>
+				<name>CMapPerser-NullPointerExceptionFix.patch</name>
+				<description>CMapPerser NullPointerException Fix, Patch</description>
+				<filesize>2003</filesize>
+				<filetype>application/octet-stream</filetype>
+				<adddate>1147865937</adddate>
+				<submitted_by>1463773</submitted_by>
+			</file>
+		</existingfiles>
+		<change_log>
+			<item>
+				<field>close_date</field>
+				<old_value>0</old_value>
+				<date>1162427533</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>resolution_id</field>
+				<old_value>100</old_value>
+				<date>1162427533</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>status_id</field>
+				<old_value>1</old_value>
+				<date>1162427533</date>
+				<by>benlitchfield</by>
+			</item>
+			<item>
+				<field>File Added</field>
+				<old_value>178268: CMapPerser-NullPointerExceptionFix.patch</old_value>
+				<date>1147865938</date>
+				<by>pedropuchalski</by>
+			</item>
+		</change_log>
+	</artifact>
+</tracker>
+
+ 	  	 

Added: incubator/pdfbox/trunk/migration/jempbox/bugs.xml
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/migration/jempbox/bugs.xml?rev=634972&view=auto
==============================================================================
--- incubator/pdfbox/trunk/migration/jempbox/bugs.xml (added)
+++ incubator/pdfbox/trunk/migration/jempbox/bugs.xml Sat Mar  8 06:24:45 2008
@@ -0,0 +1,160 @@
+<tracker version="1.0" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sourceforge.net/export/sf_tracker_export.xsd">
+	<artifact id="1536517">
+		<submitted_by>nobody</submitted_by>
+		<submitted_date>2006-08-08 02:07</submitted_date>
+		<artifact_type id="831987">831987</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Christopher Oezbek</assigned_to>
+		<priority id="5">5</priority>
+		<status>Closed</status>
+		<resolution>Fixed</resolution>
+		<summary>DateParsing does not work</summary>
+		<detail>When copying dates from Acrobat 7.0.7 the date format 
+is parsed incorrectly.
+
+a date like "2006-08-07T14:44:24+02:00" is parsed 
+incorrectly since the dashes and colons are 
+disregarded.
+
+Adding a replaceAll("[-:T]", "") and changing the 
+parsing of the timezone to
+
+if( date.length() &gt;= 19 ){
+  minutes = Integer.parseInt( date.substring( 17, 19
+ ) );
+}
+
+fixes the problem for me.
+
+I also need to change 
+
+retval = new GregorianCalendar( year, month-1, day, 
+hour, minute, second );
+
+to
+
+retval = new GregorianCalendar( year, month, day, 
+hour, minute, second );
+
+Since months start with 1 (see http://www.w3.org/TR/
+NOTE-datetime).
+
+Greetings,
+  Christopher
+</detail>
+		<follow_ups>
+			<item>
+				<date>1171618537</date>
+				<sender>coezbek</sender>
+				<text>Logged In: YES 
+user_id=1558521
+Originator: NO
+
+This issue is already fixed in CVS and will be contained in the upcoming 0.2 release.
+
+It might be that there is still a problem with the timezone parsing...
+
+Christopher</text>
+			</item>
+		</follow_ups>
+		<change_log>
+			<item>
+				<field>close_date</field>
+				<old_value>0</old_value>
+				<date>1171618537</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>assigned_to</field>
+				<old_value>100</old_value>
+				<date>1171618537</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>resolution_id</field>
+				<old_value>100</old_value>
+				<date>1171618537</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>status_id</field>
+				<old_value>1</old_value>
+				<date>1171618537</date>
+				<by>coezbek</by>
+			</item>
+		</change_log>
+	</artifact>
+	<artifact id="1493735">
+		<submitted_by>davidin</submitted_by>
+		<submitted_date>2006-05-23 10:51</submitted_date>
+		<artifact_type id="831987">831987</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Closed</status>
+		<resolution>Fixed</resolution>
+		<summary>XMPMetadata constructor doesn't work.</summary>
+		<detail>XMPMetadata constructor doesn't work.
+
+XMPMetadata xmp = new XMPMetadata();
+
+It throws DOMException with NAMESPACE_ERR.
+I saw the source and I think the problem is the method
+"setAttributeNS" in the constructor. 
+
+</detail>
+		<follow_ups>
+			<item>
+				<date>1171618428</date>
+				<sender>coezbek</sender>
+				<text>Logged In: YES 
+user_id=1558521
+Originator: NO
+
+This issue is already fixed in CVS and will be contained in the upcoming 0.2 release.
+
+Christopher</text>
+			</item>
+			<item>
+				<date>1154714558</date>
+				<sender>coezbek</sender>
+				<text>Logged In: YES 
+user_id=1558521
+
+I attached a patch to the JempBox-patch section, that fixes 
+the problem by using the setAttributeNS correctly. 
+ 
+http://sourceforge.net/tracker/
+index.php?func=detail&amp;aid=1534696&amp;group_id=164503&amp;atid=831989
+ 
+ 
+Greetings, 
+Christopher </text>
+			</item>
+		</follow_ups>
+		<change_log>
+			<item>
+				<field>close_date</field>
+				<old_value>0</old_value>
+				<date>1171618478</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>resolution_id</field>
+				<old_value>100</old_value>
+				<date>1171618478</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>status_id</field>
+				<old_value>1</old_value>
+				<date>1171618478</date>
+				<by>coezbek</by>
+			</item>
+		</change_log>
+	</artifact>
+</tracker>
+
+ 	  	 

Added: incubator/pdfbox/trunk/migration/jempbox/features.xml
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/migration/jempbox/features.xml?rev=634972&view=auto
==============================================================================
--- incubator/pdfbox/trunk/migration/jempbox/features.xml (added)
+++ incubator/pdfbox/trunk/migration/jempbox/features.xml Sat Mar  8 06:24:45 2008
@@ -0,0 +1,61 @@
+<tracker version="1.0" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sourceforge.net/export/sf_tracker_export.xsd">
+	<artifact id="1655371">
+		<submitted_by>benlitchfield</submitted_by>
+		<submitted_date>2007-02-08 08:45</submitted_date>
+		<artifact_type id="831990">831990</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Open</status>
+		<resolution>None</resolution>
+		<summary>Create TIFF Sample</summary>
+		<detail>Create a sample showing how to modify XMP data in a TIFF file.
+
+</detail>
+	</artifact>
+	<artifact id="1654373">
+		<submitted_by>benlitchfield</submitted_by>
+		<submitted_date>2007-02-07 09:17</submitted_date>
+		<artifact_type id="831990">831990</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Open</status>
+		<resolution>None</resolution>
+		<summary>Create JPG Sample</summary>
+		<detail>Create a sample that will read/write metadata into a JPG file.</detail>
+		<follow_ups>
+			<item>
+				<date>1182816279</date>
+				<sender>benlitchfield</sender>
+				<text>Logged In: YES 
+user_id=601708
+Originator: YES
+
+Many users have requested a JPG example, I tried loading a JPG with ImageIO and it does not appear to give access to the XMP metadata stream :(
+
+If someone can supply a sample showing raw access to the XMP stream using standard Java classes then please send it over to me.
+
+Thanks,
+Ben</text>
+			</item>
+		</follow_ups>
+	</artifact>
+	<artifact id="1597774">
+		<submitted_by>benlitchfield</submitted_by>
+		<submitted_date>2006-11-16 06:50</submitted_date>
+		<artifact_type id="831990">831990</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Nobody/Anonymous</assigned_to>
+		<priority id="5">5</priority>
+		<status>Open</status>
+		<resolution>None</resolution>
+		<summary>Support IPTC Schema</summary>
+		<detail>see http://www.iptc.org/IPTC4XMP/ for more details.</detail>
+	</artifact>
+</tracker>
+
+ 	  	 

Added: incubator/pdfbox/trunk/migration/jempbox/patches.xml
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/migration/jempbox/patches.xml?rev=634972&view=auto
==============================================================================
--- incubator/pdfbox/trunk/migration/jempbox/patches.xml (added)
+++ incubator/pdfbox/trunk/migration/jempbox/patches.xml Sat Mar  8 06:24:45 2008
@@ -0,0 +1,283 @@
+<tracker version="1.0" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sourceforge.net/export/sf_tracker_export.xsd">
+	<artifact id="1537629">
+		<submitted_by>coezbek</submitted_by>
+		<submitted_date>2006-08-09 13:02</submitted_date>
+		<artifact_type id="831989">831989</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Christopher Oezbek</assigned_to>
+		<priority id="5">5</priority>
+		<status>Closed</status>
+		<resolution>Fixed</resolution>
+		<summary>Several fixes for JempBox 0.1</summary>
+		<detail>This patch fixes several issues with JempBox 0.1:
+
+  * Fixed Namespace_ERR
+  * XMPSchemaBasic 
+    * Wrong name for xmp:CreatorTool fixed
+  * XMPMetadata
+    * Added method to return Schemas by NamespaceURI
+  * XMPSchema
+    * Added documentation on how to add new subclasses.
+    * Fixed getTextProperty to deal with attribute 
+nodes.
+  * DateConverter
+    * Fixed to work with Acrobat 7.0.7 output.
+  * XMLUtil
+    * Added method to save to OutputStream instead of 
+file.
+
+Greetings,
+  Christopher</detail>
+		<follow_ups>
+			<item>
+				<date>1171618666</date>
+				<sender>coezbek</sender>
+				<text>Logged In: YES 
+user_id=1558521
+Originator: YES
+
+This patch was integrated into CVS and will be contained in the upcoming 0.2 release.
+
+Cheers,
+  Christopher</text>
+			</item>
+			<item>
+				<date>1156411971</date>
+				<sender>coezbek</sender>
+				<text>Logged In: YES 
+user_id=1558521
+
+Mh, that looks like a Sourceforge Problem (they frequently 
+have problems with CVS). Maybe try to download:
+
+http://prdownloads.sourceforge.net/jempbox/JempBox-0.1.0-
+dev.zip?download
+
+which I guess would be a snapshot from CVS.
+
+Good luck,
+  Christopher</text>
+			</item>
+			<item>
+				<date>1156410960</date>
+				<sender>davidin</sender>
+				<text>Logged In: YES 
+user_id=1519856
+
+Hi,
+I've understood how to patch the source code in Eclipse but
+I can't connect to CVS JempBox repository...
+
+I use Eclipse also for get CVS code so I do:
+
+1)File--&gt;New--&gt;Project from CVS
+2)I enter the following parameters:
+-------------------------------------
+Host: "jempbox.cvs.sourceforge.net"
+Repository path: "/cvsroot/jempbox"
+User: "anonymous"
+Connection Type: "pserver"
+---------------------------------------
+
+But It doesn't connect to repository... It says:
+"Authenticating using pserver" but after nothing happens...
+
+I've tried to connect to PDFBOX repository and It works so I
+exclude a firewall problem or something like this... I think
+the problem is in jempbox repository. 
+
+The only way is to get code from CVS web repository, import
+it in eclipse manually and apply patch, but I doesn't like
+this way...
+
+Christopher do you have any suggestion? Why I can't connect
+to repository? 
+
+Thanks in advance,
+Davide.</text>
+			</item>
+			<item>
+				<date>1156375369</date>
+				<sender>coezbek</sender>
+				<text>Logged In: YES 
+user_id=1558521
+
+Hi David,
+  you need to download the source code from CVS (http://
+sourceforge.net/cvs/?group_id=164503) and then use patch to 
+apply the patch.txt. This is easiest to do if you use 
+Eclipse which actually has an entry under Team -&gt; Apply 
+Patch that does exactely this.
+
+Good luck,
+  Christopher</text>
+			</item>
+			<item>
+				<date>1156350161</date>
+				<sender>davidin</sender>
+				<text>Logged In: YES 
+user_id=1519856
+
+Hi Christopher,
+How can I patch the JempBox library with your changes? I' ve
+downloaded the file .txt but I don't know how to apply
+changes to jar file...
+
+Thanks,
+Davide</text>
+			</item>
+		</follow_ups>
+		<existingfiles>
+			<file>
+				<id>188418</id>
+				<name>JempBox2.txt</name>
+				<description>Fixed style in the patch.</description>
+				<filesize>61189</filesize>
+				<filetype>text/plain</filetype>
+				<adddate>1155155256</adddate>
+				<submitted_by>1558521</submitted_by>
+			</file>
+		</existingfiles>
+		<change_log>
+			<item>
+				<field>close_date</field>
+				<old_value>0</old_value>
+				<date>1171618666</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>assigned_to</field>
+				<old_value>100</old_value>
+				<date>1171618666</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>resolution_id</field>
+				<old_value>100</old_value>
+				<date>1171618666</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>status_id</field>
+				<old_value>1</old_value>
+				<date>1171618666</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>File Added</field>
+				<old_value>188418: JempBox2.txt</old_value>
+				<date>1155155256</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>File Deleted</field>
+				<old_value>188414: </old_value>
+				<date>1155155256</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>File Added</field>
+				<old_value>188414: JempBox2.txt</old_value>
+				<date>1155153755</date>
+				<by>coezbek</by>
+			</item>
+		</change_log>
+	</artifact>
+	<artifact id="1534696">
+		<submitted_by>coezbek</submitted_by>
+		<submitted_date>2006-08-04 10:53</submitted_date>
+		<artifact_type id="831989">831989</artifact_type>
+		<category id="100">None</category>
+		<artifact_group id="100"></artifact_group>
+		<assigned_to>Christopher Oezbek</assigned_to>
+		<priority id="5">5</priority>
+		<status>Closed</status>
+		<resolution>Accepted</resolution>
+		<summary>Fixed Problem with setAttributeNS (NAMESPACE_ERR)</summary>
+		<detail>This fixes a problem with all calls to setAttributeNS 
+in JempBox that violate the xml-specification.
+
+At the moment the following calls are in place:
+
+xmpMeta.setAttributeNS( "adobe:ns:meta/", "xmlns:x", 
+"adobe:ns:meta/" );
+
+the correct way would be 
+
+xmpMeta.setAttributeNS( "http://www.w3.org/2000/xmlns/
+", "xmlns:x", "adobe:ns:meta/" );
+
+The following comes from the DOM-specification (under 
+setAttributeNS - http://www.w3.org/TR/DOM-Level-2-Core/
+core.html):
+
+NAMESPACE_ERR: Raised if the qualifiedName is 
+malformed, if the qualifiedName has a prefix and the 
+namespaceURI is null, if the qualifiedName has a 
+prefix that is "xml" and the namespaceURI is different 
+from "http://www.w3.org/XML/1998/namespace", or if the 
+qualifiedName is "xmlns" and the namespaceURI is 
+different from "http://www.w3.org/2000/xmlns/".
+
+Christopher</detail>
+		<follow_ups>
+			<item>
+				<date>1171618619</date>
+				<sender>coezbek</sender>
+				<text>Logged In: YES 
+user_id=1558521
+Originator: YES
+
+This patch was integrated into CVS and will be contained in the upcoming 0.2 release.
+
+Christopher</text>
+			</item>
+		</follow_ups>
+		<existingfiles>
+			<file>
+				<id>187648</id>
+				<name>JempBox.txt</name>
+				<description>setAttributeNS-patch</description>
+				<filesize>5458</filesize>
+				<filetype>text/plain</filetype>
+				<adddate>1154714001</adddate>
+				<submitted_by>1558521</submitted_by>
+			</file>
+		</existingfiles>
+		<change_log>
+			<item>
+				<field>close_date</field>
+				<old_value>0</old_value>
+				<date>1171618619</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>assigned_to</field>
+				<old_value>100</old_value>
+				<date>1171618619</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>resolution_id</field>
+				<old_value>100</old_value>
+				<date>1171618619</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>status_id</field>
+				<old_value>1</old_value>
+				<date>1171618619</date>
+				<by>coezbek</by>
+			</item>
+			<item>
+				<field>File Added</field>
+				<old_value>187648: JempBox.txt</old_value>
+				<date>1154714001</date>
+				<by>coezbek</by>
+			</item>
+		</change_log>
+	</artifact>
+</tracker>
+
+