Examples of PDFontDescriptorDictionary


Examples of org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary

                    }
                    else
                    {
                        name = getUniqueFileName( prefix, "ttf" );
                    }
                    PDFontDescriptorDictionary fd = (PDFontDescriptorDictionary)font.getFontDescriptor();
                    if (fd != null)
                    {
                        PDStream ff2Stream = fd.getFontFile2();
                        if (ff2Stream != null)
                        {
                            System.out.println( "Writing font:" + name );
                            FileOutputStream fos = new FileOutputStream(new File(name+".ttf"));
                            IOUtils.copy(ff2Stream.createInputStream(), fos);
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary

        .getDocument().getDocument());
    if (fontDescDic == null) {
      throw new ValidationException(
          "Unable to process CIDFontType0 because of the font descriptor is invalid.");
    }
    PDFontDescriptorDictionary pfDescriptor = new PDFontDescriptorDictionary(
        fontDescDic);
    boolean isValid = checkFontDescriptorMandatoryFields(pfDescriptor);
    isValid = isValid && checkCIDKeyedFontName(pfDescriptor);
    isValid = isValid && checkFontFileElement_CIDFontType0(pfDescriptor);
    isValid = isValid && checkCIDSet(pfDescriptor);
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary

        .getDocument().getDocument());
    if (fontDescDic == null) {
      throw new ValidationException(
          "Unable to process CIDFontType2 because of the font descriptor is invalid.");
    }
    PDFontDescriptorDictionary pfDescriptor = new PDFontDescriptorDictionary(
        fontDescDic);
    boolean isValid = checkFontDescriptorMandatoryFields(pfDescriptor);
    isValid = isValid && checkCIDKeyedFontName(pfDescriptor);
    isValid = isValid && checkFontFileElement_CIDFontType2(pfDescriptor);
    isValid = isValid && checkCIDSet(pfDescriptor);
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary

    COSBase tmpFontDesc = fDictionary.getItem(COSName
        .getPDFName(FONT_DICTIONARY_KEY_FONT_DESC));
    this.fDescriptor = COSUtils.getAsDictionary(tmpFontDesc, handler
        .getDocument().getDocument());
    if (this.fDescriptor != null) {
      this.pFontDesc = new PDFontDescriptorDictionary(this.fDescriptor);
    }
  }
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.