ASF Bugzilla – Attachment 35398 Details for
Bug 61589
Importing content does not copy hyperlink address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Sample class to reproduce bug
HyperCopy.java (text/plain), 1.02 KB, created by
Yuriy Lozynskyy
on 2017-10-06 13:08:53 UTC
(
hide
)
Description:
Sample class to reproduce bug
Filename:
MIME Type:
Creator:
Yuriy Lozynskyy
Created:
2017-10-06 13:08:53 UTC
Size:
1.02 KB
patch
obsolete
> >import java.io.FileOutputStream; >import java.io.IOException; > >import org.apache.poi.xslf.usermodel.XMLSlideShow; >import org.apache.poi.xslf.usermodel.XSLFHyperlink; >import org.apache.poi.xslf.usermodel.XSLFSlide; >import org.apache.poi.xslf.usermodel.XSLFTextBox; >import org.apache.poi.xslf.usermodel.XSLFTextRun; > >public class HyperCopy { > > public static void main(String[] args) throws IOException { > XMLSlideShow src = new XMLSlideShow(); > XSLFSlide slide = src.createSlide(); > > XSLFTextBox shape = slide.createTextBox(); > XSLFTextRun r = shape.addNewTextParagraph().addNewTextRun(); > r.setText("Apache POI"); > XSLFHyperlink link = r.createHyperlink(); > link.setAddress("http://poi.apache.org"); > > XMLSlideShow dest = new XMLSlideShow(); > dest.createSlide().importContent(slide); > > FileOutputStream out = new FileOutputStream("copy.pptx"); > dest.write(out); > out.close(); > dest.close(); > src.close(); > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 61589
: 35398