Package org.pdfclown.documents.contents.objects

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


  public ContentObject toInlineObject(
    PrimitiveComposer composer
    )
  {
    return composer.add(
      new InlineImage(
        new InlineImageHeader(
          (List<PdfDirectObject>)(List<? extends PdfDirectObject>)Arrays.asList(
            PdfName.W, new PdfInteger(getWidth()),
            PdfName.H, new PdfInteger(getHeight()),
            PdfName.CS, PdfName.RGB,
View Full Code Here


        }
      } while(stream != null);
      body = new InlineImageBody(data);
    }

    return new InlineImage(
      header,
      body
      );
  }
View Full Code Here

          }
        }
        else if(objectWrapper instanceof ContentScanner.InlineImageWrapper)
        {
          System.out.print("Inline Image");
          InlineImage inlineImage = ((ContentScanner.InlineImageWrapper)objectWrapper).getInlineImage();
          imageSize = inlineImage.getSize(); // Image native size.
        }

        if(imageSize != null)
        {
          Rectangle2D box = objectWrapper.getBox(); // Image position (location and size) on the page.
View Full Code Here

TOP

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

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.