类 PrintManager
java.lang.Object
com.grapecity.documents.excel.PrintManager
Represents a print settings class.
-
构造器概要
-
方法概要
修饰符和类型方法说明final void
appendPage
(org.apache.pdfbox.pdmodel.PDDocument doc, PageInfo pageInfo) Append the page info to the specified pdf document.final void
appendPage
(org.apache.pdfbox.pdmodel.PDDocument doc, PageInfo pageInfo, PdfSaveOptions options) Append the page info to the specified pdf document.final void
draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Point location, IRange range) Draw the range data to the specific location in a specified pdf page.final void
draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Point location, IRange range, PdfSaveOptions options) Draw the range data to the specific location in a specified pdf page.final void
draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, IRange range) Draw the range data to the specific location in a specified pdf page.final void
draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, IRange range, PdfSaveOptions options) Draw the range data to the specific location in a specified pdf page.final void
draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, PageContentInfo pageContent) Draw the page info to the specific location in a specified pdf page.final void
draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, PageContentInfo pageContent, PdfSaveOptions options) Draw the page info to the specific location in a specified pdf page.final void
draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, PageInfo pageInfo) Draw the page info to the specific location in a specified pdf page.final void
draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, PageInfo pageInfo, PdfSaveOptions options) Draw the page info to the specific location in a specified pdf page.protected void
finalize()
final PageContentInfo
generatePageContentInfo
(IRange printArea, Size availableSize, int rowStart, int columnStart, boolean rowHeaderVisible, boolean columnHeaderVisible) Returns a PageContentInfo object.final Size
Returns the size of the range.final Size
getSize
(PageContentInfo contentInfo) Returns the size of the PageContentInfo.final boolean
hasPrintContent
(IRange range) Returns whether there has content to print.
-
构造器详细资料
-
PrintManager
public PrintManager()
-
-
方法详细资料
-
finalize
-
generatePageContentInfo
public final PageContentInfo generatePageContentInfo(IRange printArea, Size availableSize, int rowStart, int columnStart, boolean rowHeaderVisible, boolean columnHeaderVisible) Returns a PageContentInfo object.- 参数:
printArea
- The print area.availableSize
- The size that excludes the margins.rowStart
- The start row index which is used to calculate the RowEnd.columnStart
- The start column index which is used to calculate the ColumnEnd.rowHeaderVisible
- True if the row header is printed with this page.columnHeaderVisible
- True if the column header is printed with this page.
-
appendPage
Append the page info to the specified pdf document.- 参数:
doc
- The specified GcPdfDocument.pageInfo
- The printed page info.
-
appendPage
public final void appendPage(org.apache.pdfbox.pdmodel.PDDocument doc, PageInfo pageInfo, PdfSaveOptions options) Append the page info to the specified pdf document.- 参数:
doc
- The specified GcPdfDocument.pageInfo
- The printed page info.options
- Options for saving pdf file.
-
hasPrintContent
Returns whether there has content to print.- 参数:
range
- The printed range of a page.
-
getSize
Returns the size of the PageContentInfo.- 参数:
contentInfo
- The PageContentInfo object.
-
getSize
Returns the size of the range.- 参数:
range
- The range object.
-
draw
public final void draw(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Point location, IRange range) Draw the range data to the specific location in a specified pdf page.- 参数:
page
- The page in a GcPdfDocument.location
- The location of the range data to be drawn.range
- The print data range.
-
draw
public final void draw(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Point location, IRange range, PdfSaveOptions options) Draw the range data to the specific location in a specified pdf page.- 参数:
page
- The page in a GcPdfDocument.location
- The location of the range data to be drawn.range
- The print data range.options
- Options for saving pdf file.
-
draw
public final void draw(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, IRange range) Draw the range data to the specific location in a specified pdf page.- 参数:
page
- The page in a GcPdfDocument.rect
- The location and size of the range data to be drawn.range
- The print data range.
-
draw
public final void draw(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, IRange range, PdfSaveOptions options) Draw the range data to the specific location in a specified pdf page.- 参数:
page
- The page in a GcPdfDocument.rect
- The location and size of the range data to be drawn.range
- The print data range.options
- Options for saving pdf file.
-
draw
public final void draw(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, PageContentInfo pageContent) Draw the page info to the specific location in a specified pdf page.- 参数:
page
- The page in a GcPdfDocument.rect
- The location and size of the data to be drawn.pageContent
- The printed page content info.
-
draw
public final void draw(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, PageContentInfo pageContent, PdfSaveOptions options) Draw the page info to the specific location in a specified pdf page.- 参数:
page
- The page in a GcPdfDocument.rect
- The location and size of the data to be drawn.pageContent
- The printed page content info.options
- Options for saving pdf file.
-
draw
public final void draw(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, PageInfo pageInfo) Draw the page info to the specific location in a specified pdf page.- 参数:
page
- The page in a GcPdfDocument.rect
- The location and size of the data to be drawn.pageInfo
- The printed page info.
-
draw
public final void draw(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, PageInfo pageInfo, PdfSaveOptions options) Draw the page info to the specific location in a specified pdf page.- 参数:
page
- The page in a GcPdfDocument.rect
- The location and size of the data to be drawn.pageInfo
- The printed page info.options
- Options for saving pdf file.
-