https://issues.apache.org/bugzilla/show_bug.cgi?id=56812

            Bug ID: 56812
           Summary: XSLFPictureData reference to linked picture file
           Product: POI
           Version: unspecified
          Hardware: Macintosh
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLF
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31873
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31873&action=edit
Powerpoint file with three pictures. First picture is embedded, second picture
is linked and embedded, third picture is only linked.

When adding a picture to a PowerPoint presentation, you can embed the file or
link to it. The embedded filename can be accessed using:

XSLFPictureData data = ((XSLFPictureShape) shape).getPictureData();
System.out.println(data.getFileName());

output:

org.apache.poi.xslf.usermodel.XSLFPictureShape@654df764
image7.png

However, when the picture is not embedded but inserted only as a "link to
file", there is no data available and the above code produces a null pointer
exception.

Is it possible to add a reference to the linked picture file ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to