PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.fonts.type1 Package / PDFType1Font Class / createWithPfmMetrics Method / createWithPfmMetrics(Stream,Stream,double,boolean) Method
pfm data stream.
pfb data stream.
Font size.
If true, the font will be embedded in the PDF file.
Collapse All Expand All
In This Topic

createWithPfmMetrics(Stream,Stream,double,boolean) Method
In This Topic
Creates a Type1 font from a combination of .pfm and .pfb files.
Syntax

    public static PDFType1Font createWithPfmMetrics(
       Stream metricsStream,
       Stream fontStream,
       double size,
       boolean embed
    )

#### Parameters

metricsStream
  pfm data stream.
fontStream
  pfb data stream.
size
  Font size.
embed
  If true, the font will be embedded in the PDF file.

#### Return Value

A Type1 font Object.
See Also

#### Reference

PDFType1Font Class
PDFType1Font Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.