public PDFPage GetPage(int pageNumber) { PDFPage pDFPage = new PDFPage() { PDFBoxPage = this.pdfDocument.getPage(pageNumber - 1) }; return(pDFPage); }
public bool RemovePage(PDFPage page) { bool flag; try { this.pdfDocument.removePage(page.PDFBoxPage); flag = true; } catch (Exception exception) { flag = false; } return(flag); }
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); }
public PDFPageContentStream(PDFDocument pdfDocument, PDFPage sourcePage, bool appendContent, bool compress) { this.pageContentStream = new PDPageContentStream(pdfDocument.PDFBoxDocument, sourcePage.PDFBoxPage, PDPageContentStream.AppendMode.APPEND, compress); }
public PDFPageContentStream(PDFDocument pdfDocument, PDFPage sourcePage) { this.pageContentStream = new PDPageContentStream(pdfDocument.PDFBoxDocument, sourcePage.PDFBoxPage); }
public void AddPage(PDFPage page) { this.pdfDocument.addPage(page.PDFBoxPage); }