Package org.apache.fop.pdf
Class PDFWArray
- java.lang.Object
-
- org.apache.fop.pdf.PDFWArray
-
public class PDFWArray extends java.lang.ObjectClass representing a W array for CID fonts.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(int start, int[] metrics)Add an entry for single starting CID.voidaddEntry(int first, int last, int width)Add an entry for a range of CIDs (/W element on p 213)voidaddEntry(int first, int last, int width, int posX, int posY)Add an entry for a range of CIDs (/W2 element on p 210)byte[]toPDF()Convert this object to PDF code.java.lang.StringtoPDFString()Convert this object to PDF code.
-
-
-
Method Detail
-
addEntry
public void addEntry(int start, int[] metrics)Add an entry for single starting CID. i.e. in the form "c [w ...]"- Parameters:
start- the starting CID value.metrics- the metrics array.
-
addEntry
public void addEntry(int first, int last, int width)Add an entry for a range of CIDs (/W element on p 213)- Parameters:
first- the first CID in the rangelast- the last CID in the rangewidth- the width for all CIDs in the range
-
addEntry
public void addEntry(int first, int last, int width, int posX, int posY)Add an entry for a range of CIDs (/W2 element on p 210)- Parameters:
first- the first CID in the rangelast- the last CID in the rangewidth- the width for all CIDs in the rangeposX- the x component for the vertical position vectorposY- the y component for the vertical position vector
-
toPDF
public byte[] toPDF()
Convert this object to PDF code.- Returns:
- byte[] the PDF code
-
toPDFString
public java.lang.String toPDFString()
Convert this object to PDF code.- Returns:
- String the PDF code
-
-