Type Default Value Read Only Description
Long   0 No The preferred compression method.




This property determines the preferred compression method.

Not all file formats support all compression methods. Not all compression methods support all color spaces. This is why this property indicates a preferred method.

This property accepts the following values:

  • 0 [Uncompressed]
  • 3 [G3 Black and White Fax Compression]
  • 4 [G4 Black and White Fax Compression]
  • 5 [LZW Compression]
  • 7 [Tiff Jpeg Compression]
  • 8 [Adobe Flate Compression]
  • 32946 [Flate Compression]
  • 32773 [Macintosh PackBits]

In general, this property is most useful when producing output in formats like TIFF which support a range of color spaces and compression methods.




The following example shows how to render a PDF into a multipage G4 compressed Fax TIFF using different vertical and horizontal resolutions.

Set theDoc = Server.CreateObject("ABCpdf12.Doc")
theDoc.Read "c:\mypdfs\spaceshuttle.pdf"
' set up the rendering parameters
theDoc.Rendering.ColorSpace = "Gray"
theDoc.Rendering.BitsPerChannel = 1
theDoc.Rendering.DotsPerInchX = 200
theDoc.Rendering.DotsPerInchY = 400
' loop through the pages
n = theDoc.PageCount
For i = 1 To n
  theDoc.PageNumber = i
  theDoc.Rect = theDoc.CropBox
  theDoc.Rendering.SaveAppend = (i <> 1)
  theDoc.Rendering.SaveCompression = 4 ' G4 Fax
  theDoc.Rendering.Save "c:\mypdfs\fax.tif"