Examples of PDFObject


Examples of com.lowagie.text.pdf.PdfObject

                        PdfObject tuValue = dict.get(new PdfName("/TU"));
                        annotation = tuValue.toString();
                    }
                    */

                    PdfObject typeValue = null;
                    PdfObject tuValue = null;

                    Set<PdfName> dictKeys = UtilGenerics.checkSet(dict.getKeys());
                    Iterator<PdfName> dictKeyIter = dictKeys.iterator();
                    while (dictKeyIter.hasNext()) {
                        PdfName dictKeyName = dictKeyIter.next();
                        PdfObject dictObject = dict.get(dictKeyName);

                        if ("/Type".equals(dictKeyName.toString())) {
                            typeValue = dictObject;
                        } else if ("/TU".equals(dictKeyName.toString())) {
                            tuValue = dictObject;
View Full Code Here

Examples of com.sun.pdfview.PDFObject

    /** Creates a new instance of OutlineFont */
    public OutlineFont(String baseFont, PDFObject fontObj,
            PDFFontDescriptor descriptor) throws IOException {
        super(baseFont, descriptor);

        PDFObject firstCharObj = fontObj.getDictRef("FirstChar");
        PDFObject lastCharObj = fontObj.getDictRef("LastChar");
        PDFObject widthArrayObj = fontObj.getDictRef("Widths");

        if (firstCharObj != null) {
            firstChar = firstCharObj.getIntValue();
        }
        if (lastCharObj != null) {
            lastChar = lastCharObj.getIntValue();
        }

        if (widthArrayObj != null) {
            PDFObject[] widthArray = widthArrayObj.getArray();

            widths = new float[widthArray.length];

            for (int i = 0; i < widthArray.length; i++) {
                widths[i] = widthArray[i].getFloatValue() / getDefaultWidth();
View Full Code Here

Examples of org.apache.fop.pdf.PDFObject

        if (rl != null) {
            List resList = DOMUtil.getChildElementsByTagName(rl, "resource");
            if (resList.size() > 0) {
                Element res;
                String fileName, name;
                PDFObject resource;
                for (Iterator it = resList.iterator(); it.hasNext();) {
                    res = (Element) it.next();
                    fileName = DOMUtil.getAttribute(res, "src", true);
                    name = DOMUtil.getAttribute(res, "name");
View Full Code Here

Examples of org.jpedal.objects.raw.PdfObject

                                }
                               
                                if(bookmarkPage!=null){ //and goto named Dest if present

                                    //read the object
                                    PdfObject namedDest=new OutlineObject((String)bookmarkPage);
                                    decode_pdf.getIO().readObject(namedDest);

                                    //and generic open Dest code
                                    decode_pdf.getFormRenderer().getActionHandler().gotoDest(namedDest, ActionHandler.MOUSECLICKED, PdfDictionary.Dest );
                                }
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.