Examples of PdfInteger


Examples of org.pdfclown.objects.PdfInteger

    Gets the field flags.
  */
  public EnumSet<FlagsEnum> getFlags(
    )
  {
    PdfInteger flagsObject = (PdfInteger)File.resolve(
      getInheritableAttribute(PdfName.Ff)
      );
    if(flagsObject == null)
      return EnumSet.noneOf(FlagsEnum.class);

    return FlagsEnum.toEnumSet(flagsObject.getRawValue());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

      we MUST ensure that the change will affect just this one;
      so, if such flags are implicit (inherited), they MUST be cloned
      and explicitly assigned to this field in order to apply changes.
    */
    PdfDictionary baseDataObject = getBaseDataObject();
    PdfInteger entry = (PdfInteger)baseDataObject.get(PdfName.Ff);
    if(entry == null) // Implicit flags.
    {
      // Clone the inherited attribute in order to restrict its change to this field's scope only!
      entry = (PdfInteger)getInheritableAttribute(PdfName.Ff).clone(getFile());
      // Associate the cloned attribute to this field's dictionary!
      baseDataObject.put(PdfName.Ff,entry);
    }

    entry.setRawValue(FlagsEnum.toInt(value));
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

        dictionary.get(PdfName.Parent)
        );
      if(dictionary == null)
      {
        if(key.equals(PdfName.Ff))
          return new PdfInteger(0);

        return null;
      }
    }
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

  {
    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,
            PdfName.BPC, new PdfInteger(getBitsPerComponent()),
            PdfName.F, PdfName.DCT
            )
          ),
        new InlineImageBody(
          new Buffer(getStream().toByteArray())
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

            PdfName.ColorSpace,
            PdfName.Filter
          },
          new PdfDirectObject[]
          {
            new PdfInteger(getWidth()),
            new PdfInteger(getHeight()),
            new PdfInteger(getBitsPerComponent()),
            PdfName.DeviceRGB,
            PdfName.DCTDecode
          }
          ),
        new Buffer(getStream().toByteArray())
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

              PdfName.CA
            },
            new PdfDirectObject[]
            {
              new PdfArray(new PdfDirectObject[]{new PdfReal(0.9412),new PdfReal(0.9412),new PdfReal(0.9412)}),
              new PdfArray(new PdfDirectObject[]{new PdfInteger(0),new PdfInteger(0),new PdfInteger(0)}),
              new PdfString("4")
            }
            )
          );
        widgetDataObject.put(
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

              PdfName.CA
            },
            new PdfDirectObject[]
            {
              new PdfArray(new PdfDirectObject[]{new PdfReal(0.9412),new PdfReal(0.9412),new PdfReal(0.9412)}),
              new PdfArray(new PdfDirectObject[]{new PdfInteger(0),new PdfInteger(0),new PdfInteger(0)}),
              new PdfString("l")
            }
            )
          );
        widgetDataObject.put(
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

            PdfName.BC
          },
          new PdfDirectObject[]
          {
            new PdfArray(new PdfDirectObject[]{new PdfReal(.9),new PdfReal(.9),new PdfReal(.9)}),
            new PdfArray(new PdfDirectObject[]{new PdfInteger(0),new PdfInteger(0),new PdfInteger(0)})
          }
          )
        );
    }
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

        if(trailer == null)
        {trailer = sectionTrailer;}

        // Get the previous xref-table section's offset!
        PdfInteger prevXRefOffset = (PdfInteger)sectionTrailer.get(PdfName.Prev);
        sectionOffset = (prevXRefOffset != null ? prevXRefOffset.getValue() : -1);
      }
    }
    return new FileInfo(version, trailer, xrefEntries);
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfInteger

        // Define the 2nd page as the destination target!
        destination.add(document.getPages().get(1).getBaseObject());
        // Define the location of the document window on the page (fit vertically)!
        destination.add(new PdfName("FitV"));
        // Define the window's left-edge horizontal coordinate!
        destination.add(new PdfInteger(-32768));
        // Associate the destination to the action!
        action.put(new PdfName("D"),destination);
      }
      // Associate the action to the document!
      document.getBaseDataObject().put(
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.