Hi,
We are using slides 16.8.0 and trying to extract all text from the presentation. When parsing the Notes Master we don’t get the expected text:
“Notes header”
“Notes date and time”
“Notes footer"
Looking at what is returned from the following code, it looks like when the api is parsing the file and it gets the header and footer markers it is not looking up what the value is and substituting it like it does for datetime and slidenum. I don’t expect to see any place holder characters '’.
int shapeIndex = 0;
for (IShape shape : presentation.getMasterHandoutSlideManager().getMasterHandoutSlide().getShapes())
{
int paragraphIndex = 0;
for (IParagraph paragraph : textFrame.getParagraphs())
{
int portionIndex = 0;
for (IPortion portion : paragraph.getPortions())
{
IField field = portion.getField();
if (logger.isDebugEnabled())
{
logger.debug(“Portion[” + shapeIndex +
‘,’ + paragraphIndex +
‘,’ + portionIndex +
“] Field type=” + (field != null ? field.getType().getInternalString() : “null”) +
" “” + portion.getText() + ‘"’);
}
portionIndex++;
}
paragraphIndex++;
}
}
Portion[0,0,0] Field type=null "” <- This is probably the header marker. (Why was ‘header’ removed from Field in 16.x.x?)
Portion[0,0,1] Field type=null ""
Portion[1,0,0] Field type=datetime1 “"
Portion[1,0,1] Field type=null ""
Portion[2,0,0] Field type=footer "” <- This is the footer marker, and its text should be found in the document somewhere.
Portion[2,0,1] Field type=null ""
Portion[3,0,0] Field type=slidenum "*"
Portion[3,0,1] Field type=null ""
Regards
Nick