List of usage examples for com.lowagie.text.pdf PdfAnnotation createScreen
public static PdfAnnotation createScreen(PdfWriter writer, Rectangle rect, String clipTitle, PdfFileSpecification fs, String mimeType, boolean playOnDisplay) throws IOException
From source file:org.eclipse.birt.report.engine.emitter.pdf.PDFPage.java
License:Open Source License
protected void embedFlash(String flashPath, byte[] flashData, float x, float y, float height, float width, String helpText, Map params) throws IOException { y = transformY(y, height);// ww w. j a v a 2 s . c o m contentByte.saveState(); PdfFileSpecification fs = PdfFileSpecification.fileEmbedded(writer, flashPath, helpText, flashData); PdfAnnotation annot = PdfAnnotation.createScreen(writer, new Rectangle(x, y, x + width, y + height), helpText, fs, "application/x-shockwave-flash", true); writer.addAnnotation(annot); if (helpText != null) { showHelpText(x, y, width, height, helpText); } contentByte.restoreState(); }