Java iText和颜色配置文件

Java iText和颜色配置文件,java,pdf,colors,itext,profile,Java,Pdf,Colors,Itext,Profile,我正在使用iText的PdfStamper创建一个PDF,我想应用不同的颜色配置文件。我只见过使用PdfWriter的例子,但PdfStamper似乎有一个底层PdfWriter,您可以通过getWriter()获得它。我正在使用下面的代码,但它似乎没有应用颜色配置文件 PdfWriter pdfwriter = outputPDF.getWriter(); String profileName = this._renderVO.getProfileName(); String profileP

我正在使用iText的PdfStamper创建一个PDF,我想应用不同的颜色配置文件。我只见过使用PdfWriter的例子,但PdfStamper似乎有一个底层PdfWriter,您可以通过
getWriter()
获得它。我正在使用下面的代码,但它似乎没有应用颜色配置文件

PdfWriter pdfwriter = outputPDF.getWriter();
String profileName = this._renderVO.getProfileName();
String profilePath = this._renderVO.getProfilePath();
ICC_Profile icc = ICC_Profile.getInstance(new FileInputStream(profilePath));
pdfwriter.setOutputIntents("Custom", "", "http://www.color.org", profileName, icc);
应用配置文件所需调用的全部是setOutputinates吗


谢谢

您确定profilePath和profileName正确吗?我将记录这些值作为起点。