Package org.pdfclown.documents.contents.composition

Examples of org.pdfclown.documents.contents.composition.BlockComposer.showText()


    }
    blockComposer.end();

    blockComposer.begin(frames[frames.length-1],AlignmentXEnum.Justify,AlignmentYEnum.Bottom);
    composer.setFont(font,6);
    blockComposer.showText("This article was crafted with the nice Traveling_Typewriter font (by Carl Krull, www.carlkrull.dk).");
    blockComposer.end();

    composer.flush();
  }
View Full Code Here


    // Set the font to use!
    composer.setFont(font,56);
    // Set the text rendering mode (outline only)!
    composer.setTextRenderMode(TextRenderModeEnum.Stroke);
    // Show the page title!
    blockComposer.showText("Welcome");
    // End the block!
    blockComposer.end();

    // Showing the clown photo...
    // Instantiate a jpeg image object!
View Full Code Here

      blockComposer.getBoundBox().getWidth() - image.getWidth() - 20,
      image.getHeight()
      );
    blockComposer.begin(frame,AlignmentXEnum.Left,AlignmentYEnum.Middle);
    composer.setFont(font,30);
    blockComposer.showText("This is a sample document that merely demonstrates some basic graphics features supported by PDF Clown.");
    blockComposer.showBreak(AlignmentXEnum.Center);
    blockComposer.showText("Enjoy!");
    blockComposer.end();

    frame = new Rectangle2D.Double(
View Full Code Here

      );
    blockComposer.begin(frame,AlignmentXEnum.Left,AlignmentYEnum.Middle);
    composer.setFont(font,30);
    blockComposer.showText("This is a sample document that merely demonstrates some basic graphics features supported by PDF Clown.");
    blockComposer.showBreak(AlignmentXEnum.Center);
    blockComposer.showText("Enjoy!");
    blockComposer.end();

    frame = new Rectangle2D.Double(
      blockComposer.getBoundBox().getX(),
      blockComposer.getBoundBox().getY()+blockComposer.getBoundBox().getHeight(),
View Full Code Here

      pageSize.getWidth() - 90,
      pageSize.getHeight() - 100 - (blockComposer.getBoundBox().getY()+blockComposer.getBoundBox().getHeight())
      );
    blockComposer.begin(frame,AlignmentXEnum.Justify,AlignmentYEnum.Bottom);
    composer.setFont(font,14);
    blockComposer.showText("PS: As promised, since version 0.0.3 PDF Clown has supported");
    // Begin local state!
    /*
      NOTE: Local state is a powerful feature of PDF format as it lets you nest
      multiple graphics contexts on the graphics state stack.
    */
 
View Full Code Here

      NOTE: Local state is a powerful feature of PDF format as it lets you nest
      multiple graphics contexts on the graphics state stack.
    */
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" embedded latin OpenFont/TrueType and non-embedded Type 1 fonts");
    // End the innermost local state!
    composer.end();
    blockComposer.showText(" along with");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
View Full Code Here

    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" embedded latin OpenFont/TrueType and non-embedded Type 1 fonts");
    // End the innermost local state!
    composer.end();
    blockComposer.showText(" along with");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" paragraph construction facilities");
    composer.end();
    blockComposer.showText(" through the BlockComposer class."); blockComposer.showBreak(breakSize);
View Full Code Here

    // End the innermost local state!
    composer.end();
    blockComposer.showText(" along with");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" paragraph construction facilities");
    composer.end();
    blockComposer.showText(" through the BlockComposer class."); blockComposer.showBreak(breakSize);
    blockComposer.showText("Since version 0.0.4 the content stream stack has been completed, providing ");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
View Full Code Here

    blockComposer.showText(" along with");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" paragraph construction facilities");
    composer.end();
    blockComposer.showText(" through the BlockComposer class."); blockComposer.showBreak(breakSize);
    blockComposer.showText("Since version 0.0.4 the content stream stack has been completed, providing ");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText("fully object-oriented access to the graphics objects that describe the contents on a page.");
    composer.end();
View Full Code Here

    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" paragraph construction facilities");
    composer.end();
    blockComposer.showText(" through the BlockComposer class."); blockComposer.showBreak(breakSize);
    blockComposer.showText("Since version 0.0.4 the content stream stack has been completed, providing ");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText("fully object-oriented access to the graphics objects that describe the contents on a page.");
    composer.end();
    blockComposer.showText(" It's a great step towards a whole bunch of possibilities, such as text extraction/replacement, that next releases will progressively exploit."); blockComposer.showBreak(breakSize);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.