Пример #1
0
        public PDFPage GetPage(int pageNumber)
        {
            PDFPage pDFPage = new PDFPage()
            {
                PDFBoxPage = this.pdfDocument.getPage(pageNumber - 1)
            };

            return(pDFPage);
        }
Пример #2
0
        public bool RemovePage(PDFPage page)
        {
            bool flag;

            try
            {
                this.pdfDocument.removePage(page.PDFBoxPage);
                flag = true;
            }
            catch (Exception exception)
            {
                flag = false;
            }
            return(flag);
        }
Пример #3
0
 public PDFPageContentStream(PDFDocument pdfDocument, PDFPage sourcePage, bool appendContent, bool compress, bool resetContext)
 {
     PDPageContentStream.AppendMode aPPEND = PDPageContentStream.AppendMode.APPEND;
     aPPEND = (!appendContent ? PDPageContentStream.AppendMode.OVERWRITE : PDPageContentStream.AppendMode.APPEND);
     this.pageContentStream = new PDPageContentStream(pdfDocument.PDFBoxDocument, sourcePage.PDFBoxPage, aPPEND, compress);
 }
Пример #4
0
 public PDFPageContentStream(PDFDocument pdfDocument, PDFPage sourcePage, bool appendContent, bool compress)
 {
     this.pageContentStream = new PDPageContentStream(pdfDocument.PDFBoxDocument, sourcePage.PDFBoxPage, PDPageContentStream.AppendMode.APPEND, compress);
 }
Пример #5
0
 public PDFPageContentStream(PDFDocument pdfDocument, PDFPage sourcePage)
 {
     this.pageContentStream = new PDPageContentStream(pdfDocument.PDFBoxDocument, sourcePage.PDFBoxPage);
 }
Пример #6
0
 public void AddPage(PDFPage page)
 {
     this.pdfDocument.addPage(page.PDFBoxPage);
 }