PdfStream getFormXObject ( int compressionLevel ) throws IOException { PdfStream s = new PdfStream ( content . toByteArray ( ) ) ; s . put ( PdfName . TYPE , PdfName . XOBJECT ) ; s . put ( PdfName . SUBTYPE , PdfName . PS ) ; s . flateCompress ( compressionLevel ) ; return s ; }
Gets the stream representing this object .