Package org.pdfclown.documents.contents.objects

Examples of org.pdfclown.documents.contents.objects.SetLineWidth


    Sets the line width [PDF:1.6:4.3.2].
  */
  public void setLineWidth(
    float value
    )
  {add(new SetLineWidth(value));}
View Full Code Here


    // 2. Content tweaking.
    for(Page page : document.getPages())
    {
      // Get the page contents!
      Contents contents = page.getContents();
      contents.add(0,new SetLineWidth(10)); // Forces the override of line width's initial value (1.0) [PDF:1.6:4.3] setting it at 10 user-space units.
      for(ContentObject obj : contents)
      {normalizeLineWidth(obj);}
      // Update the page contents!
      contents.flush();
    }
View Full Code Here

    ContentObject content
    )
  {
    if(content instanceof SetLineWidth)
    {
      SetLineWidth setLineWidth = (SetLineWidth)content;
      // Force lines under 10 user-space units to be set to 10!
      if(setLineWidth.getValue() < 10)
      {setLineWidth.setValue(10);}
    }
    else if(content instanceof CompositeObject)
    {
      List<ContentObject> objects = ((CompositeObject)content).getObjects();
      for(ContentObject obj : objects)
View Full Code Here

TOP

Related Classes of org.pdfclown.documents.contents.objects.SetLineWidth

Copyright © 2018 www.massapicom. 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.