791792793794795796797798799800801
PdfReader reader = null; try { reader = getReader(url); } catch (IOException e) { throw new XRRuntimeException("Could not load " + url + ": " + e.getMessage(), e); } PdfImportedPage page = getWriter().getImportedPage(reader, 1);
333435363738394041
_origin = origin; } public void addContent(Ruleset ruleset) { if (_ruleset != null) { throw new XRRuntimeException("Ruleset can only be set once"); } _ruleset = ruleset; }
105106107108109110111112
break; default: // leave as is } if (_cssText == null) { throw new XRRuntimeException("CSSText is null for " + primitive + " csstext " + primitive.getCssText() + " string value " + primitive.getStringValue()); } }
157158159160161162163
* * @param unitType The new floatValue value * @param floatValue The new floatValue value */ public void setFloatValue(short unitType, float floatValue) { throw new XRRuntimeException("FSCssValue is immutable."); }
168169170171172173174
* * @param stringType The new stringValue value * @param stringValue The new stringValue value */ public void setStringValue(short stringType, String stringValue) { throw new XRRuntimeException("FSCssValue is immutable."); }
247248249250251252253254255
* @return see desc. */ public static IdentValue getByIdentString(String ident) { IdentValue val = (IdentValue) ALL_IDENT_VALUES.get(ident); if (val == null) { throw new XRRuntimeException("Ident named " + ident + " has no IdentValue instance assigned to it."); } return val; }
296297298299300301302
public FSDerivedValue computedValue() { return this; } public float asFloat() { throw new XRRuntimeException("Ident value is never a float; wrong class used for derived value."); }
300301302303304305306
public float asFloat() { throw new XRRuntimeException("Ident value is never a float; wrong class used for derived value."); } public FSColor asColor() { throw new XRRuntimeException("Ident value is never a color; wrong class used for derived value."); }
306307308309310311312
} public float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx) { throw new XRRuntimeException("Ident value (" + toString() + ") is never a length; wrong class used for derived value."); }
314315316317318319320
public String asString() { return toString(); } public String[] asStringArray() { throw new XRRuntimeException("Ident value is never a string array; wrong class used for derived value."); }