Examples of showBreak()


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

      StandardType1Font.FamilyEnum.Times,
      true,
      false
      );
    composer.setFont(titleFont,48);
    blockComposer.showText("Welcome"); blockComposer.showBreak();
    StandardType1Font bodyFont = new StandardType1Font(
      document,
      StandardType1Font.FamilyEnum.Times,
      false,
      false
View Full Code Here

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

      document,
      getInputPath() + java.io.File.separator + "fonts" + java.io.File.separator + "Ruritania-Outline.ttf"
      );
    composer.setFont(decorativeFont,56);
    blockComposer.showText("Chapter 1");
    blockComposer.showBreak();
    composer.setFont(decorativeFont,32);
    blockComposer.showText("Down the Rabbit-Hole");
    // End the title block!
    blockComposer.end();
View Full Code Here

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

    composer.end();
    blockComposer.showText("lice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice 'without pictures or conversation?'");
    // Define new-paragraph first-line offset!
    Dimension breakSize = new Dimension(24,8); // Indentation (24pt) and top margin (8pt).
    // Begin a new paragraph!
    blockComposer.showBreak(breakSize);
    blockComposer.showText("So she was considering in her own mind (as well as she could, for the hot day made her feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her.");
    // Begin a new paragraph!
    blockComposer.showBreak(breakSize);
    blockComposer.showText("There was nothing so VERY remarkable in that; nor did Alice think it so VERY much out of the way to hear the Rabbit say to itself, 'Oh dear! Oh dear! I shall be late!' (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually TOOK A WATCH OUT OF ITS WAISTCOAT- POCKET, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity, she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge.");
    // End the body block!
View Full Code Here

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

    Dimension breakSize = new Dimension(24,8); // Indentation (24pt) and top margin (8pt).
    // Begin a new paragraph!
    blockComposer.showBreak(breakSize);
    blockComposer.showText("So she was considering in her own mind (as well as she could, for the hot day made her feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her.");
    // Begin a new paragraph!
    blockComposer.showBreak(breakSize);
    blockComposer.showText("There was nothing so VERY remarkable in that; nor did Alice think it so VERY much out of the way to hear the Rabbit say to itself, 'Oh dear! Oh dear! I shall be late!' (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually TOOK A WATCH OUT OF ITS WAISTCOAT- POCKET, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity, she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge.");
    // End the body block!
    blockComposer.end();

    composer.end();
View Full Code Here

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

      AlignmentXEnum.Left,
      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!
View Full Code Here

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

    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[]
      {
        new Rectangle2D.Double(
          blockComposer.getBoundBox().getX(),
View Full Code Here

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

      }
      else
      {
        paragraphTextIndex = 0;

        blockComposer.showBreak(breakSize);
      }
    }
    blockComposer.end();

    blockComposer.begin(frames[frames.length-1],AlignmentXEnum.Justify,AlignmentYEnum.Bottom);
View Full Code Here

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

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

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

    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

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

    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);
    blockComposer.showText("Since version 0.0.6 it has supported ");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText("Unicode");
    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.