Questions tagged [hslf]
HSLF is the Apache POI Project's pure Java implementation of the Microsoft Powerpoint '97(-2007) file format. HSLF provides a way to read, create or modify PowerPoint presentations. In particular, it provides: api for data extraction (text, pictures, embedded objects, sounds) usermodel api for creating, reading and modifying ppt files
15
questions
1
vote
0answers
15 views
How to use POI 3.14 to replace images in ppt
I'd like to know,if there any way to replace images in ppt(2003),and I can replace some images,but I can't
replace images in HSLFAutoShape. I can only replace images that are PictureShape。
0
votes
1answer
64 views
I am trying to convert ppt into pdf using Apache POI but getting following error.Please help me out of this
Following code is used:
public static void main(String[] args) throws IOException {
FileInputStream is = new FileInputStream("C:/Users/hp/Downloads/sampPPT.ppt");
HSLFSlideShow ppt = new ...
0
votes
0answers
466 views
How do you convert a .ppt file to html using Apache POI?
I'm looking for a solution capable of producing a result as close to the original as possible, such as this example, which converts .doc rather than .ppt files. It should, ideally, take in a ...
2
votes
1answer
56 views
Heading to be bold but non heading should be non bold in ppt textbox using apache poi hslf
i am using apache poi hslf for ppt genertion. I want to write in text box like first line is heading and is bold, rest is content and non bold. I have used HSLFTextRun to keep the settings different ...
3
votes
1answer
534 views
Apache POI PPT SLide Page setup option
I am wondering if by any mean, i can set the 'Slide sized for ' as On-ScreenShow (16:9). i mean is there any method in master object in apache poi hslf? I couldn't find it. I have added the image for ...
1
vote
1answer
621 views
Adding bullets and non bullets using apache poi hslf in ppt
I want to add a text box in powerpoint using apache poi hslf. In textbox, i want to add a heading and then the bullets in same textbox. But if i apply richtextrun.setbullet(true); it place bullet with ...
-1
votes
1answer
93 views
Setting Chinese FontName in POI HSLF
Using Apache POI HSLF to create PPT, it doesn't work when I use rt.setFontName("黑体");, but it works in English.
How can I make POI work with non-English-named fonts?
3
votes
1answer
1k views
Apache POI ppt. How to resize and center images in a Slide
We have an application that has a gallery feature and we would like to export the images to a powerpoint presentation. I was able to do this but as the images come in diferente sizes and orientations, ...
0
votes
0answers
179 views
How to modify the cell value of a table in an ppt file using apache POI
I am facing an issue with replacing the table cell value in a slide in
a ppt. First i have used version 3.10.1 but it was not working, later i
tried with 3.8 it was updating the cell values. Can you ...
1
vote
1answer
1k views
How to set Z-Order of elements on apache poi?
I'm using apache poi library to make a ppt file in my java program.
To insert elements, I added elements to a Document object.
the add order is below.
Picture1 -> rectangle1 -> Picture2 -> ...
1
vote
1answer
397 views
How read autoshapes present in a ppt File using java poi
I am trying to read a ppt file using the poi, and I would like to know how to read the autoshapes which are inserted in the ppt and store them into a different file according to the slide.
I am ...
1
vote
1answer
1k views
How to change the existing custom properties/properties in .pptx files using Apache POI
I would like to change the properties of .pptx files programatically using Apache POI. I am done with .docx and .pdf using Itext. When it comes for .pptx files the recommended package XLSF doesn't ...
2
votes
1answer
443 views
Programmatically Unhide Slides in PPT File
I'm writing a little tool that converts slides in PPT Files to pngs, the problem I'm having is with hidden slides. How can I change a slide to be visible in java? Im currently using Apache POI for ...
1
vote
1answer
523 views
Not able to read PPT file using apache.poi library
I want to read a ppt file i tried to read file using apache.poi library API.
This is what i tried .
POIFSFileSystem posF = new POIFSFileSystem(fileInputStream);
it throws the following error
java....
3
votes
1answer
4k views
Converting ppt to png using Apache poi
Hello I am trying to use the Apache Poi framework to convert each slide of a ppt to an individual png. The problem is that some slides are deformed. For instance there is a slide where the background ...