Package org.pdfclown.documents.contents.objects

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


  @Override
  public ContentObject toInlineObject(
    PrimitiveComposer composer
    )
  {
    ContentObject barcodeObject = composer.beginLocalState();
    {
      Font font = new StandardType1Font(
        composer.getScanner().getContents().getDocument(),
        StandardType1Font.FamilyEnum.Helvetica,
        false,
View Full Code Here


    if(level == null)
      return;

    while(level.moveNext())
    {
      ContentObject content = level.getCurrent();
      if(content instanceof ShowText)
      {
        Font font = level.getState().getFont();
        // Extract the current text chunk, decoding it!
        System.out.println(font.decode(((ShowText)content).getText()));
View Full Code Here

    ) throws FileFormatException
  {
    final List<ContentObject> contentObjects = new ArrayList<ContentObject>();
    while(moveNext())
    {
      ContentObject contentObject = parseContentObject();
      // Multiple-operation graphics object end?
      if(contentObject instanceof EndText // Text.
        || contentObject instanceof RestoreGraphicsState // Local graphics state.
        || contentObject instanceof EndMarkedContent // End marked-content sequence.
        || contentObject instanceof EndInlineImage) // Inline image.
View Full Code Here

        length = objects.size();
      index < length;
      index++
      )
    {
      ContentObject object = objects.get(index);
      if(object instanceof Text)
      {
        objects.remove(index);
        index--; length--;
      }
View Full Code Here

    if(level == null)
      return;

    while(level.moveNext())
    {
      ContentObject content = level.getCurrent();
      if(content instanceof Text)
      {
        ContentScanner.TextWrapper text = (ContentScanner.TextWrapper)level.getCurrentWrapper();
        int colorIndex = 0;
        for(ContentScanner.TextStringWrapper textString : text.getTextStrings())
View Full Code Here

    if(level == null)
      return;

    while(level.moveNext())
    {
      ContentObject object = level.getCurrent();
      if(object instanceof ContainerObject)
      {
        // Scan the inner level!
        scan(
          level.getChildLevel(),
View Full Code Here

  */
  public boolean moveNext(
    )
  {
    // Scanning the current graphics object...
    ContentObject currentObject = getCurrent();
    if(currentObject != null)
    {currentObject.scan(state);}

    // Moving to the next object...
    if(index < objects.size())
    {index++; refresh();}

View Full Code Here

    @return Removed object.
  */
  public ContentObject remove(
    )
  {
    ContentObject removedObject = objects.remove(index);
    refresh();

    return removedObject;
  }
View Full Code Here

  */
  public ContentObject setCurrent(
    ContentObject value
    )
  {
    ContentObject replacedObject = objects.set(index,value);
    refresh();

    return replacedObject;
  }
View Full Code Here

    List<ContentScanner.TextStringWrapper> extractedTextStrings
    )
  {
    while(level.moveNext())
    {
      ContentObject content = level.getCurrent();
      if(content instanceof Text)
      {
        // Collect the text strings!
        extractedTextStrings.addAll(
          ((ContentScanner.TextWrapper)level.getCurrentWrapper()).getTextStrings()
View Full Code Here

TOP

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

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.