You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2008/08/17 22:15:51 UTC
svn commit: r686640 - in /poi/trunk/src: documentation/content/xdocs/
documentation/content/xdocs/hpbf/ scratchpad/src/org/apache/poi/hpbf/dev/
scratchpad/testcases/org/apache/poi/hpbf/data/
Author: nick
Date: Sun Aug 17 13:15:51 2008
New Revision: 686640
URL: http://svn.apache.org/viewvc?rev=686640&view=rev
Log:
Further HPBF documentation, and some more sample files used
Added:
poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.pub (with props)
poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.txt (with props)
poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.pub (with props)
poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.txt (with props)
poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.pub (with props)
poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.txt (with props)
Modified:
poi/trunk/src/documentation/content/xdocs/book.xml
poi/trunk/src/documentation/content/xdocs/hpbf/file-format.xml
poi/trunk/src/documentation/content/xdocs/hpbf/index.xml
poi/trunk/src/documentation/content/xdocs/index.xml
poi/trunk/src/scratchpad/src/org/apache/poi/hpbf/dev/HPBFDumper.java
Modified: poi/trunk/src/documentation/content/xdocs/book.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/book.xml?rev=686640&r1=686639&r2=686640&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/book.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/book.xml Sun Aug 17 13:15:51 2008
@@ -41,6 +41,7 @@
<menu-item label="HSLF" href="hslf/index.html"/>
<menu-item label="HSMF" href="hsmf/index.html"/>
<menu-item label="HDGF" href="hdgf/index.html"/>
+ <menu-item label="HPBF" href="hpbf/index.html"/>
<menu-item label="POI-Ruby" href="poi-ruby.html"/>
<menu-item label="POI-Utils" href="utils/index.html"/>
<menu-item label="Text Extraction" href="text-extraction.html"/>
Modified: poi/trunk/src/documentation/content/xdocs/hpbf/file-format.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/hpbf/file-format.xml?rev=686640&r1=686639&r2=686640&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/hpbf/file-format.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/hpbf/file-format.xml Sun Aug 17 13:15:51 2008
@@ -38,19 +38,19 @@
Root Entry -
Objects -
(no children)
- SummaryInformation <(0x05)SummaryInformation>
- DocumentSummaryInformation <(0x05)DocumentSummaryInformation>
+ SummaryInformation <(0x05)SummaryInformation>
+ DocumentSummaryInformation <(0x05)DocumentSummaryInformation>
Escher -
EscherStm
EscherDelayStm
Quill -
QuillSub -
CONTENTS
- CompObj <(0x01)CompObj>
+ CompObj <(0x01)CompObj>
Envelope
Contents
- Internal <(0x03)Internal>
- CompObj <(0x01)CompObj>
+ Internal <(0x03)Internal>
+ CompObj <(0x01)CompObj>
VBA -
(no children)
</source>
@@ -69,7 +69,7 @@
then both <em>Contents</em> and <em>CONTENTS</em> streams
change. There are no changes to the Escher streams.</p>
<p>If you set the background colour of a textbox, but make
- no changes to the text,
+ no changes to the text, (to finish off)</p>
</section>
<section><title>Structure of CONTENTS</title>
<p>First we have "CHNKINK ", followed by 24 bytes.</p>
@@ -162,6 +162,8 @@
00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
+
+(the text will then start)
</source>
</section>
</body>
Modified: poi/trunk/src/documentation/content/xdocs/hpbf/index.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/hpbf/index.xml?rev=686640&r1=686639&r2=686640&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/hpbf/index.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/hpbf/index.xml Sun Aug 17 13:15:51 2008
@@ -39,7 +39,7 @@
after that if demand and developer interest warrant it.</p>
<p>At this time, there is no <em>usermodel</em> api or similar.</p>
<p>Our current understanding of the file format is documented
- <link href="file-format.html">here</a>.</p>
+ <link href="file-format.html">here</link>.</p>
<note>
This code currently lives the
<link href="http://svn.apache.org/viewcvs.cgi/poi/trunk/src/scratchpad/">scratchpad area</link>
Modified: poi/trunk/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/index.xml?rev=686640&r1=686639&r2=686640&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/index.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/index.xml Sun Aug 17 13:15:51 2008
@@ -146,26 +146,30 @@
href="./hslf/index.html">the HSLF project page for more
information</link>.</p>
</section>
- <section><title>HDGF for Visio Documents</title>
- <p>HDGF is our port of the Microsoft Viso 97(-2003) file format to pure
- Java. It currently only supports reading at a very low level, and
- simple text extraction. Please see <link
- href="./hdgf/index.html">the HDGF project page for more
- information</link>.</p>
- </section>
<section><title>HPSF for Document Properties</title>
<p>HPSF is our port of the OLE 2 property set format to pure
Java. Property sets are mostly use to store a document's properties
(title, author, date of last modification etc.), but they can be used
for application-specific purposes as well.</p>
- <p>HPSF supports reading and writing of properties. However, you will
- need to be using version 3.0 of POI to utilise the write support.</p>
-
+ <p>HPSF supports both reading and writing of properties.</p>
<p>Please see <link href="./hpsf/index.html">the HPSF project
page</link> for more information.</p>
</section>
-
+ <section><title>HDGF for Visio Documents</title>
+ <p>HDGF is our port of the Microsoft Viso 97(-2003) file format to pure
+ Java. It currently only supports reading at a very low level, and
+ simple text extraction. Please see <link
+ href="./hdgf/index.html">the HDGF project page for more
+ information</link>.</p>
+ </section>
+ <section><title>HPBF for Publisher Documents</title>
+ <p>HPBF is our port of the Microsoft Publisher 98(-2007) file format to pure
+ Java. At the moment, we are still figuring out the file format, but we hope
+ to have simple text extraction shortly. Please see <link
+ href="./hpbf/index.html">the HPBF project page for more
+ information</link>.</p>
+ </section>
</section>
<section><title>Contributing </title>
Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hpbf/dev/HPBFDumper.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hpbf/dev/HPBFDumper.java?rev=686640&r1=686639&r2=686640&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hpbf/dev/HPBFDumper.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hpbf/dev/HPBFDumper.java Sun Aug 17 13:15:51 2008
@@ -310,8 +310,30 @@
);
}
}
+
+ // Text
System.out.println("");
+ System.out.println("TEXT:");
System.out.println(text);
+ System.out.println("");
+
+ // All the others
+ for(int i=0; i<20; i++) {
+ if(startType[i] == null) {
+ continue;
+ }
+ int start = from[i];
+
+ System.out.println(
+ startType[i] + " -> " + endType[i] +
+ " @ " + Integer.toHexString(start) +
+ " (" + start + ")"
+ );
+ System.out.println("\t" + dumpBytes(data, start, 4));
+ System.out.println("\t" + dumpBytes(data, start+4, 4));
+ System.out.println("\t" + dumpBytes(data, start+8, 4));
+ System.out.println("\t(etc)");
+ }
}
protected void dump001CompObj(DirectoryNode dir) {
Added: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.pub
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.pub?rev=686640&view=auto
==============================================================================
Binary file - no diff available.
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.pub
------------------------------------------------------------------------------
svn:executable = *
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.pub
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.txt
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.txt?rev=686640&view=auto
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.txt (added)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.txt Sun Aug 17 13:15:51 2008
@@ -0,0 +1,34 @@
+This is some text on the first page
+Itâs in times new roman, font size 10, all normal
+
+Weâve added some more text in here, to push all the offsets about a bit.
+
+
+
+This is in bold and italic
+Itâs Arial, 20 point font
+Itâs in the second textbox on the first page
+
+Ditto with more text in here.
+
+
+This is the second page
+
+It is also times new roman, 10 point
+
+
+Table on page 2 Top right
+P2 table left P2 table right
+Bottom Left Bottom Right
+
+
+This text is on page two
+This is a link to Apache POI
+More normal text
+Link to a file
+
+
+More text, more hyperlinks
+email link
+Final hyperlink
+Within doc to page 1
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample2.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.pub
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.pub?rev=686640&view=auto
==============================================================================
Binary file - no diff available.
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.pub
------------------------------------------------------------------------------
svn:executable = *
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.pub
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.txt
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.txt?rev=686640&view=auto
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.txt (added)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.txt Sun Aug 17 13:15:51 2008
@@ -0,0 +1,29 @@
+This is some text on the first page
+Itâs in times new roman, font size 10, all normal
+
+
+This is in bold and italic
+Itâs Arial, 20 point font
+Itâs in the second textbox on the first page
+
+
+This is the second page12345678
+
+It is also times new roman, 10 point
+
+
+Table on page 2 Top right
+P2 table left P2 table right
+Bottom Left Bottom Right
+
+
+This text is on page two
+This is a link to Apache POI
+More normal text
+Link to a file
+
+
+More text, more hyperlinks
+email link
+Final hyperlink
+Within doc to page 1
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample3.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.pub
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.pub?rev=686640&view=auto
==============================================================================
Binary file - no diff available.
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.pub
------------------------------------------------------------------------------
svn:executable = *
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.pub
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.txt
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.txt?rev=686640&view=auto
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.txt (added)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.txt Sun Aug 17 13:15:51 2008
@@ -0,0 +1,29 @@
+This is some text on the first page
+Itâs in times new roman, font size 10, all normal
+
+
+This is in bold and italic
+Itâs Arial, 20 point font
+Itâs in the second textbox on the first page
+
+
+This is the second page
+
+It is also times new roman, 10 point
+
+
+Table on page 2 Top right
+P2 table left P2 table right
+Bottom Left Bottom Right
+
+
+This text is on page two
+This is a link to Apache POI
+More normal text
+Link to a file
+
+
+More text, more hyperlinks
+email link
+Final hyperlink
+Within doc to page 1
Propchange: poi/trunk/src/scratchpad/testcases/org/apache/poi/hpbf/data/Sample4.txt
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org