I'm sorry for my delay.  I've been meaning to respond.

Code from Tika might be useful.  We do extract macros with POI; but we
don't do it based on links in xlsx.

For ooxml:
https://github.com/apache/tika/blob/master/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/AbstractOOXMLExtractor.java#L415

For regular OLE2:
https://github.com/apache/tika/blob/master/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/OfficeParser.java#L312



And, of course, ppt does its completely different/own thing:
https://github.com/apache/tika/blob/master/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/HSLFExtractor.java#L283

On Tue, Jul 30, 2019 at 1:28 PM Mark Murphy <[email protected]> wrote:
>
> I'm pretty sure macros are not implemented.
>
> On Mon, Jul 29, 2019 at 6:43 PM Sekhar P <[email protected]> wrote:
>
> > Just want to add more information to my initial question:
> > i need to detect if there is any HYPERLINK macro in xls/xlsx files and
> > reject them, looks like we need to read each cell to verify this. Is there
> > any way to get the list of Macros or HYPERLINK macros at the workbook level
> > instead of reading each cell.
> >
> > Thank you
> > Sekhar
> >
> > On 2019/07/27 02:39:11, Sekhar P <[email protected]> wrote:
> > > hi,
> > > how to list macros in xls and xlsx files using apache poi
> > > can some one advise on this?
> > >
> > > thank you
> > > Sekhar
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to