/** * Adds or replaces the Collection Dictionary in the Catalog. * @param collection the new collection dictionary. */ public void MakePackage(PdfCollection collection) { stamper.MakePackage(collection); }
/** * Adds or replaces the Collection Dictionary in the Catalog. * @param collection the new collection dictionary. */ internal void MakePackage(PdfCollection collection) { PdfDictionary catalog = reader.Catalog; catalog.Put( PdfName.COLLECTION, collection ); }
/** * This is the most simple way to change a PDF into a * portable collection. Choose one of the following names: * <ul> * <li>PdfName.D (detailed view) * <li>PdfName.T (tiled view) * <li>PdfName.H (hidden) * </ul> * Pass this name as a parameter and your PDF will be * a portable collection with all the embedded and * attached files as entries. * @param initialView can be PdfName.D, PdfName.T or PdfName.H */ public void MakePackage( PdfName initialView ) { PdfCollection collection = new PdfCollection(0); collection.Put(PdfName.VIEW, initialView); stamper.MakePackage( collection ); }