Package org.pdfclown.documents.interaction.navigation.page

Examples of org.pdfclown.documents.interaction.navigation.page.Transition


    )
  {
    /*
      NOTE: 'Trans' entry MUST exist.
    */
    return new Transition(getBaseDataObject().get(PdfName.Trans),getContainer());
  }
View Full Code Here


    int transitionStylesLength = transitionStyles.length;
    for(Page page : document.getPages())
    {
      // Apply a transition to the page!
      page.setTransition(
        new Transition(
          document,
          transitionStyles[(int)(Math.random()*((double)transitionStylesLength))], // NOTE: Random selection of the transition is done here just for demonstrative purposes; in real world, you would obviously choose only the appropriate enumeration constant among those available.
          Float.valueOf(.5f) // Transition duration (half a second).
          )
        );
View Full Code Here

  @PDF(VersionEnum.PDF11)
  public Transition getTransition(
    )
  {
    PdfDirectObject transitionObject = getBaseDataObject().get(PdfName.Trans);
    return transitionObject != null ? new Transition(transitionObject, getContainer()) : null;
  }
View Full Code Here

TOP

Related Classes of org.pdfclown.documents.interaction.navigation.page.Transition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.