Package org.pdfclown.documents.contents.composition

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


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

      composer.flush();
    }
    appearance.getNormal().put(null,normalAppearanceState);
View Full Code Here


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

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

          // New page?
          if(frameIndex == 3)
          {
            // Close current page!
View Full Code Here

        paragraphTextIndex = 0;

        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();
View Full Code Here

    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();
  }

  private void buildWelcomePage(
View Full Code Here

    // 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!
    Image image = Image.get(getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "Clown.jpg"); // Abstract image (entity).
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(),
      pageSize.getWidth() - 90,
View Full Code Here

    composer.beginLocalState();
    composer.setFont(font,10);
    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();
View Full Code Here

    blockComposer.end();

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

    composer.flush();
  }

  private FormXObject buildTemplate(
View Full Code Here

      AlignmentYEnum.Middle
      );
    blockComposer.showText("Generated by PDF Clown on " + creationDate);
    blockComposer.showBreak();
    blockComposer.showText("For more info, visit http://www.pdfclown.org");
    blockComposer.end();
    composer.end();

    // End the graphics state!
    composer.end();
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.