Example usage for com.itextpdf.text.pdf PdfNumber floatValue

List of usage examples for com.itextpdf.text.pdf PdfNumber floatValue

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf PdfNumber floatValue.

Prototype

public float floatValue() 

Source Link

Document

Returns the primitive float value of this object.

Usage

From source file:mkl.testarea.itext5.pdfcleanup.StrictPdfCleanUpProcessor.java

License:Open Source License

private Font retrieveFontFromAcroForm(PdfName fontName, PdfNumber size) {
    PdfIndirectReference fontIndirReference = pdfStamper.getReader().getAcroForm().getAsDict(PdfName.DR)
            .getAsDict(PdfName.FONT).getAsIndirectObject(fontName);
    BaseFont bfont = BaseFont.createFont((PRIndirectReference) fontIndirReference);

    return new Font(bfont, size.floatValue());
}