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

Links:

14 questions
4
votes
1 answer

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 the reference.
user3768904
  • 261
  • 3
  • 15
3
votes
1 answer

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 has a rainbow color to it. And Images that are on…
Farzad Towhidi
  • 363
  • 2
  • 6
  • 13
3
votes
1 answer

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, almost always the images bounds go out of the…
Eduardo Mayer
  • 359
  • 1
  • 3
  • 10
2
votes
1 answer

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 for heading and content.I am facing issue that…
user3768904
  • 261
  • 3
  • 15
2
votes
1 answer

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 conversion to PNGs, although this doesn't work for…
Dean
  • 8,668
  • 17
  • 57
  • 86
1
vote
0 answers

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 FileInputStream and output a String with the desired html…
o2tha1
  • 11
  • 5
1
vote
1 answer

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 heading as well although the heading is in…
user3768904
  • 261
  • 3
  • 15
1
vote
1 answer

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 -> rectangle2 But, All Pictures is over all rectangles in…
Hyunjin Lee
  • 113
  • 1
  • 17
1
vote
1 answer

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 using the code below: public void getAutoShapes() …
Jithesh Chandra
  • 860
  • 7
  • 12
1
vote
1 answer

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 have any method to retrieve/change the properties…
sreram
  • 99
  • 2
  • 9
1
vote
1 answer

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.io.IOException: Invalid header signature; read…
manishKumarSingh
  • 103
  • 2
  • 10
0
votes
1 answer

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 HSLFSlideShow(is); is.close(); Dimension…
0
votes
0 answers

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 please let me know if the latest version…
narsai
  • 1
-1
votes
1 answer

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?
jlh
  • 61
  • 3