dump header graphics

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160739 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-08-23 15:13:15 +00:00
parent b32676ce71
commit bf295239bb

View File

@ -484,11 +484,24 @@ public final class HWPFLister
HWPFDocument document = (HWPFDocument) _doc;
System.out.println( "=== Document part: MAIN ===" );
for ( OfficeDrawing officeDrawing : document.getOfficeDrawingsMain()
.getOfficeDrawings() )
if ( document.getOfficeDrawingsHeaders() != null )
{
System.out.println( officeDrawing );
System.out.println( "=== Document part: HEADER ===" );
for ( OfficeDrawing officeDrawing : document
.getOfficeDrawingsHeaders().getOfficeDrawings() )
{
System.out.println( officeDrawing );
}
}
if ( document.getOfficeDrawingsHeaders() != null )
{
System.out.println( "=== Document part: MAIN ===" );
for ( OfficeDrawing officeDrawing : document
.getOfficeDrawingsMain().getOfficeDrawings() )
{
System.out.println( officeDrawing );
}
}
}