You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/02/16 21:49:51 UTC

DO NOT REPLY [Bug 52687] New: XSLFSlide.importContent fails to create valid slide with a single image in slide

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

             Bug #: 52687
           Summary: XSLFSlide.importContent fails to create valid slide
                    with a single image in slide
           Product: POI
           Version: 3.8-dev
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLF
        AssignedTo: dev@poi.apache.org
        ReportedBy: jwashbur65@yahoo.com
    Classification: Unclassified


Have a presentation down to simplest form of 1 slide with a single image
(src.pptx).  Doing merge code (see attached) creates a new presentation and
merges the slides from src.pptx (this is from cookbook example)

While the merged.pptx is created, PowerPoint pops up error message "PowerPoint
found a problem with the content in merged.pptx."

Originally discussed in poi user's group
(http://article.gmane.org/gmane.comp.jakarta.poi.user/18052).

Problem seen in POI 3.8 beta 5, as well as built latest from trunk, POI 3.8  


Zip attachment contains:
 - MergeFails.jar: self executing jar file
 - MergeFails_lib: necessary libraries to run MergeFails
 - src.pptx: The sample pptx slide show that has a single slide with 1 image
 - Merge.java: the source code

To run the code:
 - unzip MergeFails.zip
 - java -jar MergeFails.jar

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 52687] XSLFSlide.importContent fails to create valid slide with a single image in slide

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52687

Yegor Kozlov <ye...@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Yegor Kozlov <ye...@dinom.ru> 2012-02-21 12:19:54 UTC ---
Should be fixed in r1291730

The problematic image is associated with a  OOXML part that is not yet
supported by POI (the part name is Custom Tag List). As result, the unsupported
relationship was missing in the target file and PowerPoint choked.

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 52687] XSLFSlide.importContent fails to create valid slide with a single image in slide

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52687

--- Comment #1 from jwashbur65@yahoo.com 2012-02-16 21:07:43 UTC ---
Created attachment 28343
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28343
Contains src.pptx, Merge.class and Merge.java source code

to run:

java -cp
.;poi-ooxml-3.8-beta5-20111217.jar;poi-3.8-beta5-20111217.jar;ooxml-schemas-1.1.jar;xmlbeans-2.3.0.jar;dom4j-1.6.1.jar
Merge


Not able to include the specified jar files in the classpath as it makes the
attachment too large.  The importContent fails on both the 3.8 beta 5 as well
as latest from trunk, which at the time it generated poi-3.8-beta6-20120216.jar

Thanks,
Jeff

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 52687] XSLFSlide.importContent fails to create valid slide with a single image in slide

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52687

jwashbur65@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|                            |All

--- Comment #2 from jwashbur65@yahoo.com 2012-02-16 21:10:54 UTC ---
(In reply to comment #0)
> Have a presentation down to simplest form of 1 slide with a single image
> (src.pptx).  Doing merge code (see attached) creates a new presentation and
> merges the slides from src.pptx (this is from cookbook example)
> 
> While the merged.pptx is created, PowerPoint pops up error message "PowerPoint
> found a problem with the content in merged.pptx."
> 
> Originally discussed in poi user's group
> (http://article.gmane.org/gmane.comp.jakarta.poi.user/18052).
> 
> Problem seen in POI 3.8 beta 5, as well as built latest from trunk, POI 3.8  
> 
> 
> Zip attachment contains:
>  - MergeFails.jar: self executing jar file
>  - MergeFails_lib: necessary libraries to run MergeFails
>  - src.pptx: The sample pptx slide show that has a single slide with 1 image
>  - Merge.java: the source code
> 
> To run the code:
>  - unzip MergeFails.zip
>  - java -jar MergeFails.jar

The zip file mentioned in original post is inaccurate as it is no longer a self
executing jar file since including all the jars exceeded the upload limit.  Had
to change the zip file to only include the Merge.java, Merge.class and the
src.pptx example slide

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org