1 31 package org.pdfbox.util.operator; 32 33 import java.io.IOException ; 34 import java.util.ArrayList ; 35 import java.util.List ; 36 import org.pdfbox.cos.COSFloat; 37 import org.pdfbox.cos.COSNumber; 38 import org.pdfbox.util.PDFOperator; 39 40 51 public class MoveTextSetLeading extends OperatorProcessor 52 { 53 54 61 public void process(PDFOperator operator, List arguments) throws IOException 62 { 63 COSNumber y = (COSNumber)arguments.get( 1 ); 65 66 ArrayList args = new ArrayList (); 67 args.add(new COSFloat(-1*y.floatValue())); 68 context.processOperator("TL", args); 69 context.processOperator("Td", arguments); 70 71 } 72 } 73 | Popular Tags |