private PDFGoTo internalLinkGoTo;
- private int pageNumber = -1, xPosition = 0, // x position on page
- yPosition = 0; // y position on page
+ private String pageNumber;
+ private int xPosition = 0; // x position on page
+ private int yPosition = 0; // y position on page
/**
*
* @param number page number of node
*/
- protected void setPageNumber(int number) {
- pageNumber = number;
+ protected void setPageNumber(String pageNumber) {
+ this.pageNumber = pageNumber;
}
* @return page number of this node
*/
public String getPageNumber() {
- return (pageNumber != -1) ? new Integer(pageNumber).toString() : null;
+ return pageNumber;
}
+ area.getTableCellXOffset() - ID_PADDING,
area.getPage().getBody().getYPosition()
- area.getAbsoluteHeight() + ID_PADDING);
- setPageNumber(id, area.getPage().getNumber());
+ setPageNumber(id, area.getPage().getFormattedNumber());
area.getPage().addToIDList(id);
}
}
* @param id The id whose page number is being set
* @param pageNumber The page number of the specified id
*/
- public void setPageNumber(String id, int pageNumber) {
+ public void setPageNumber(String id, String pageNumber) {
IDNode node = (IDNode)idReferences.get(id);
node.setPageNumber(pageNumber);
}