Class PdfBoxGraphics2DColorMapper

    • Constructor Detail

      • PdfBoxGraphics2DColorMapper

        public PdfBoxGraphics2DColorMapper()
    • Method Detail

      • mapColor

        public org.apache.pdfbox.pdmodel.graphics.color.PDColor mapColor​(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
                                                                         Color color)
        Description copied from interface: IPdfBoxGraphics2DColorMapper
        Map the given Color to a PDColor
        Specified by:
        mapColor in interface IPdfBoxGraphics2DColorMapper
        Parameters:
        contentStream - the content stream
        color - the color to map
        Returns:
        the mapped color