/** * (Optional) An array of names indicating encodings to use when signing. The first name * in the array that matches an encoding supported by the signature handler shall be the * encoding that is actually used for signing. * * @param subfilter is the name that shall be used for encoding */ public void setSubFilter(List<COSName> subfilter) { dictionary.setItem(COSName.SUB_FILTER, COSArrayList.converterToCOSArray(subfilter)); }
/** * This will set the list of annotations. This should be a list of FDFAnnotation objects. * * * @param annots The list of annotations. */ public final void setAnnotations(List<FDFAnnotation> annots) { fdf.setItem(COSName.ANNOTS, COSArrayList.converterToCOSArray(annots)); }
/** * (Optional, PDF 1.6) An array of text strings that specifying possible legal * attestations. * * @param legalAttestation is a list of possible text string that specifying possible * legal attestations. */ public void setLegalAttestation(List<String> legalAttestation) { dictionary.setItem(COSName.LEGAL_ATTESTATION, COSArrayList.converterToCOSArray(legalAttestation)); } }
/** * This will set the list of fields. This should be a list of FDFField objects. * * @param fields The list of fields. */ public final void setFields(List<FDFField> fields) { fdf.setItem(COSName.FIELDS, COSArrayList.converterToCOSArray(fields)); }
/** * This will set the list of thread beads. * * @param beads A list of PDThreadBead objects or null. */ public void setThreadBeads(List<PDThreadBead> beads) { page.setItem(COSName.B, COSArrayList.converterToCOSArray(beads)); }
/** * This will set the next action, or sequence of actions, to be performed after this one. * The value is either a single action dictionary or an array of action dictionaries * to be performed in order. * * @param next The Next action or sequence of actions. */ public void setNext( List<?> next ) { action.setItem(COSName.NEXT, COSArrayList.converterToCOSArray(next)); } }
/** * This will set the filters that are part of this stream. * * @param filters The filters that are part of this stream. */ public void setFilters(List<COSName> filters) { COSBase obj = COSArrayList.converterToCOSArray(filters); stream.setItem(COSName.FILTER, obj); }
/** * This will set the list of decode parameterss. * * @param decodeParams The list of decode parameterss. */ public void setDecodeParms(List<?> decodeParams) { stream.setItem(COSName.DECODE_PARMS, COSArrayList.converterToCOSArray(decodeParams)); }
/** * This will set a list of fields for this template. * * @param fields The list of fields to set for this template. */ public void setFields(List<FDFField> fields) { template.setItem(COSName.FIELDS, COSArrayList.converterToCOSArray(fields)); }
/** * This will set the options for the choice field. The objects in the list should either be java.lang.String or * FDFOptionElement. * * @param options The options to set. */ public void setOptions(List<Object> options) { COSArray value = COSArrayList.converterToCOSArray(options); field.setItem(COSName.OPT, value); }
/** * This will set the list of pages. This should be a list of FDFPage objects. * * * @param pages The list of pages. */ public void setPages(List<FDFPage> pages) { fdf.setItem(COSName.PAGES, COSArrayList.converterToCOSArray(pages)); }
/** * A list of FDFTemplate objects. * * @param templates A list of templates for this Page. */ public void setTemplates(List<FDFTemplate> templates) { page.setItem(COSName.TEMPLATES, COSArrayList.converterToCOSArray(templates)); }
/** * This will set the list of decode params. * * @param decodeParams The list of decode params. */ public void setFileDecodeParams(List<?> decodeParams) { stream.setItem("FDecodeParams", COSArrayList.converterToCOSArray(decodeParams)); }
/** * Sets the list of threads for this pdf document. * * @param threads The list of threads, or null to clear it. */ public void setThreads(List<PDThread> threads) { root.setItem(COSName.THREADS, COSArrayList.converterToCOSArray(threads)); }
/** * This will set the list of kids. * * @param kids A list of FDFField objects. */ public final void setKids(List<FDFField> kids) { field.setItem(COSName.KIDS, COSArrayList.converterToCOSArray(kids)); }
/** * This will set the list of embedded FDFs. This should be a list of PDFileSpecification objects. * * * @param embedded The list of embedded FDFs. */ public void setEmbeddedFDFs(List<PDFileSpecification> embedded) { fdf.setItem(COSName.EMBEDDED_FDFS, COSArrayList.converterToCOSArray(embedded)); }
/** * (Optional) An array of text strings that specifying possible reasons for signing * a document. If specified, the reasons supplied in this entry replace those used * by conforming products. * * @param reasons is a list of possible text string that specifying possible reasons */ public void setReasons(List<String> reasons) { dictionary.setItem(COSName.REASONS, COSArrayList.converterToCOSArray(reasons)); }
/** * Set the documents root fields. * * @param fields The fields that are part of the documents root fields. */ public void setFields(List<PDField> fields) { dictionary.setItem(COSName.FIELDS, COSArrayList.converterToCOSArray(fields)); }
/** * Sets the child fields. * * @param children The list of child fields. */ public void setChildren(List<PDField> children) { COSArray kidsArray = COSArrayList.converterToCOSArray(children); getCOSObject().setItem(COSName.KIDS, kidsArray); }
@Override public COSBase getCOSObject() { COSArray cos = new COSArray(); cos.add(COSArrayList.converterToCOSArray(Arrays.asList(array))); cos.add(COSInteger.get(phase)); return cos; }