Package com.evopdf
Class ConversionSummary
java.lang.Object
com.evopdf.ConversionSummary
Offers summary information about the conversion process. After a successful
conversion the
HtmlToPdfConverter.conversionSummary()
property is
initialized with an instance of this class-
Method Summary
Modifier and TypeMethodDescriptionThe size of the converted HTML content in pixelsGets the size of the HTML content in points.float
The factor used to resize the HTML content when rendered in the PDF document.int
Gets the index of the page where the rendering of the HTML ended.Gets the bounds of the rectangle rendered on the last page.int
Gets the number of pages in the generated PDF documentGets the page size in points of the generated PDF documentGets the bounds of the rendered rectangle on each PDF pagevoid
setLastPageIndex
(int lastPageIndex) Sets the indexvoid
setLastPageRectangle
(RectangleFloat lastPageRectangle) Sets the bounds
-
Method Details
-
pdfPageCount
public int pdfPageCount()Gets the number of pages in the generated PDF document- Returns:
- the number of pages in the generated PDF document
-
htmlContentSizePixels
The size of the converted HTML content in pixels- Returns:
- the size of the converted HTML content in pixels
-
htmlContentSizePoints
Gets the size of the HTML content in points. A point is 1/72 inches. The converter internally transforms thehtmlContentSizePixels()
in points- Returns:
- the size of the HTML content in points
-
pdfPageSizePoints
Gets the page size in points of the generated PDF document- Returns:
- the PDF page size in points
-
htmlContentWidthResizeFactor
public float htmlContentWidthResizeFactor()The factor used to resize the HTML content when rendered in the PDF document. WhenPdfDocumentOptions.fitWidth()
property of theHtmlToPdfConverter.pdfDocumentOptions()
object is true, the HTML content will be resized to fit the PDF page width if necessary- Returns:
- the factor used to resize the HTML content when rendered in the PDF document
-
lastPageIndex
public int lastPageIndex()Gets the index of the page where the rendering of the HTML ended. This information is useful when new elements are added after conversion- Returns:
- the index of the page where the rendering of the HTML ended
-
setLastPageIndex
public void setLastPageIndex(int lastPageIndex) Sets the index- Parameters:
lastPageIndex
- the index to set
-
lastPageRectangle
Gets the bounds of the rectangle rendered on the last page. This information is useful when new elements are added after conversion- Returns:
- the bounds of the rectangle rendered on the last page
-
setLastPageRectangle
Sets the bounds- Parameters:
lastPageRectangle
- the bounds to set
-
renderedPagesRectangles
Gets the bounds of the rendered rectangle on each PDF page- Returns:
- the bounds of the rendered rectangle on each PDF page
-