/**
 * 
 */
package com.fp.firmas.rules.common;

import java.util.ArrayList;
import java.util.List;

import com.itextpdf.text.pdf.parser.ImageRenderInfo;
import com.itextpdf.text.pdf.parser.RenderListener;
import com.itextpdf.text.pdf.parser.TextRenderInfo;
import com.itextpdf.text.pdf.parser.Vector;

/**
 * @author Gbensvides
 *
 */
public class PDFRendererListener implements RenderListener {

	/* (non-Javadoc)
	 * @see com.itextpdf.text.pdf.parser.RenderListener#beginTextBlock()
	 * 
	 */
	
	List<Vector> listaImagenes = new ArrayList<Vector>();
	
	@Override
	public void beginTextBlock() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see com.itextpdf.text.pdf.parser.RenderListener#renderText(com.itextpdf.text.pdf.parser.TextRenderInfo)
	 */
	@Override
	public void renderText(TextRenderInfo renderInfo) {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see com.itextpdf.text.pdf.parser.RenderListener#endTextBlock()
	 */
	@Override
	public void endTextBlock() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see com.itextpdf.text.pdf.parser.RenderListener#renderImage(com.itextpdf.text.pdf.parser.ImageRenderInfo)
	 */
	@Override
	public void renderImage(ImageRenderInfo renderInfo) {
		// TODO Auto-generated method stub
		listaImagenes.add(renderInfo.getStartPoint());

	}

	public List<Vector> getListaImagenes() {
		return listaImagenes;
	}

	public void setListaImagenes(List<Vector> listaImagenes) {
		this.listaImagenes = listaImagenes;
	}

}
