// Path: src/main/java/org/docx4j/convert/out/pdf/viaXSLFO/PdfSettings.java
// public class PdfSettings extends FOSettings {
// }	


import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.xml.bind.JAXBElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.docx4j.XmlUtils;
import org.docx4j.convert.out.pdf.viaXSLFO.PdfSettings;
import org.docx4j.dml.wordprocessingDrawing.Inline;
import org.docx4j.fonts.Mapper;
import org.docx4j.fonts.PhysicalFont;
import org.docx4j.fonts.PhysicalFonts;
import org.docx4j.model.structure.HeaderFooterPolicy;
import org.docx4j.openpackaging.exceptions.Docx4JException;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage;
import org.docx4j.wml.Body;
import org.docx4j.wml.Ftr;
import org.docx4j.wml.Hdr;
import org.docx4j.wml.RFonts;
import org.docx4j.wml.RPr;
import com.lowagie.text.Chunk;
import com.lowagie.text.Document;
import com.lowagie.text.ExceptionConverter;
import com.lowagie.text.Font;
import com.lowagie.text.Image;
import com.lowagie.text.PageSize;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Rectangle;
import com.lowagie.text.pdf.BaseFont;
import com.lowagie.text.pdf.PdfPCell;
import com.lowagie.text.pdf.PdfPTable;
import com.lowagie.text.pdf.PdfPageEventHelper;
import com.lowagie.text.pdf.PdfWriter;
package org.docx4j.convert.out.pdf.viaIText;





public class Conversion extends org.docx4j.convert.out.pdf.PdfConversion {
	
	protected static Logger log = LoggerFactory.getLogger(Conversion.class);	
	
	public Conversion(WordprocessingMLPackage wordMLPackage) {
		super(wordMLPackage);
		
		headerFooterPolicy = wordMLPackage.getHeaderFooterPolicy();
	}
		
    // iText style modifiers
    // see core.lowagie.text.pdf.BaseFont
    public final static String BOLD   = ",Bold";
    public final static String ITALIC = ",Italic";
    public final static String BOLD_ITALIC = ",BoldItalic";

    public final static int DEFAULT_FONT_SIZE=11;

	Map<String, BaseFont> baseFonts = new HashMap<String, BaseFont>();
	
	HeaderFooterPolicy headerFooterPolicy;
	
	Document pdfDoc;
    
	/** Create a pdf version of the document, using XSL FO. 
	 * 
	 * @param os
	 *            The OutputStream to write the pdf to 
	 * 
	 * */    
	@Override	
// Path: src/main/java/org/docx4j/convert/out/pdf/viaXSLFO/PdfSettings.java
// public class PdfSettings extends FOSettings {
// }	


// Path: src/docx4j-extras/PdfViaIText/org/docx4j/convert/out/pdf/viaIText/Conversion.java
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.xml.bind.JAXBElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.docx4j.XmlUtils;
import org.docx4j.convert.out.pdf.viaXSLFO.PdfSettings;
import org.docx4j.dml.wordprocessingDrawing.Inline;
import org.docx4j.fonts.Mapper;
import org.docx4j.fonts.PhysicalFont;
import org.docx4j.fonts.PhysicalFonts;
import org.docx4j.model.structure.HeaderFooterPolicy;
import org.docx4j.openpackaging.exceptions.Docx4JException;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage;
import org.docx4j.wml.Body;
import org.docx4j.wml.Ftr;
import org.docx4j.wml.Hdr;
import org.docx4j.wml.RFonts;
import org.docx4j.wml.RPr;
import com.lowagie.text.Chunk;
import com.lowagie.text.Document;
import com.lowagie.text.ExceptionConverter;
import com.lowagie.text.Font;
import com.lowagie.text.Image;
import com.lowagie.text.PageSize;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Rectangle;
import com.lowagie.text.pdf.BaseFont;
import com.lowagie.text.pdf.PdfPCell;
import com.lowagie.text.pdf.PdfPTable;
import com.lowagie.text.pdf.PdfPageEventHelper;
import com.lowagie.text.pdf.PdfWriter;

package org.docx4j.convert.out.pdf.viaIText;





public class Conversion extends org.docx4j.convert.out.pdf.PdfConversion {
	
	protected static Logger log = LoggerFactory.getLogger(Conversion.class);	
	
	public Conversion(WordprocessingMLPackage wordMLPackage) {
		super(wordMLPackage);
		
		headerFooterPolicy = wordMLPackage.getHeaderFooterPolicy();
	}
		
    // iText style modifiers
    // see core.lowagie.text.pdf.BaseFont
    public final static String BOLD   = ",Bold";
    public final static String ITALIC = ",Italic";
    public final static String BOLD_ITALIC = ",BoldItalic";

    public final static int DEFAULT_FONT_SIZE=11;

	Map<String, BaseFont> baseFonts = new HashMap<String, BaseFont>();
	
	HeaderFooterPolicy headerFooterPolicy;
	
	Document pdfDoc;
    
	/** Create a pdf version of the document, using XSL FO. 
	 * 
	 * @param os
	 *            The OutputStream to write the pdf to 
	 * 
	 * */    
	@Override	
    public void output(OutputStream os, PdfSettings settings) throws Docx4JException {