iTextSharp.text.pdf.PdfDestination.AddPage C# (CSharp) Метод

AddPage() публичный Метод

public AddPage ( PdfIndirectReference page ) : bool
page PdfIndirectReference
Результат bool
        public bool AddPage(PdfIndirectReference page)
        {
            if (!status) {
                AddFirst(page);
                status = true;
                return true;
            }
            return false;
        }

Usage Example

Пример #1
0
        /** Creates a GoTo action to an internal page.
         * @param page the page to go. First page is 1
         * @param dest the destination for the page
         * @param writer the writer for this action
         * @return a GoTo action
         */
        public static PdfAction GotoLocalPage(int page, PdfDestination dest, PdfWriter writer)
        {
            PdfIndirectReference piref = writer.GetPageReference(page);

            dest.AddPage(piref);
            PdfAction action = new PdfAction();

            action.Put(PdfName.S, PdfName.GOTO);
            action.Put(PdfName.D, dest);
            return(action);
        }
All Usage Examples Of iTextSharp.text.pdf.PdfDestination::AddPage