Examples of PdfName


Examples of org.pdfclown.objects.PdfName

    )
  {
    /*
      NOTE: 'Name' entry may be undefined.
    */
    PdfName nameObject = (PdfName)getBaseDataObject().get(PdfName.Name);
    if(nameObject == null)
      return IconTypeEnum.Note;

    return IconTypeEnum.get(nameObject);
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfName

      glyphWidths = parser.glyphWidths;

      PdfDictionary baseDataObject = getBaseDataObject();

      // BaseFont.
      baseDataObject.put(PdfName.BaseFont,new PdfName(parser.fontName));

      // Subtype.
      baseDataObject.put(PdfName.Subtype, PdfName.Type0);

      // Encoding.
      baseDataObject.put(PdfName.Encoding, PdfName.IdentityH); //TODO: this is a simplification (to refine later).

      // Descendant font.
      PdfDictionary cidFontDictionary = new PdfDictionary(
        new PdfName[]{PdfName.Type},
        new PdfDirectObject[]{PdfName.Font}
        ); // CIDFont dictionary [PDF:1.6:5.6.3].
      {
        // Subtype.
        PdfName subType;
        switch(parser.outlineFormat)
        {
          case TrueType: subType = PdfName.CIDFontType2; break;
          case CFF: subType = PdfName.CIDFontType0; break;
          default: throw new NotImplementedException();
        }
        cidFontDictionary.put(PdfName.Subtype,subType);

        // BaseFont.
        cidFontDictionary.put(
          PdfName.BaseFont,
          new PdfName(parser.fontName)
          );

        // CIDSystemInfo.
        cidFontDictionary.put(
          PdfName.CIDSystemInfo,
View Full Code Here

Examples of org.pdfclown.objects.PdfName

      PdfName.Type,
      PdfName.CMap
      );
    cmapHead.put(
      PdfName.CMapName,
      new PdfName("Adobe-Identity-UCS")
      );
    cmapHead.put(
      PdfName.CIDSystemInfo,
      new PdfDictionary(
        new PdfName[]
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.