Examples of showText()


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

      AlignmentYEnum.Middle
      );
    composer.setFont(bodyFont,8);
    blockComposer.showText("Generated by PDF Clown on " + new java.util.Date());
    blockComposer.showBreak();
    blockComposer.showText("For more info, visit http://www.pdfclown.org");
    blockComposer.end();
    composer.end();

    // Flush the contents into the page!
    composer.flush();
View Full Code Here

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

            true,
            false
            ),
          (float)(size.getHeight() * 0.8)
          );
        blockComposer.showText(new String(new char[]{getCheckSymbol()}));
        blockComposer.end();

        composer.flush();
      }

View Full Code Here

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

            true,
            false
            ),
          (float)(size.getHeight() * 0.8)
          );
        blockComposer.showText(new String(new char[]{getRadioSymbol()}));
        blockComposer.end();

        composer.flush();
      }

View Full Code Here

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

            true,
            false
            ),
          (float)(size.getHeight() * 0.5)
          );
        blockComposer.showText(caption);
        blockComposer.end();
      }

      composer.flush();
    }
View Full Code Here

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

      );

    // Showing the title...
    blockComposer.begin(frame,AlignmentXEnum.Left,AlignmentYEnum.Top);
    composer.setFont(font,24);
    blockComposer.showText("The Free Software Definition");
    blockComposer.end();

    // Showing the copyright note...
    frame = new Rectangle2D.Double(
      blockComposer.getBoundBox().getX(),
View Full Code Here

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

      blockComposer.getBoundBox().getWidth(),
      (pageSize.getHeight() - 100 - image.getHeight() - 10) - (blockComposer.getBoundBox().getY() + blockComposer.getBoundBox().getHeight() + 32)
      );
    blockComposer.begin(frame,AlignmentXEnum.Justify,AlignmentYEnum.Bottom);
    composer.setFont(font,6);
    blockComposer.showText("Copyright 2004, 2005, 2006 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Verbatim copying and distribution of this entire article are permitted worldwide, without royalty, in any medium, provided this notice is preserved.");

    // Showing the body...
    blockComposer.showBreak(breakSize);
    composer.setFont(font,8.25f);
    Rectangle2D[] frames = new Rectangle2D[]
View Full Code Here

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

      paragraphIndex++
      )
    {
      String paragraph = paragraphs[paragraphIndex];

      paragraphTextIndex = blockComposer.showText(paragraph.substring(paragraphTextIndex)) + paragraphTextIndex;
      if(paragraphTextIndex < paragraph.length())
      {
        if(++frameIndex < frames.length)
        {
          blockComposer.end();
View Full Code Here

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

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

    // 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

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

      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
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.