Skip to content

Commit

Permalink
Merge pull request #621 from veraPDF/attributes_methods
Browse files Browse the repository at this point in the history
Update attributes methods
  • Loading branch information
MaximPlusov authored Dec 12, 2023
2 parents ddc80dc + 4c22f52 commit 747b253
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ public GFSEFENote(PDStructElem structElemDictionary) {

@Override
public String getNoteType() {
return AttributeHelper.getNoteType(simplePDObject);
return AttributeHelper.getNoteType(simpleCOSObject);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public GFSEForm(PDStructElem structElemDictionary) {

@Override
public String getroleAttribute() {
return AttributeHelper.getRole(this.simplePDObject);
return AttributeHelper.getRole(this.simpleCOSObject);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public GFSEL(PDStructElem structElemDictionary) {

@Override
public String getListNumbering() {
return AttributeHelper.getListNumbering(simplePDObject);
return AttributeHelper.getListNumbering(simpleCOSObject);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public GFSETD(PDStructElem structElemDictionary) {
}

protected List<String> getHeaders() {
COSArray headers = AttributeHelper.getArrayAttributeValue(simplePDObject, ASAtom.HEADERS,
COSArray headers = AttributeHelper.getArrayAttributeValue(simpleCOSObject, ASAtom.HEADERS,
TaggedPDFConstants.TABLE, null);
if (headers != null) {
List<String> list = new LinkedList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected String getTHID() {
}

protected String getScope() {
return AttributeHelper.getScope(simplePDObject);
return AttributeHelper.getScope(simpleCOSObject);
}

public static String getDefaultScope(int rowNumber, int columnNumber) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public GFSETableCell(PDStructElem structElemDictionary, String standardType, Str

@Override
public Long getColSpan() {
return AttributeHelper.getColSpan(simplePDObject);
return AttributeHelper.getColSpan(simpleCOSObject);
}

@Override
public Long getRowSpan() {
return AttributeHelper.getRowSpan(simplePDObject);
return AttributeHelper.getRowSpan(simpleCOSObject);
}

public int getRowNumber() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public GFSAAttributesDictionary(PDStructElem pdStructElem) {

@Override
public long getColSpan() {
return AttributeHelper.getColSpan(pdStructElem);
return AttributeHelper.getColSpan(pdStructElem.getObject());
}

@Override
public long getRowSpan() {
return AttributeHelper.getRowSpan(pdStructElem);
return AttributeHelper.getRowSpan(pdStructElem.getObject());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public GFSAFigure(PDStructElem structElemDictionary, String parentsStandardTypes

@Override
public Boolean gethasBBox() {
return AttributeHelper.getBBox(this.structElemDictionary) != null;
return AttributeHelper.getBBox(this.structElemDictionary.getObject()) != null;
}
}

0 comments on commit 747b253

Please sign in to comment.