Hi Andreas
To get in touch with POI and my issues I dumped out a down scaled sample.
The sample has a master with an image and some other parts.
I focused on the image because it is not rendered.
First I remarked that the record type is sometimes cast to short.
But the type is an unsigned 4 byte number that does not fit into a
singed short.
Unfortunately removing the casts and defining the type to integer
changes nothing.
I printed out the record types which POI finds.
But I don't see any bitmap record.
See below the dump of the records.
Type: 0xff5, UserEditAtom
Type: 0x1772, PersistPtrIncrementalBlock
Type: 0x3e8, Document
Type: 0x3e9, DocumentAtom
Type: 0x3f2, Environment
Type: 0xfc8, SrKinsoku
Type: 0x7d5, FontCollection
Type: 0xfb7, FontEntityAtom
Type: 0xfb7, FontEntityAtom
Type: 0xfb7, FontEntityAtom
Type: 0xfb7, FontEntityAtom
Type: 0xfa4, TxCFStyleAtom
Type: 0xfa9, TxSIStyleAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0x40b, PPDrawingGroup
Type: 0xff0, SlideListWithText
Type: 0x3f3, SlidePersistAtom
Type: 0x7d0, List
Type: 0x3ff, VBAInfo
Type: 0x400, VBAInfoAtom
Type: 0x3fa, SlideViewInfo
Type: 0x407, OutlineViewInfo
Type: 0x3fa, SlideViewInfo
Type: 0xfd9, HeadersFooters
Type: 0xfda, HeadersFootersAtom
Type: 0xfd9, HeadersFooters
Type: 0xfda, HeadersFootersAtom
Type: 0xff0, SlideListWithText
Type: 0x3f3, SlidePersistAtom
Type: 0xff0, SlideListWithText
Type: 0x3f3, SlidePersistAtom
Type: 0x401, SSDocInfoAtom
Type: 0x3ea, EndDocument
Type: 0x3f8, MainMaster
Type: 0x3ef, SlideAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0xfa3, TxMasterStyleAtom
Type: 0x40c, PPDrawing
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa2, MasterTextPropAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa2, MasterTextPropAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xff8, GenericDateMCAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xffa, FooterMCAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xfd8, SlideNumberMCAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x3f0, Notes
Type: 0x3f1, NotesAtom
Type: 0x40c, PPDrawing
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xff9, null from specs specifies a HeaderMCAtom.
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xff8, GenericDateMCAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xffa, FooterMCAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xfd8, SlideNumberMCAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x3ee, Slide
Type: 0x3ef, SlideAtom
Type: 0x3f9, SSSlideInfoAtom
Type: 0xfd9, HeadersFooters
Type: 0xfda, HeadersFootersAtom
Type: 0x40c, PPDrawing
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0xf9f, TextHeaderAtom
Type: 0xfa0, TextCharsAtom
Type: 0xfa1, StyleTextPropAtom
Type: 0xfaa, TextSpecInfoAtom
Type: 0xfa6, TextRulerAtom
Type: 0x7f0, ColorSchemeAtom
Type: 0x1388, ProgTags
Type: 0x138a, ProgBinaryTag
Type: 0xfba, CString
Type: 0x138b, BinaryTagData
Type: 0x2eeb, null from specs specifies a SlideTime10Atom.
Type: 0x2b00, null from specs specifies a HashCode10Atom.
Type: 0xf144, null from specs specifies a
ExtTimeNodeContainer
Type: 0x2b02, null from specs specifies a BuildListContainer.
Type: 0x3f0, Notes
Type: 0x3f1, NotesAtom
Type: 0xfd9, HeadersFooters
Type: 0xfda, HeadersFootersAtom
Type: 0x40c, PPDrawing
Type: 0xbc3, OEPlaceholderAtom
Type: 0xbc3, OEPlaceholderAtom
Type: 0xf9f, TextHeaderAtom
Type: 0x7f0, ColorSchemeAtom
Any suggestion which record represents the image?
Do you know a software to analyse/visualize the binary data of the
Powerpoint?
Many Thanks
Regards
Benny
On 18.10.21 19:16, Andreas Beeker wrote:
Hello Bernhard,
I take care about rendering issues in HSLF/XSLF.
Either create a new bugzilla entry [1] with files/attachments which we
can put into our test data corpus (preferred).
Or get in contact with me directly and provide me the files and I try
to fix the implementation.
Out of scope are Word-Art and Charts, as those are a different beast.
For the time being, you might want the nightly a try - see
"Instructions to run":
http://poi.apache.org/components/slideshow/ppt-wmf-emf-renderer.html
If I commit any fixes, you'll have a fast feedback, if the issues were
resolved.
Best wishes,
Andi
[1]
https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI&component=SL+Common
--
____________________________________________________________________________
A-Design AG, Infosysteme, Baselstrasse 77, CH - 4500 Solothurn, Tel. +41
(0)32 627 00 77
Tel. direkt +41 (0)32 627 00 84, bernhard.schm...@a-design.ch
<mailto:bernhard.schm...@a-design.ch>, www.a-design.ch
<http://www.a-design.ch/>