Package org.pdfclown.documents.contents.composition

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


      String caption = (String)field.getValue();
      if(caption != null)
      {
        BlockComposer blockComposer = new BlockComposer(composer);
        blockComposer.begin(frame,AlignmentXEnum.Center,AlignmentYEnum.Middle);
        composer.setFillColor(getForeColor());
        composer.setFont(
          new StandardType1Font(
            document,
            StandardType1Font.FamilyEnum.Helvetica,
View Full Code Here


        ),
      new Dimension(0,0)
      );

    // 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...
View Full Code Here

      blockComposer.getBoundBox().getX(),
      blockComposer.getBoundBox().getY() + blockComposer.getBoundBox().getHeight() + 32,
      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);
View Full Code Here

            composer.showXObject(template);
            blockComposer = new BlockComposer(composer);
            blockComposer.setHyphenation(true);
          }

          blockComposer.begin(frames[frameIndex],AlignmentXEnum.Justify,alignmentYs[frameIndex]);
          composer.setFont(font,8.25f);

          // Come back to complete the interrupted paragraph!
          paragraphIndex--;
        }
View Full Code Here

        blockComposer.showBreak(breakSize);
      }
    }
    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

      150,
      pageSize.getWidth() - 90,
      pageSize.getHeight() - 250
      );
    // Begin the block!
    blockComposer.begin(frame,AlignmentXEnum.Center,AlignmentYEnum.Top);
    // Set the font to use!
    composer.setFont(font,56);
    // Set the text rendering mode (outline only)!
    composer.setTextRenderMode(TextRenderModeEnum.Stroke);
    // Show the page title!
View Full Code Here

      blockComposer.getBoundBox().getX(),
      imageLocation.getY(),
      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();
View Full Code Here

      blockComposer.getBoundBox().getX(),
      blockComposer.getBoundBox().getY()+blockComposer.getBoundBox().getHeight(),
      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
View Full Code Here

    blockComposer.showText(" LazyDog font");
    composer.end();
    blockComposer.showText(" (by Paul Neave, www.neave.com)");
    blockComposer.end();

    blockComposer.begin(descriptionFrame,AlignmentXEnum.Right,AlignmentYEnum.Top);
    composer.setFont(font,8);
    blockComposer.showText("Source: http://www.wikipedia.org/");
    blockComposer.end();

    composer.flush();
View Full Code Here

        templateSize.getWidth() - 50,
        templateSize.getHeight() - 25
        )
      );
    BlockComposer blockComposer = new BlockComposer(composer);
    blockComposer.begin(
      new Rectangle2D.Double(0,0,300,50),
      AlignmentXEnum.Left,
      AlignmentYEnum.Middle
      );
    blockComposer.showText("Generated by PDF Clown on " + creationDate);
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.