org.pdfbox.pdmodel.graphics.xobject
Class PDXObjectForm
- COSObjectable
public class PDXObjectForm
A form xobject.
static String | SUB_TYPE - The XObject subtype.
|
SUB_TYPE
public static final String SUB_TYPE
The XObject subtype.
PDXObjectForm
public PDXObjectForm(COSStream formStream)
Standard constuctor.
formStream
- The XObject is passed as a COSStream.
PDXObjectForm
public PDXObjectForm(PDStream formStream)
Standard constuctor.
formStream
- The XObject is passed as a COSStream.
getFormType
public int getFormType()
This will get the form type, currently 1 is the only form type.
getResources
public PDResources getResources()
This will get the resources at this page and not look up the hierarchy.
This attribute is inheritable, and findResources() should probably used.
This will return null if no resources are available at this level.
- The resources at this level in the hierarchy.
setFormType
public void setFormType(int formType)
Set the form type.
formType
- The new form type.
setResources
public void setResources(PDResources resources)
This will set the resources for this page.
resources
- The new resources for this page.