Example usage for com.lowagie.text.pdf PdfAnnotation createScreen

List of usage examples for com.lowagie.text.pdf PdfAnnotation createScreen

Introduction

In this page you can find the example usage for com.lowagie.text.pdf PdfAnnotation createScreen.

Prototype

public static PdfAnnotation createScreen(PdfWriter writer, Rectangle rect, String clipTitle,
        PdfFileSpecification fs, String mimeType, boolean playOnDisplay) throws IOException 

Source Link

Document

Creates a screen PdfAnnotation

Usage

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();
}