@@ -31,12 +31,10 @@ This file is part of the iText (R) project.
3131import com .itextpdf .pdfa .PdfADocument ;
3232import com .itextpdf .pdfa .exceptions .PdfAConformanceException ;
3333import com .itextpdf .pdfa .exceptions .PdfaExceptionMessageConstant ;
34- import com .itextpdf .test .ExtendedITextTest ;
3534import com .itextpdf .test .LogLevelConstants ;
3635import com .itextpdf .test .annotations .LogMessage ;
3736import com .itextpdf .test .annotations .LogMessages ;
3837import com .itextpdf .test .annotations .type .IntegrationTest ;
39- import com .itextpdf .test .pdfa .VeraPdfValidator ;
4038
4139import java .io .FileInputStream ;
4240import java .io .FileOutputStream ;
@@ -66,7 +64,7 @@ public void convertToPdfA3USimpleTest() throws IOException, InterruptedException
6664 String destinationPdf = DESTINATION_FOLDER + "simple.pdf" ;
6765 ConverterProperties converterProperties = new ConverterProperties ();
6866 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
69- converterProperties .setOutputIntent (
67+ converterProperties .setDocumentOutputIntent (
7068 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
7169 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
7270 try (FileInputStream fileInputStream = new FileInputStream (sourceHtml )) {
@@ -83,7 +81,7 @@ public void convertToPdfA3USimpleFromStringTest() throws IOException, Interrupte
8381 String destinationPdf = DESTINATION_FOLDER + "simple.pdf" ;
8482 ConverterProperties converterProperties = new ConverterProperties ();
8583 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
86- converterProperties .setOutputIntent (
84+ converterProperties .setDocumentOutputIntent (
8785 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
8886 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
8987 HtmlConverter .convertToPdf ("<html>\n " +
@@ -105,7 +103,7 @@ public void convertToPdfA3ASimpleTest() throws IOException, InterruptedException
105103 String destinationPdf = DESTINATION_FOLDER + "simple_a.pdf" ;
106104 ConverterProperties converterProperties = new ConverterProperties ();
107105 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
108- converterProperties .setOutputIntent (
106+ converterProperties .setDocumentOutputIntent (
109107 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
110108 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
111109 try (FileInputStream fileInputStream = new FileInputStream (sourceHtml )) {
@@ -127,7 +125,7 @@ public void convertToPdfA3ColorsTest() throws IOException, InterruptedException
127125 String cmpPdf = SOURCE_FOLDER + "cmp_pdfA3ColorTest.pdf" ;
128126 ConverterProperties converterProperties = new ConverterProperties ();
129127 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
130- converterProperties .setOutputIntent (
128+ converterProperties .setDocumentOutputIntent (
131129 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
132130 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
133131 try (FileInputStream fileInputStream = new FileInputStream (sourceHtml )) {
@@ -144,7 +142,7 @@ public void convertToPdfA3UWithCustomFontProviderTest() throws IOException, Inte
144142 String destinationPdf = DESTINATION_FOLDER + "simple_custom_font.pdf" ;
145143 ConverterProperties converterProperties = new ConverterProperties ();
146144 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
147- converterProperties .setOutputIntent (
145+ converterProperties .setDocumentOutputIntent (
148146 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
149147 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
150148 DefaultFontProvider fontProvider = new DefaultFontProvider (false , false , false );
@@ -185,7 +183,7 @@ public void convertToPdfA3UnreferencedGlyphsTest() throws IOException {
185183 "</html>" ;
186184 ConverterProperties converterProperties = new ConverterProperties ();
187185 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
188- converterProperties .setOutputIntent (
186+ converterProperties .setDocumentOutputIntent (
189187 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
190188 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
191189 DefaultFontProvider fontProvider = new DefaultFontProvider (false , false , false );
@@ -216,7 +214,7 @@ public void convertToPdfA3ArabicFontTest() throws IOException, InterruptedExcept
216214 "</html>" ;
217215 ConverterProperties converterProperties = new ConverterProperties ();
218216 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
219- converterProperties .setOutputIntent (
217+ converterProperties .setDocumentOutputIntent (
220218 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
221219 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
222220 DefaultFontProvider fontProvider = new DefaultFontProvider (false , false , false );
@@ -241,7 +239,7 @@ public void convertToPdfA3UnreferencedEmojiTest() throws IOException {
241239 "</html>" ;
242240 ConverterProperties converterProperties = new ConverterProperties ();
243241 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
244- converterProperties .setOutputIntent (
242+ converterProperties .setDocumentOutputIntent (
245243 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
246244 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
247245 DefaultFontProvider fontProvider = new DefaultFontProvider (false , false , false );
@@ -272,7 +270,7 @@ public void convertToPdfA3EmojiTest() throws IOException, InterruptedException {
272270 "</html>" ;
273271 ConverterProperties converterProperties = new ConverterProperties ();
274272 converterProperties .setPdfAConformanceLevel (PdfAConformanceLevel .PDF_A_3U );
275- converterProperties .setOutputIntent (
273+ converterProperties .setDocumentOutputIntent (
276274 new PdfOutputIntent ("Custom" , "" , "http://www.color.org" , "sRGB IEC61966-2.1" ,
277275 new FileInputStream (SOURCE_FOLDER + "sRGB Color Space Profile.icm" )));
278276 DefaultFontProvider fontProvider = new DefaultFontProvider (false , false , false );
0 commit comments