Flatten the transparency of pages in a document.




void FlattenTransparency(Doc doc)
void FlattenTransparency(Pages pages)
void FlattenTransparency(Page page)

[Visual Basic]
Sub FlattenTransparency(doc As Doc)
Sub FlattenTransparency(pages As Pages)
Sub FlattenTransparency(page As Page)

Throws Exceptions may throw Exception()



Name Description
doc The document containing transparency to be flattened.
pages The pages whose transparency is to be flattened as referenced by a Pages IndirectObject.
page The page whose transparency is to be flattened as referenced by a Page IndirectObject.




Flattens the transparent objects on pages in the document.

When transparent objects overlap other objects, all or a portion of the overlapped object shows through. FlattenTransparency will create new objects that represent the portion of the two objects that overlap. Portions of transparent objects that don't overlap other objects are composited with the backdrop color (white) to create a fully opaque object that appears the same.

Note that this feature is only available under the ABCpdf Professional License.




Here we flatten all the transparent objects in a document.


FlattenTransparencyOperation transOp = new FlattenTransparencyOperation();
transOp.DotsPerInch = 144;
transOp.ColorSpace = XRendering.ColorSpaceType.Rgb;

Doc theDoc = new Doc();