Uses of Class
org.sejda.sambox.cos.COSBase
Packages that use COSBase
Package
Description
This package contains implementations of all of the PDF graphics operators.
This package contains functions that are available in the PDF specification.
The logical structure package provides a mechanism for incorporating
structural information about a document's content into a PDF file.
The tagged PDF package provides a mechanism for incorporating "tags" (standard
structure types and attributes) into a PDF file.
The encryption package will handle the PDF document security handlers and the functionality of pluggable security handlers.
The destination package allows destinations into a pdf document to be specified.
The interactive package contains classes for handling Interactive Forms, also known as "AcroForms".
A package to allow provide access to PDF page navigation functionality.
-
Uses of COSBase in org.sejda.sambox.contentstream
Method parameters in org.sejda.sambox.contentstream with type arguments of type COSBaseModifier and TypeMethodDescriptionprotected voidPDFStreamEngine.operatorException(Operator operator, List<COSBase> operands, IOException e) Called when an exception is thrown by an operator.voidPDFStreamEngine.processOperator(String operation, List<COSBase> arguments) This is used to handle an operation.protected voidPDFStreamEngine.processOperator(Operator operator, List<COSBase> operands) This is used to handle an operation.protected voidPDFStreamEngine.unsupportedOperator(Operator operator, List<COSBase> operands) Called when an unsupported operator is encountered. -
Uses of COSBase in org.sejda.sambox.contentstream.operator
Method parameters in org.sejda.sambox.contentstream.operator with type arguments of type COSBaseModifier and TypeMethodDescriptionvoidstatic booleanOperatorProcessor.checkArrayTypesClass(List<COSBase> operands, Class<?> clazz) Check whether all operands list elements are an instance of a specific class.voidabstract voidProcess the operator.voidConstructor parameters in org.sejda.sambox.contentstream.operator with type arguments of type COSBase -
Uses of COSBase in org.sejda.sambox.contentstream.operator.color
Method parameters in org.sejda.sambox.contentstream.operator.color with type arguments of type COSBaseModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidRG Set the stroking colour space to DeviceRGB and set the colour to use for stroking operations. -
Uses of COSBase in org.sejda.sambox.contentstream.operator.graphics
Method parameters in org.sejda.sambox.contentstream.operator.graphics with type arguments of type COSBaseModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidfinal voidvoidvoidvoidvoid -
Uses of COSBase in org.sejda.sambox.contentstream.operator.markedcontent
Method parameters in org.sejda.sambox.contentstream.operator.markedcontent with type arguments of type COSBaseModifier and TypeMethodDescriptionvoidvoidvoidvoid -
Uses of COSBase in org.sejda.sambox.contentstream.operator.state
Method parameters in org.sejda.sambox.contentstream.operator.state with type arguments of type COSBaseModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid -
Uses of COSBase in org.sejda.sambox.contentstream.operator.text
Method parameters in org.sejda.sambox.contentstream.operator.text with type arguments of type COSBaseModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid -
Uses of COSBase in org.sejda.sambox.cos
Subclasses of COSBase in org.sejda.sambox.cosModifier and TypeClassDescriptionclassAn array of PDFBase objects as part of the PDF document.final classThis class represents a boolean value in the PDF document.classThis class represents a dictionary where name/value pairs reside.classThis is the in-memory representation of the PDF document.classThis class represents a floating point number in a PDF document.final classThis class represents an integer number in a PDF document.final classA PDF Name object.final classThis class represents a null PDF object.classThis class represents an abstract number in a PDF document.classThis class represents a stream object in a PDF document.final classA string object, which may be a text string, a PDFDocEncoded string, ASCII string, or byte string.final classA COSBase that will be written as direct objectclassA COSBase that will be written as indirect object.classA disposable indirect object reference.classAnIndirectCOSObjectReferencethat cannot be stored into object streamsFields in org.sejda.sambox.cos with type parameters of type COSBaseMethods in org.sejda.sambox.cos with type parameters of type COSBaseModifier and TypeMethodDescription<T extends COSBase>
TCOSDictionary.getDictionaryObject(String key, Class<T> clazz) Get an object of the expected type from this dictionary.<T extends COSBase>
TCOSDictionary.getDictionaryObject(COSName key, Class<T> clazz) Get an object of the expected type from this dictionary.<T extends COSBase>
TCOSDictionary.getDictionaryObject(COSName firstKey, COSName secondKey, Class<T> clazz) <T extends COSBase>
TThis will get an object from the array.Methods in org.sejda.sambox.cos that return COSBaseModifier and TypeMethodDescriptionCOSArray.get(int index) Get an object from the array.COSBase.getCOSObject()Convert this standard java object to a COS object.COSObjectable.getCOSObject()DirectCOSObject.getCOSObject()IndirectCOSObject.getCOSObject()IndirectCOSObjectReference.getCOSObject()COSDictionary.getDictionaryObject(String key) This will get an object from this dictionary.COSDictionary.getDictionaryObject(COSName key) Get an object from this dictionary.COSDictionary.getDictionaryObject(COSName firstKey, COSName secondKey) This is a special case of getDictionaryObject that takes multiple keys, it will handle the situation where multiple keys could get the same value, ie if either CS or ColorSpace is used to get the colorspace.COSStream.getFilters()This will return the filters to apply to the byte stream.This is a special case of getItem that takes multiple keys, it will handle the situation where multiple keys could get the same value, ie if either CS or ColorSpace is used to get the colorspace.COSArray.getObject(int index) This will get an object from the array.COSArray.remove(int i) COSArray.removeLast()Removes the last object of the arrayMethods in org.sejda.sambox.cos that return types with arguments of type COSBaseModifier and TypeMethodDescriptionCOSDictionary.entrySet()COSDictionary.getValues()COSArray.iterator()COSArray.listIterator()COSArray.listIterator(int index) COSArray.subList(int fromIndex, int toIndex) COSArray.toList()Methods in org.sejda.sambox.cos with parameters of type COSBaseModifier and TypeMethodDescriptionvoidbooleanCOSStream.createFilteredStream(COSBase filters) Returns a new OutputStream for writing stream data, using and the given filters.COSDictionary.getKeyForValue(COSBase value) Search in the map for the value that matches the parameter and return the first key that maps to that value.COSArray.growToSize(int size, COSBase object) This will add the object until the size of the array is at least as large as the parameter.intCOSArray.indexOfObject(COSBase object) This will return the index of the entry or -1 if it is not found.voidCOSDictionary.putIfAbsent(COSName key, COSBase value) booleanCOSArray.removeObject(COSBase o) This will remove an element from the array.voidCOSStream.setFilters(COSBase filters) set the filters to be applied to the stream.voidSet an item in the dictionary.voidSet an item in the dictionary.voidMethod parameters in org.sejda.sambox.cos with type arguments of type COSBaseModifier and TypeMethodDescriptionbooleanCOSArray.addAll(int i, Collection<? extends COSBase> objectList) booleanCOSArray.addAll(Collection<? extends COSBase> objectsList) Constructors in org.sejda.sambox.cos with parameters of type COSBaseModifierConstructorDescriptionCOSArrayList(E actualObject, COSBase item, COSDictionary dictionary, COSName dictionaryKey) This is a really special constructor.IndirectCOSObjectReference(long objectNumber, int generationNumber, COSBase baseObject) NonStorableInObjectStreams(long objectNumber, int generationNumber, COSBase baseObject) -
Uses of COSBase in org.sejda.sambox.input
Subclasses of COSBase in org.sejda.sambox.inputModifier and TypeClassDescriptionclassAn indirect object belonging to an existing pdf document.Methods in org.sejda.sambox.input that return COSBaseMethods in org.sejda.sambox.input that return types with arguments of type COSBase -
Uses of COSBase in org.sejda.sambox.output
Methods in org.sejda.sambox.output with parameters of type COSBaseModifier and TypeMethodDescriptionvoidIncrementalPDFBodyWriter.onPotentialIndirectObject(COSBase item) Method parameters in org.sejda.sambox.output with type arguments of type COSBaseModifier and TypeMethodDescriptionvoidContentStreamWriter.writeOperator(List<COSBase> operands, Operator operator) -
Uses of COSBase in org.sejda.sambox.pdmodel
Methods in org.sejda.sambox.pdmodel with type parameters of type COSBaseModifier and TypeMethodDescriptionPDPageTree.getInheritableAttribute(COSDictionary node, COSName key, Class<T> clazz) Similar toPDPageTree.getInheritableAttribute(COSDictionary, COSName)but also checks the returned element matches the expected type classMethods in org.sejda.sambox.pdmodel that return COSBaseModifier and TypeMethodDescriptionstatic COSBasePDPageTree.getInheritableAttribute(COSDictionary node, COSName key) Returns the given attribute, inheriting from parent tree nodes if necessary.PDPageTree.getInheritableAttribute(COSDictionary node, COSName key, Class<T> clazz) Similar toPDPageTree.getInheritableAttribute(COSDictionary, COSName)but also checks the returned element matches the expected type classstatic COSBasePDPageTree.getInheritableAttribute(COSDictionary node, COSName key, Set<String> visitedObjectIds) Methods in org.sejda.sambox.pdmodel with parameters of type COSBaseModifier and TypeMethodDescriptionprotected PDPageDestinationPDDestinationNameTreeNode.convertCOSToPD(COSBase base) protected PDComplexFileSpecificationPDEmbeddedFilesNameTreeNode.convertCOSToPD(COSBase base) protected PDActionJavaScriptPDJavascriptNameTreeNode.convertCOSToPD(COSBase base) protected PDStructureElementPDStructureElementNameTreeNode.convertCOSToPD(COSBase base) -
Uses of COSBase in org.sejda.sambox.pdmodel.common
Methods in org.sejda.sambox.pdmodel.common that return COSBaseModifier and TypeMethodDescriptionPDPageLabels.getCOSObject()PDRange.getCOSObject()Convert this standard java object to a COS object.Methods in org.sejda.sambox.pdmodel.common with parameters of type COSBaseModifier and TypeMethodDescriptionprotected abstract TPDNameTreeNode.convertCOSToPD(COSBase base) Method to convert the COS value in the name tree to the PD Model object.protected COSObjectablePDNumberTreeNode.convertCOSToPD(COSBase base) Method to convert the COS value in the name tree to the PD Model object.Constructors in org.sejda.sambox.pdmodel.common with parameters of type COSBase -
Uses of COSBase in org.sejda.sambox.pdmodel.common.filespecification
Methods in org.sejda.sambox.pdmodel.common.filespecification that return COSBaseModifier and TypeMethodDescriptionPDSimpleFileSpecification.getCOSObject()Convert this standard java object to a COS object.Methods in org.sejda.sambox.pdmodel.common.filespecification with parameters of type COSBaseModifier and TypeMethodDescriptionstatic PDFileSpecificationA file specfication can either be a COSString or a COSDictionary.static PDFileSpecificationFileSpecifications.fileSpecificationFor(COSBase base) Factory method for a a file specification that can be either a COSString or a COSDictionary. -
Uses of COSBase in org.sejda.sambox.pdmodel.common.function
Methods in org.sejda.sambox.pdmodel.common.function with parameters of type COSBaseModifier and TypeMethodDescriptionstatic PDFunctionCreate the correct PD Model function based on the COS base function.Constructors in org.sejda.sambox.pdmodel.common.function with parameters of type COSBaseModifierConstructorDescriptionPDFunction(COSBase function) Constructor.PDFunctionType0(COSBase function) Constructor.PDFunctionType2(COSBase function) Constructor.PDFunctionType3(COSBase functionStream) Constructor.PDFunctionType4(COSBase functionStream) Constructor.PDFunctionTypeIdentity(COSBase function) -
Uses of COSBase in org.sejda.sambox.pdmodel.documentinterchange.logicalstructure
Methods in org.sejda.sambox.pdmodel.documentinterchange.logicalstructure that return COSBaseModifier and TypeMethodDescriptionPDDefaultAttributeObject.getAttributeValue(String attrName) Gets the attribute value for a given name.protected COSBasePDDefaultAttributeObject.getAttributeValue(String attrName, COSBase defaultValue) Gets the attribute value for a given name.PDParentTreeValue.getCOSObject()PDStructureTreeRoot.getK()Returns the K entry.PDUserProperty.getValue()Returns the property value.Methods in org.sejda.sambox.pdmodel.documentinterchange.logicalstructure with parameters of type COSBaseModifier and TypeMethodDescriptionprotected voidAppends a COS base kid.protected ObjectPDStructureNode.createObject(COSBase kid) Creates an object for a kid of this structure node.protected COSBasePDDefaultAttributeObject.getAttributeValue(String attrName, COSBase defaultValue) Gets the attribute value for a given name.protected voidPDStructureNode.insertBefore(COSBase newKid, Object refKid) Inserts an COS base kid before a reference kid.protected voidPDAttributeObject.potentiallyNotifyChanged(COSBase oldBase, COSBase newBase) Notifies the attribute object change listeners if the attribute is changed.protected booleanRemoves a COS base kid.voidPDDefaultAttributeObject.setAttribute(String attrName, COSBase attrValue) Sets an attribute.voidSets the K entry.voidSets the property value. -
Uses of COSBase in org.sejda.sambox.pdmodel.documentinterchange.taggedpdf
Methods in org.sejda.sambox.pdmodel.documentinterchange.taggedpdf that return COSBase -
Uses of COSBase in org.sejda.sambox.pdmodel.encryption
Methods in org.sejda.sambox.pdmodel.encryption with parameters of type COSBase -
Uses of COSBase in org.sejda.sambox.pdmodel.font
Methods in org.sejda.sambox.pdmodel.font that return COSBaseMethods in org.sejda.sambox.pdmodel.font with parameters of type COSBase -
Uses of COSBase in org.sejda.sambox.pdmodel.font.encoding
Methods in org.sejda.sambox.pdmodel.font.encoding that return COSBaseModifier and TypeMethodDescriptionBuiltInEncoding.getCOSObject()DictionaryEncoding.getCOSObject()MacExpertEncoding.getCOSObject()SymbolEncoding.getCOSObject()Type1Encoding.getCOSObject()ZapfDingbatsEncoding.getCOSObject() -
Uses of COSBase in org.sejda.sambox.pdmodel.graphics
Methods in org.sejda.sambox.pdmodel.graphics that return COSBaseMethods in org.sejda.sambox.pdmodel.graphics with parameters of type COSBaseModifier and TypeMethodDescriptionstatic PDXObjectPDXObject.createXObject(COSBase base, PDResources resources) Creates a new XObject instance of the appropriate type for the COS stream. -
Uses of COSBase in org.sejda.sambox.pdmodel.graphics.blend
Methods in org.sejda.sambox.pdmodel.graphics.blend with parameters of type COSBaseModifier and TypeMethodDescriptionstatic BlendModeBlendMode.getInstance(COSBase cosBlendMode) Determines the blend mode from the BM entry in the COS ExtGState. -
Uses of COSBase in org.sejda.sambox.pdmodel.graphics.color
Methods in org.sejda.sambox.pdmodel.graphics.color that return COSBaseModifier and TypeMethodDescriptionPDColorSpace.getCOSObject()PDDeviceColorSpace.getCOSObject()PDGamma.getCOSObject()Convert this standard java object to a COS object.PDJPXColorSpace.getCOSObject()PDOutputIntent.getCOSObject()PDSpecialColorSpace.getCOSObject()Methods in org.sejda.sambox.pdmodel.graphics.color with parameters of type COSBaseModifier and TypeMethodDescriptionstatic PDColorSpaceCreates a color space given a name or array.static PDColorSpacePDColorSpace.create(COSBase colorSpace, PDResources resources) Creates a color space given a name or array.static PDColorSpacePDColorSpace.create(COSBase colorSpace, PDResources resources, boolean wasDefault) -
Uses of COSBase in org.sejda.sambox.pdmodel.graphics.image
Methods in org.sejda.sambox.pdmodel.graphics.image that return COSBaseConstructors in org.sejda.sambox.pdmodel.graphics.image with parameters of type COSBaseModifierConstructorDescriptionPDImageXObject(InputStream encodedStream, COSBase cosFilter, int width, int height, int bitsPerComponent, PDColorSpace initColorSpace) Creates an Image XObject in the given document using the given filtered stream. -
Uses of COSBase in org.sejda.sambox.pdmodel.graphics.state
Methods in org.sejda.sambox.pdmodel.graphics.state that return COSBaseModifier and TypeMethodDescriptionPDExtendedGraphicsState.getTransfer()This will get the transfer function of the /TR dictionary.PDGraphicsState.getTransfer()This will get the transfer function.PDExtendedGraphicsState.getTransfer2()This will get the transfer function of the /TR2 dictionary.Methods in org.sejda.sambox.pdmodel.graphics.state with parameters of type COSBaseModifier and TypeMethodDescriptionstatic PDSoftMaskCreates a new soft mask.voidPDExtendedGraphicsState.setTransfer(COSBase transfer) This will set the transfer function of the /TR dictionary.voidPDGraphicsState.setTransfer(COSBase transfer) This will set the transfer function.voidPDExtendedGraphicsState.setTransfer2(COSBase transfer2) This will set the transfer function of the /TR2 dictionary. -
Uses of COSBase in org.sejda.sambox.pdmodel.interactive.action
Methods in org.sejda.sambox.pdmodel.interactive.action that return COSBaseModifier and TypeMethodDescriptionPDActionThread.getB()PDWindowsLaunchParams.getCOSObject()Convert this standard java object to a COS object.PDActionRemoteGoTo.getD()This will get the destination to jump to.PDActionThread.getD()PDActionHide.getT()The annotation or annotations to be hidden or shownMethods in org.sejda.sambox.pdmodel.interactive.action with parameters of type COSBase -
Uses of COSBase in org.sejda.sambox.pdmodel.interactive.annotation
Methods in org.sejda.sambox.pdmodel.interactive.annotation that return COSBaseMethods in org.sejda.sambox.pdmodel.interactive.annotation with parameters of type COSBaseModifier and TypeMethodDescriptionstatic PDAnnotationPDAnnotation.createAnnotation(COSBase base) Create the correct annotation from the base COS object.Constructors in org.sejda.sambox.pdmodel.interactive.annotation with parameters of type COSBase -
Uses of COSBase in org.sejda.sambox.pdmodel.interactive.form
Methods in org.sejda.sambox.pdmodel.interactive.form that return COSBaseModifier and TypeMethodDescriptionPDXFAResource.getCOSObject()PDNonTerminalField.getDefaultValue()Returns the default value of this field.protected COSBasePDField.getInheritableAttribute(COSName key) Returns the given attribute, inheriting from parent nodes if necessary.PDNonTerminalField.getValue()Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance.PDNonTerminalField.removeChild(PDField field) Removes the given node from the children listPDAcroForm.removeField(PDField remove) removes the given field from the root fields of the formMethods in org.sejda.sambox.pdmodel.interactive.form with parameters of type COSBaseModifier and TypeMethodDescriptionstatic COSStringDefaultAppearanceHelper.getDefaultAppearance(COSBase defaultAppearance) protected final StringPDVariableText.getStringOrStream(COSBase base) Get a text as text stream.voidPDNonTerminalField.setDefaultValue(COSBase value) Sets the default of this field.voidSets the value of this field.Constructors in org.sejda.sambox.pdmodel.interactive.form with parameters of type COSBase -
Uses of COSBase in org.sejda.sambox.util
Methods in org.sejda.sambox.util with parameters of type COSBaseModifier and TypeMethodDescriptionstatic MatrixMatrix.createMatrix(COSBase base) Convenience method to be used when creating a matrix from unverified data.