Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.PdfTransition


    for(int j=1; j<=totalPages; j++){
      Object rawTransition = transitionsMap.get(new Integer(j));
      if(rawTransition != null){
        Transition transition = (Transition) rawTransition;
        pdfStamper.setDuration(transition.getDuration(), transition.getPageNumber());
        pdfStamper.setTransition(new PdfTransition(getITextTransition(transition.getTransition()),transition.getTransitionDuration()), transition.getPageNumber());
      }else{
        pdfStamper.setDuration(transitions.getDefaultTransition().getDuration(), j);
        pdfStamper.setTransition(new PdfTransition(getITextTransition(transitions.getDefaultTransition().getTransition()),transitions.getDefaultTransition().getTransitionDuration()), j);
      }
      setPercentageOfWorkDone(((j)*WorkDoneDataModel.MAX_PERGENTAGE)/totalPages);
    }
  }
 
View Full Code Here


    LOG.debug("Setting transitions without a default value.");
    Transition[] trans = transitions.getTransitions();
    if(trans!=null && trans.length>0){
      for(int i=0; i<trans.length; i++){
        pdfStamper.setDuration(trans[i].getDuration(), trans[i].getPageNumber());
        pdfStamper.setTransition(new PdfTransition(getITextTransition(trans[i].getTransition()),trans[i].getTransitionDuration()), trans[i].getPageNumber());
        setPercentageOfWorkDone(((i+1)*WorkDoneDataModel.MAX_PERGENTAGE)/trans.length);
      }   
    }else{
      LOG.warn("No transition to set.");
    }
View Full Code Here

TOP

Related Classes of com.lowagie.text.pdf.PdfTransition

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.