public class PDFWArray extends Object
Constructor and Description |
---|
PDFWArray()
Default constructor
|
PDFWArray(int[] metrics)
Convenience constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(int start,
int[] metrics)
Add an entry for single starting CID.
|
void |
addEntry(int first,
int last,
int width)
Add an entry for a range of CIDs (/W element on p 213)
|
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)
|
byte[] |
toPDF()
Convert this object to PDF code.
|
String |
toPDFString()
Convert this object to PDF code.
|
public PDFWArray()
public PDFWArray(int[] metrics)
metrics
- the metrics array to initially addpublic void addEntry(int start, int[] metrics)
start
- the starting CID value.metrics
- the metrics array.public void addEntry(int first, int last, int width)
first
- the first CID in the rangelast
- the last CID in the rangewidth
- the width for all CIDs in the rangepublic void addEntry(int first, int last, int width, int posX, int posY)
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 vectorpublic byte[] toPDF()
public String toPDFString()
Copyright © 2022 Apache Software Foundation. All rights reserved.