Lines Matching refs:obj1
741 Object obj1, obj2, obj3, obj4, obj5;
747 if (!res->lookupGState(args[0].getName(), &obj1)) {
750 if (!obj1.isDict()) {
752 obj1.free();
757 obj1.print();
762 if (!obj1.dictLookup(const_cast<char*>("BM"), &obj2)->isNull()) {
771 if (obj1.dictLookup(const_cast<char*>("ca"), &obj2)->isNum()) {
775 if (obj1.dictLookup(const_cast<char*>("CA"), &obj2)->isNum()) {
782 if ((haveFillOP = (obj1.dictLookup(const_cast<char*>("op"), &obj2)->isBool()))) {
786 if (obj1.dictLookup(const_cast<char*>("OP"), &obj2)->isBool()) {
795 if (obj1.dictLookup(const_cast<char*>("SA"), &obj2)->isBool()) {
801 if (obj1.dictLookup(const_cast<char*>("TR2"), &obj2)->isNull()) {
803 obj1.dictLookup(const_cast<char*>("TR"), &obj2);
834 if (!obj1.dictLookup(const_cast<char*>("SMask"), &obj2)->isNull()) {
920 obj1.free();
929 Object obj1, obj2;
941 dict->lookup(const_cast<char*>("FormType"), &obj1);
942 if (!(obj1.isNull() || (obj1.isInt() && obj1.getInt() == 1))) {
945 obj1.free();
948 dict->lookup(const_cast<char*>("BBox"), &obj1);
949 if (!obj1.isArray()) {
950 obj1.free();
955 obj1.arrayGet(i, &obj2);
959 obj1.free();
962 dict->lookup(const_cast<char*>("Matrix"), &obj1);
963 if (obj1.isArray()) {
965 obj1.arrayGet(i, &obj2);
974 obj1.free();
977 dict->lookup(const_cast<char*>("Resources"), &obj1);
978 resDict = obj1.isDict() ? obj1.getDict() : (Dict *)NULL;
990 obj1.free();
2541 Object obj1, obj2, obj3, refObj;
2544 if (!res->lookupXObject(name, &obj1)) {
2547 if (!obj1.isStream()) {
2549 obj1.free();
2552 obj1.streamGetDict()->lookup(const_cast<char*>("Subtype"), &obj2);
2555 doImage(&refObj, obj1.getStream(), gFalse);
2558 doForm(&obj1);
2560 obj1.streamGetDict()->lookup(const_cast<char*>("Level1"), &obj3);
2561 /* out->psXObject(obj1.getStream(),
2569 obj1.free();
2585 Object obj1, obj2;
2596 dict->lookup(const_cast<char*>("Width"), &obj1);
2597 if (obj1.isNull()) {
2598 obj1.free();
2599 dict->lookup(const_cast<char*>("W"), &obj1);
2601 if (obj1.isInt()){
2602 width = obj1.getInt();
2604 else if (obj1.isReal()) {
2605 width = (int)obj1.getReal();
2610 obj1.free();
2611 dict->lookup(const_cast<char*>("Height"), &obj1);
2612 if (obj1.isNull()) {
2613 obj1.free();
2614 dict->lookup(const_cast<char*>("H"), &obj1);
2616 if (obj1.isInt()) {
2617 height = obj1.getInt();
2619 else if (obj1.isReal()){
2620 height = static_cast<int>(obj1.getReal());
2625 obj1.free();
2628 dict->lookup("Interpolate", &obj1);
2629 if (obj1.isNull()) {
2630 obj1.free();
2631 dict->lookup("I", &obj1);
2633 if (obj1.isBool())
2634 interpolate = obj1.getBool();
2637 obj1.free();
2641 dict->lookup(const_cast<char*>("ImageMask"), &obj1);
2642 if (obj1.isNull()) {
2643 obj1.free();
2644 dict->lookup(const_cast<char*>("IM"), &obj1);
2647 if (obj1.isBool()) {
2648 mask = obj1.getBool();
2650 else if (!obj1.isNull()) {
2653 obj1.free();
2657 dict->lookup(const_cast<char*>("BitsPerComponent"), &obj1);
2658 if (obj1.isNull()) {
2659 obj1.free();
2660 dict->lookup(const_cast<char*>("BPC"), &obj1);
2662 if (obj1.isInt()) {
2663 bits = obj1.getInt();
2669 obj1.free();
2679 dict->lookup(const_cast<char*>("Decode"), &obj1);
2680 if (obj1.isNull()) {
2681 obj1.free();
2682 dict->lookup(const_cast<char*>("D"), &obj1);
2684 if (obj1.isArray()) {
2685 obj1.arrayGet(0, &obj2);
2690 } else if (!obj1.isNull()) {
2693 obj1.free();
2701 dict->lookup(const_cast<char*>("ColorSpace"), &obj1);
2702 if (obj1.isNull()) {
2703 obj1.free();
2704 dict->lookup(const_cast<char*>("CS"), &obj1);
2706 if (obj1.isName()) {
2707 res->lookupColorSpace(obj1.getName(), &obj2);
2709 obj1.free();
2710 obj1 = obj2;
2715 if (!obj1.isNull()) {
2717 colorSpace = GfxColorSpace::parse(NULL, &obj1, NULL, NULL);
2719 colorSpace = GfxColorSpace::parse(&obj1, NULL, NULL);
2721 colorSpace = GfxColorSpace::parse(&obj1, NULL);
2732 obj1.free();
2736 dict->lookup(const_cast<char*>("Decode"), &obj1);
2737 if (obj1.isNull()) {
2738 obj1.free();
2739 dict->lookup(const_cast<char*>("D"), &obj1);
2741 GfxImageColorMap *colorMap = new GfxImageColorMap(bits, &obj1, colorSpace);
2742 obj1.free();
2766 maskDict->lookup(const_cast<char*>("Width"), &obj1);
2767 if (obj1.isNull()) {
2768 obj1.free();
2769 maskDict->lookup(const_cast<char*>("W"), &obj1);
2771 if (!obj1.isInt()) {
2774 maskWidth = obj1.getInt();
2775 obj1.free();
2776 maskDict->lookup(const_cast<char*>("Height"), &obj1);
2777 if (obj1.isNull()) {
2778 obj1.free();
2779 maskDict->lookup(const_cast<char*>("H"), &obj1);
2781 if (!obj1.isInt()) {
2784 maskHeight = obj1.getInt();
2785 obj1.free();
2786 maskDict->lookup(const_cast<char*>("BitsPerComponent"), &obj1);
2787 if (obj1.isNull()) {
2788 obj1.free();
2789 maskDict->lookup(const_cast<char*>("BPC"), &obj1);
2791 if (!obj1.isInt()) {
2794 int maskBits = obj1.getInt();
2795 obj1.free();
2796 maskDict->lookup("Interpolate", &obj1);
2797 if (obj1.isNull()) {
2798 obj1.free();
2799 maskDict->lookup("I", &obj1);
2801 if (obj1.isBool())
2802 maskInterpolate = obj1.getBool();
2805 obj1.free();
2806 maskDict->lookup(const_cast<char*>("ColorSpace"), &obj1);
2807 if (obj1.isNull()) {
2808 obj1.free();
2809 maskDict->lookup(const_cast<char*>("CS"), &obj1);
2811 if (obj1.isName()) {
2812 res->lookupColorSpace(obj1.getName(), &obj2);
2814 obj1.free();
2815 obj1 = obj2;
2821 GfxColorSpace *maskColorSpace = GfxColorSpace::parse(NULL, &obj1, NULL, NULL);
2823 GfxColorSpace *maskColorSpace = GfxColorSpace::parse(&obj1, NULL, NULL);
2825 GfxColorSpace *maskColorSpace = GfxColorSpace::parse(&obj1, NULL);
2827 obj1.free();
2831 maskDict->lookup(const_cast<char*>("Decode"), &obj1);
2832 if (obj1.isNull()) {
2833 obj1.free();
2834 maskDict->lookup(const_cast<char*>("D"), &obj1);
2836 maskColorMap = new GfxImageColorMap(maskBits, &obj1, maskColorSpace);
2837 obj1.free();
2848 maskObj.arrayGet(i, &obj1);
2849 maskColors[i] = obj1.getInt();
2850 obj1.free();
2860 maskDict->lookup(const_cast<char*>("Width"), &obj1);
2861 if (obj1.isNull()) {
2862 obj1.free();
2863 maskDict->lookup(const_cast<char*>("W"), &obj1);
2865 if (!obj1.isInt()) {
2868 maskWidth = obj1.getInt();
2869 obj1.free();
2870 maskDict->lookup(const_cast<char*>("Height"), &obj1);
2871 if (obj1.isNull()) {
2872 obj1.free();
2873 maskDict->lookup(const_cast<char*>("H"), &obj1);
2875 if (!obj1.isInt()) {
2878 maskHeight = obj1.getInt();
2879 obj1.free();
2880 maskDict->lookup(const_cast<char*>("ImageMask"), &obj1);
2881 if (obj1.isNull()) {
2882 obj1.free();
2883 maskDict->lookup(const_cast<char*>("IM"), &obj1);
2885 if (!obj1.isBool() || !obj1.getBool()) {
2888 obj1.free();
2889 maskDict->lookup("Interpolate", &obj1);
2890 if (obj1.isNull()) {
2891 obj1.free();
2892 maskDict->lookup("I", &obj1);
2894 if (obj1.isBool())
2895 maskInterpolate = obj1.getBool();
2898 obj1.free();
2900 maskDict->lookup(const_cast<char*>("Decode"), &obj1);
2901 if (obj1.isNull()) {
2902 obj1.free();
2903 maskDict->lookup(const_cast<char*>("D"), &obj1);
2905 if (obj1.isArray()) {
2906 obj1.arrayGet(0, &obj2);
2911 } else if (!obj1.isNull()) {
2914 obj1.free();
2939 obj1.free();
2952 Object obj1, obj2, obj3;
2964 dict->lookup(const_cast<char*>("FormType"), &obj1);
2965 if (!(obj1.isNull() || (obj1.isInt() && obj1.getInt() == 1))) {
2968 obj1.free();
2978 bboxObj.arrayGet(i, &obj1);
2979 bbox[i] = obj1.getNum();
2980 obj1.free();
2988 matrixObj.arrayGet(i, &obj1);
2989 m[i] = obj1.getNum();
2990 obj1.free();
3006 if (dict->lookup(const_cast<char*>("Group"), &obj1)->isDict()) {
3007 if (obj1.dictLookup(const_cast<char*>("S"), &obj2)->isName(const_cast<char*>("Transparency"))) {
3009 if (!obj1.dictLookup(const_cast<char*>("CS"), &obj3)->isNull()) {
3019 if (obj1.dictLookup(const_cast<char*>("I"), &obj3)->isBool()) {
3023 if (obj1.dictLookup(const_cast<char*>("K"), &obj3)->isBool()) {
3030 obj1.free();