Ejemplo n.º 1
0
        /**
         * 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);
        }