protected var _compressionLevel:intprotected var _rgbTransparencyBlending:Booleanprotected var _structureTreeRoot:PdfStructureTreeRootprotected var _tagged:Boolean = falseprotected var _userunit:Number = 0protected var body:PdfBodyprotected var colorNumber:int = 1compressionLevel:int [read-only]
Returns the compression level used for streams written by this writer.
Implementation public function get compressionLevel():intpublic var crypto:PdfEncryptionprotected var currentPageNumber:int = 1protected var defaultColorspace:PdfDictionaryprotected var defaultPageSize:PageSizeprotected var directContent:PdfContentByteprotected var directContentUnder:PdfContentByteprotected var documentColors:HashMapprotected var documentExtGState:HashMapprotected var documentFonts:HashMapprotected var documentOCG:HashSetprotected var documentOCGOrder:Vector.<IPdfOCG>protected var documentPatterns:HashMapprotected var documentProperties:HashMapprotected var documentShadingPatterns:HashMapprotected var documentShadings:HashMapprotected var documentSpotPatterns:HashMapprotected var extraCatalog:PdfDictionaryprotected var fontCount:int = 1protected var formXObjects:HashMapprotected var formXObjectsCounter:int = 1protected var fullCompression:Boolean = falseprotected var group:PdfDictionaryprotected var imageDictionary:PdfDictionaryprotected var images:HashMapprotected var newBookmarks:Arrayprotected var OCGLocked:PdfArrayprotected var OCGRadioGroup:PdfArrayprotected var OCProperties:PdfOCPropertiesprotected var opened:Boolean = falsepageNumber:int [read-only]
Gets the pagenumber of this document.
This number can be different from the real pagenumber,
if you have (re)set the page number previously.
Implementation public function get pageNumber():intprotected var pageReferences:Vector.<PdfIndirectReference>protected var patternColorspaceCMYK:ColorDetailsprotected var patternColorspaceGRAY:ColorDetailsprotected var patternColorspaceRGB:ColorDetailsprotected var patternCounter:int = 1protected var paused:Boolean = falseprotected var pdf:PdfDocumentprotected var pdf_version:PdfVersionpdfDocument:PdfDocument [read-only]
Implementation public function get pdfDocument():PdfDocumentpdfIndirectReference:PdfIndirectReference [read-only]
Use this to get an PdfIndirectReference for an object that
will be created in the future.
Use this method only if you know what you're doing!
Implementation public function get pdfIndirectReference():PdfIndirectReferenceprotected var prevxref:int = 0rgbTransparencyBlending:Boolean
Gets the transparency blending colorspace
Implementation public function get rgbTransparencyBlending():Boolean public function set rgbTransparencyBlending(value:Boolean):voidprotected var root:PdfPagesprotected var runDirection:int = 1spaceCharRatio:Number [read-only]
Implementation public function get spaceCharRatio():NumberstructureTreeRoot:PdfStructureTreeRoot [read-only]
Gets the structure tree root.
If the document is not marked for tagging it will return null.
Implementation public function get structureTreeRoot():PdfStructureTreeRootprotected var tabs:PdfName = nulltagged:Boolean Implementation public function get tagged():Boolean public function set tagged(value:Boolean):voiduserProperties:Boolean
Sets the flag indicating the presence of structure elements that contain user properties attributes.
Implementation public function get userProperties():Boolean public function set userProperties(value:Boolean):voiduserunit:Number Implementation public function get userunit():Number public function set userunit(value:Number):voidprotected var xmpMetadata:Bytes = nullpublic function PdfWriter(instance:Lock, output:ByteArray, pagesize:RectangleElement) Parameters public function add(page:PdfPage, contents:PdfContents):PdfIndirectReference Parameters
Returns pdf_core function addDirectImageSimple(image:ImageElement):PdfName Parameters
Returns pdf_core function addDirectImageSimple2(image:ImageElement, fixedRef:PdfIndirectReference):PdfName Parameters
Returns pdf_core function addDirectTemplateSimple(template:PdfTemplate, forcedName:PdfName):PdfName
Adds a template to the document but not to the page resources.
Parameters
| template:PdfTemplate — the template to add
|
| |
| forcedName:PdfName — the template name, rather than a generated one. Can be null
|
Returns | PdfName — the PdfName for this template
|
public function addLocalDestinations(dest:HashMap):void Parameters
protected function addSharedObjectsToBody():void pdf_core function addSimpleExtGState(gstate:PdfDictionary):Vector.<PdfObject> Parameters
Returns pdf_core function addSimpleFont(bf:BaseFont):FontDetails
Adds a font to the document but not to the page resources.
It is used for templates.
Parameters
ReturnsSee also
pdf_core function addSimplePattern(painter:PdfPatternPainter):PdfName Parameters
Returns pdf_core function addSimplePatternColorSpace(color:RGBColor):ColorDetails Parameters
Returns pdf_core function addSimpleProperty(prop:Object, refi:PdfIndirectReference):Vector.<PdfObject>
adding properties (OCG, marked content)
Parameters
Returns pdf_core function addSimpleShading(value:PdfShading):void Parameters
pdf_core function addSimpleShadingPattern(shading:PdfShadingPattern):void Parameters
pdf_core function addSimpleSpotColor(spc:PdfSpotColor):ColorDetails
Adds a SpotColor to the document but not to the page resources.
Parameters
Returns | ColorDetails — a Vector of Objects where position 0 is a PdfName
and position 1 is an PdfIndirectReference
|
pdf_core function addToBody(object:PdfObject):PdfIndirectObject Parameters
Returns pdf_core function addToBody1(object:PdfObject, ref:PdfIndirectReference):PdfIndirectObject Parameters
Returns pdf_core function addToBody2(object:PdfObject, inObjStm:Boolean):PdfIndirectObject Parameters
Returns public function close():void public static function create(output:ByteArray, pagesize:RectangleElement):PdfWriter Parameters
Returns pdf_core function eliminateFontSubset(fonts:PdfDictionary):void Parameters
protected function fillOCProperties(erase:Boolean):void Parameters
protected function getCatalog(rootObj:PdfIndirectReference):PdfDictionary Parameters
Returns public function getColorspaceName():PdfNameReturns public function getCurrentPage():PdfIndirectReferenceReturns public function getCurrentPageNumber():intReturns public function getDefaultColorSpace():PdfDictionaryReturns public function getDirectContent():PdfContentByteReturns public function getDirectContentUnder():PdfContentByteReturns public function getEncryption():PdfEncryptionReturns public function getExtraCatalog():PdfDictionaryReturns public function getGroup():PdfDictionaryReturns public function getImageReference(name:PdfName):PdfIndirectReference Parameters
Returns public function getInfo():PdfDictionary
Use this method to get the info dictionary if you want to
change it directly (add keys and values to the info dictionary).
Returns public static function getISOBytes(text:String):Bytes Parameters
Returns public function getOCProperties():PdfOCPropertiesReturns public function getOs():OutputStreamCounterReturns public function getPageReference(page:int):PdfIndirectReference
Use this method to get a reference to a page existing or not.
If the page does not exist yet the reference will be created
in advance. If on closing the document, a page number greater
than the total number of pages was requested, an exception
is thrown.
Parameters
| page:int — the page number. The first page is 1
|
Returns public function getPdfVersion():PdfVersionReturns public function getTabs():PdfNameReturns public static function getVectorISOBytes(text:String):Vector.<int> Parameters
Returns public function isFullCompression():BooleanReturns public function isOpen():BooleanReturns public function isPaused():BooleanReturns public function isRgbTransparencyBlending():Boolean
Gets the transparency blending colorspace.
Returns | Boolean — true if the transparency blending colorspace is RGB, false
if it is the default blending colorspace
|
public function lockLayer(layer:PdfLayer):void Parameters
public function open():PdfDocumentReturns pdf_core function propertyExists(prop:Object):Boolean Parameters
Returns public function registerLayer(layer:IPdfOCG):void Parameters
public function resetContent():void
Resets all the direct contents to empty.
This happens when a new page is started.
public function setAtLeastPdfVersion(version:String):void Parameters
public function setDefaultColorSpace(key:PdfName, value:PdfObject):void
Parameters
| key:PdfName — the name of the colorspace. It can be PdfName.DEFAULTGRAY, PdfName.DEFAULTRGB or PdfName.DEFAULTCMYK
|
| |
| value:PdfObject |
public function setEncryption(value:PdfEncryption):void Parameters
public function setFullCompression():void
Set the document compression to the PDF 1.5 mode
with object streams ans xref streams.
Once set it can't be unset anymore.
public function setGroup(value:PdfDictionary):void Parameters
public function setOutlines(outlines:Array):void Parameters
public function setPdfVersion(value:String):void Parameters
public function setTabs(value:PdfName):void Parameters
protected function writeOutlines(catalog:PdfDictionary, namedAsNames:Boolean):void Parameters
public static const BUILD_DATE:String = 20100505public static const BUILD_NUMBER:String = 70public static const ENCRYPTION_AES_128:int = 2public static const GENERATION_MAX:int = 65535public static const MAIN_VERSION:String = 0public static const NAME:String = purepdfpublic static const NO_SPACE_CHAR_RATIO:Number = 10000000public static const RELEASE:Stringpublic static const RUN_DIRECTION_DEFAULT:int = 0public static const RUN_DIRECTION_LTR:int = 2public static const RUN_DIRECTION_NO_BIDI:int = 1public static const RUN_DIRECTION_RTL:int = 3public static const SPACE_CHAR_RATIO_DEFAULT:Number = 2.5public static const STANDARD_ENCRYPTION_128:int = 1public static const STANDARD_ENCRYPTION_40:int = 0public static const VERSION:String
Wed May 5 2010, 12:59 PM -04:00