List of usage examples for com.itextpdf.text.pdf PdfName DEVICEGRAY
PdfName DEVICEGRAY
To view the source code for com.itextpdf.text.pdf PdfName DEVICEGRAY.
Click Source Link
From source file:mkl.testarea.itext5.pdfcleanup.PdfCleanUpContext.java
License:Open Source License
public PdfCleanUpContext() { List<PdfObject> initialStrokeColor = new ArrayList<PdfObject>( Arrays.asList(PdfName.DEVICEGRAY, new PdfLiteral("CS"))); strokeColorOperands = new Stack<List<PdfObject>>(); strokeColorOperands.push(initialStrokeColor); }
From source file:pl.edu.icm.cermine.structure.ITextCharacterExtractor.java
License:Open Source License
private void processAlternativeColorSpace(PdfDictionary resources) { if (resources == null) { return;/*from w ww.j a v a2 s . c om*/ } PdfDictionary csDictionary = resources.getAsDict(PdfName.COLORSPACE); if (csDictionary == null) { return; } for (PdfName csName : csDictionary.getKeys()) { if (csDictionary.getAsArray(csName) != null) { csDictionary.put(csName, PdfName.DEVICEGRAY); } } }