Package org.pdfclown.documents.contents

Examples of org.pdfclown.documents.contents.IContentContext


      alignmentX,
      alignmentY,
      rotation
      );

    IContentContext contentContext = scanner.getContentContext();
    if(!(contentContext instanceof Page))
      throw new RuntimeException("Link can be shown only on page contexts.");

    Page page = (Page)contentContext;
    Rectangle2D linkBox = new Rectangle2D.Double(textFrame[0].getX(),textFrame[0].getY(),0,0);
View Full Code Here


     */
    /*
      TODO: support to vertical writing mode.
    */

    IContentContext context = state.getScanner().getContentContext();
    double contextHeight = context.getBox().getHeight();
    Font font = state.getFont();
    float fontSize = state.getFontSize();
    float scale = state.getScale() / 100;
    float scaledFactor = Font.getScalingFactor(fontSize) * scale;
    float wordSpace = state.getWordSpace() * scale;
 
View Full Code Here

TOP

Related Classes of org.pdfclown.documents.contents.IContentContext

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.