Skip to content

Commit

Permalink
pdf2xml.dtd: Removed page 'top' and 'left' attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjw committed Jun 10, 2010
1 parent bc595f6 commit ff49f9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pdf2xml.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<!ELEMENT text (#PCDATA)>

<!ATTLIST page
top CDATA #REQUIRED
left CDATA #REQUIRED
width CDATA #REQUIRED
height CDATA #REQUIRED
number CDATA #REQUIRED
Expand Down
2 changes: 0 additions & 2 deletions src/org/crossref/pdf2xml/TextExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ public String toXml() {
for (Page page : previousPages) {
Element pageEle = doc.createElement("page");
PDRectangle cb = page.getClipBox();
pageEle.setAttribute("top", String.valueOf(cb.getUpperRightY()));
pageEle.setAttribute("left", String.valueOf(cb.getLowerLeftX()));
pageEle.setAttribute("width", String.valueOf(cb.getWidth()));
pageEle.setAttribute("height", String.valueOf(cb.getHeight()));
pageEle.setAttribute("number", String.valueOf(page.getNumber()));
Expand Down

0 comments on commit ff49f9e

Please sign in to comment.