The following message is printed several times when I run the below
program:


Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom:
Followed by 4006



-----Original Message-----
From: Eric Hamacher [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 13, 2008 1:50 PM
To: [email protected]
Subject: inserting images 

 

 

 

Hello again:

 

Hello again:

 

I am successfully inserting images into an existing power point
presentation with the following code:

 

 

    public void insertIntoPPT() throws IOException{

        SlideShow ppt = new SlideShow(new
HSLFSlideShow("c:/test/test.ppt"));

        Slide slide18 = ppt.getSlides()[17];

        Slide slide19 = ppt.getSlides()[18];

        Slide slide20 = ppt.getSlides()[19];

       

        int index = ppt.addPicture(new File("c:/test/background.png"),
Picture.PNG);

        Picture pict = new Picture(index);

        pict.setAnchor(new java.awt.Rectangle(195, 50, 400, 500));

        slide18.addShape(pict); 

        

        index = ppt.addPicture(new
File("c:/test/actreflect_20080512.png"), Picture.PNG);

        pict = new Picture(index);

        pict.setAnchor(new java.awt.Rectangle(195, 50, 400, 500));

        slide19.addShape(pict); 

        

        index = ppt.addPicture(new
File("c:/test/actreflect_20080512.png"), Picture.PNG);

        pict = new Picture(index);

        pict.setAnchor(new java.awt.Rectangle(195, 50, 400, 500));

        slide20.addShape(pict); 

        

        FileOutputStream out = new FileOutputStream("c:/test/test.ppt");

        ppt.write(out);

        out.close();        

    }

 

 

The slides in question already had contained some text.  However, after
insertion of the images, the text loses its bold format.    Am I doing
something wrong?

 

Thanks.

 

 

Regards,

Eric Hamacher

 

******************************

THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
EMAIL TO [EMAIL PROTECTED] *******************************

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to